Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Try To Use Tf History And To Report The Metrics In The End Of The Training. This Is How I Try To Do It:

Hi,
I try to use TF history and to report the metrics in the end of the training. this is how I try to do it:
history = model.fit(.....) logger.report_scalar("accuracy score", "Train", iteration=history.epoch, value=history.history['accuracy']) logger.report_scalar("loss", "Train", iteration=history.epoch, value=history.history['loss'])history is an object ( tf.keras.callbacks.History)
I got en error:
TypeError: float() argument must be a string or a number, not 'list'
how I can solve this issue ?
thanks

  
  
Posted 3 years ago
Votes Newest

Answers 2


Hi RoundSeahorse20 ,

According to the error, history.history['accuracy'] and history.history['loss'] are lists containing the values for the accuracy and loss.

You can go over those and report each value:
for idx, val in enumerate(history.history['accuracy']): logger.report_scalar("accuracy score", "Train", iteration=idx, value=val)Can this do the trick?

  
  
Posted 3 years ago

Yes! Thank you!

  
  
Posted 3 years ago
1K Views
2 Answers
3 years ago
one year ago
Tags