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, How Can I Get The Logs From The Pytorch Ignite Early Stopping Handler To Be Logged In Clearml?

Hi, how can I get the logs from the pytorch ignite early stopping handler to be logged in clearml?

  
  
Posted 3 years ago
Votes Newest

Answers 15


AgitatedDove14 So in the https://pytorch.org/ignite/_modules/ignite/handlers/early_stopping.html#EarlyStopping class I see that some infos are logged (in the __call__ function), and I would like to have these infos logged by clearml

  
  
Posted 3 years ago

(by console you mean in the dashboard right? or the terminal?)

  
  
Posted 3 years ago

with my hack yes, without, no

  
  
Posted 3 years ago

terminal

  
  
Posted 3 years ago

v0.17.5rc2

  
  
Posted 3 years ago

JitteryCoyote63 I think there is a ClearML logger , no?

  
  
Posted 3 years ago

Hmm that is odd, let me see if I can reproduce it.
What's the clearml version you are using ?

  
  
Posted 3 years ago

Can you see it on the console ?

  
  
Posted 3 years ago

No idea, I also would have expected it to be automatically logged as console output 🤔

  
  
Posted 3 years ago

JitteryCoyote63 Is this an Ignite feature ? what is the expectation ? (I guess the ClearML Logger just inherits from the base ignite logger)

  
  
Posted 3 years ago

JitteryCoyote63 nice hack 😄
how come it is not automatically logged as console output ?

  
  
Posted 3 years ago

Just tested locally, in terminal its the same: with the hack it works, without the hack it doesn't show the logger messages

  
  
Posted 3 years ago

AgitatedDove14 yes but I don't see in the docs how to attach it to the logger of the earlystopping handler

  
  
Posted 3 years ago

Okay, let me see...

  
  
Posted 3 years ago

AgitatedDove14 I was able to redirect the logger by doing so:
clearml_logger = Task.current_task().get_logger().report_text early_stopping = EarlyStopping(...) early_stopping.logger.debug = clearml_logger early_stopping.logger.info = clearml_logger early_stopping.logger.setLevel(logging.DEBUG)

  
  
Posted 3 years ago
952 Views
15 Answers
3 years ago
one year ago
Tags