Closed datistiquo closed 5 years ago
Hi @datistiquo, thank you for your question. Could you please identify which sample you used?
It is not specified to a sample but in general?
datistiquo,
Automated HP Tuning is part of AI-Platform (formerly CMLE). If you are running as a standalone job on GCP, then you have to do you own HP tuning. General information can be found at this link: https://cloud.google.com/ml-engine/docs/tensorflow/hyperparameter-tuning-overview
You can define custom metrics for evaluation in Keras. It's near the end on this web page: https://keras.io/metrics/
I have no detailed knowledge of the GCP inner working. When exactly is HP Tuning"called" when using keras. If you use a validation accuracy is it first performed when
model.evaluate()
is called? I asked my self because I want to do cross-validation with a keras model (not tf.keras if this matters).Like:
from https://machinelearningmastery.com/evaluate-performance-deep-learning-models-keras/
Since in the for loop each time fit and evaluate are called I wonder if this has an impact for HP tuning with GCP Also, my metric wanted for the HP Tuning would not be the single validation acc in each step but the mean after the loop as I appended at the end. Can I do that to assign a custom metric like the average one above to the desired HP Tuning-Metric? Maybe this does matter at all since HP Tuning focuses only on the metric name in the HPconfig file. But why I ask is performance issue if in each step of the loop first a WHOLE HP Tuning for each single model inside the loop is done?