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 Report A Plot To Clearml In This Way:

Hi,
I try to report a plot to clearML in this way:
task.get_logger().report_plotly(title="Train-Val loss", series="sepal", iteration=0, figure=fig)
but I got an error:
AttributeError: 'NoneType' object has no attribute 'to_plotly_json'

  
  
Posted 3 years ago
Votes Newest

Answers 10


Yes, this is expected, because you are trying to log a matplotlib figure as if it was a plotly figure. Try using report_matplotlib_figure

  
  
Posted 3 years ago

based on ktrain library:

  
  
Posted 3 years ago

LudicrousParrot69 its strange, I get the plot but the type in None

  
  
Posted 3 years ago

So Im guessing either return_fig is False when you ran this, or plt.cdf is having issues (which it can). Id always recommend explicitly creating the figure instead of using the plt shortcuts.

fix, ax = plt.subplots()
ax.plot(…)

etc

  
  
Posted 3 years ago

Can you print out fig to verify it at all? The logger should call to_plotly_json on the figure, so Im guessing its None

  
  
Posted 3 years ago

Can you throw a screenshot of the code where fig is defined?

  
  
Posted 3 years ago

demo:

  
  
Posted 3 years ago

LudicrousParrot69 here is the plot type, but I still get an error.
AttributeError: 'Figure' object has no attribute 'to_plotly_json'

  
  
Posted 3 years ago

great! thanks!

  
  
Posted 3 years ago

I meant the object instance itself so we can see what class it is and if its initialised. Also that looks like a matplotlib plot, not a plotly plot which you logging call indicates

  
  
Posted 3 years ago
517 Views
10 Answers
3 years ago
one year ago
Tags