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
Quick Question, Can Trains Log Keras Loss Values And/Or Metrics Automatically? Or Would I Have To Attach A Tensorboard Callback?

Quick question, can trains log keras loss values and/or metrics automatically? Or would I have to attach a tensorboard callback?

  
  
Posted 4 years ago
Votes Newest

Answers 18


This is a minimal comet example. I'm afraid I don't know what it does under the hood.. There are no callbacks on the metrics tracked in model.fit and yet if you check out your project in the website, your training and validation losses are tracked automatically, live.

https://www.comet.ml/docs/python-sdk/keras/

  
  
Posted 4 years ago

Thanks ElegantCoyote26 I'll look into it. Seems like someone liked our automagical approach 🙂

  
  
Posted 4 years ago

Ah, so you're saying I can write a callback for stuff like train_loss , val_loss , etc.

  
  
Posted 4 years ago

And then you'll hook it

  
  
Posted 4 years ago

Absolutely, I could try but I'm not sure what it entails...

  
  
Posted 4 years ago

Thank you!

  
  
Posted 4 years ago

Is this a possible future feature? I have used cometML before and they have this. I'm not sure how they do it though...

  
  
Posted 4 years ago

Hey AgitatedDove14 , did you get a chance to look at this?

  
  
Posted 4 years ago

Hi ElegantCoyote26 , yes I did 🙂
It seems cometml puts their default callback logger for you, that's it.

  
  
Posted 4 years ago

Thanks!!

  
  
Posted 4 years ago

Yep

  
  
Posted 4 years ago

ElegantCoyote26 It means we need to have a keras logger that logs everything to trains, then we need to hook it automatically.
Do you feel like PR-ing the logger (the hooking I can take care of 🙂 )?

  
  
Posted 4 years ago

ElegantCoyote26 point me to where Keras stores the data 🙂
If in the process of integration you had to add a logger/callback to your Keras code, that is the equivalent of using the TB.

  
  
Posted 4 years ago

Ok gotchu. I'll do that as soon as I can.

  
  
Posted 4 years ago

You can check the example here, just make sure you add the callback and you are good to go 🙂
https://github.com/allegroai/trains/blob/master/examples/frameworks/keras/keras_tensorboard.py#L107

  
  
Posted 4 years ago

ElegantCoyote26 I don't think Keras logs it anywhere unless you have TB, so nowhere to take the data from...
In short, yes you have to have TB :)

  
  
Posted 4 years ago

Hey AgitatedDove14 , thanks for the answer. What does that mean? In any case I think it would be a nice to have feature.

  
  
Posted 4 years ago
1K Views
18 Answers
4 years ago
one year ago
Tags