Open TaylorZowtuk opened 1 year ago
Hi, I am having a similar problem. Did you manage to progress? I am sorry to say I can't help you with it.
But I'm also having trouble defining the correct metrics for a recommender, which is basically this one: https://www.tensorflow.org/tfx/tutorials/tfx/recommenders#the_dataset
Any metric added produces a runtimerror, even those added ad training time like this model.compile(optimizer=tf.keras.optimizers.Adagrad(learning_rate=0.1) , metrics=[tf.keras.metrics.AUC, tf.keras.metrics.Precision, tf.keras.metrics.Recall, tf.keras.metrics.mean_absolute_error]
Unfortunately I wasn't able to progress further on this and my questions remain.
I apologize if an issue isn't the appropriate place for my question - but if what I am trying to do here is sensible/possible then maybe this could be considered a documentation improvement request.
In the recommender retrieval + TFX tutorial, we go from training the model to exporting it. In the Keras + TFX tutorial, they show how to use the Evaluator component. I am trying to add the Evaluator component to the retrieval pipeline but I am having trouble figuring out how to instantiate the EvalConfig (specifically, I am having trouble with the metrics).
I will start with my general questions, and if it would be helpful I can post what I have already tried.
tfma.metrics.specs_from_metrics(...)