mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Edit HTML reporting examples (#546)
* edit docstrings * xgboost edits * change name of task_piping_example.py * allegro >>> clearml, oval >>> ellipse
This commit is contained in:
parent
ad735f93e0
commit
12fa7c92aa
@ -3,7 +3,7 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from bokeh.models import ColumnDataSource, GraphRenderer, Oval, StaticLayoutProvider
|
from bokeh.models import ColumnDataSource, GraphRenderer, Ellipse, StaticLayoutProvider
|
||||||
from bokeh.palettes import Spectral5, Spectral8
|
from bokeh.palettes import Spectral5, Spectral8
|
||||||
from bokeh.plotting import figure, output_file, save
|
from bokeh.plotting import figure, output_file, save
|
||||||
from bokeh.sampledata.autompg import autompg_clean as bokeh_df
|
from bokeh.sampledata.autompg import autompg_clean as bokeh_df
|
||||||
@ -20,7 +20,7 @@ def report_html_url(logger, iteration=0):
|
|||||||
:param logger: The task.logger to use for sending the plots
|
:param logger: The task.logger to use for sending the plots
|
||||||
:param iteration: The iteration number of the current reports
|
:param iteration: The iteration number of the current reports
|
||||||
"""
|
"""
|
||||||
logger.report_media("html", "url_html", iteration=iteration, url="https://allegro.ai/docs/index.html")
|
logger.report_media("html", "url_html", iteration=iteration, url="https://clear.ml/docs/latest/docs/index.html")
|
||||||
|
|
||||||
|
|
||||||
def report_html_periodic_table(logger, iteration=0):
|
def report_html_periodic_table(logger, iteration=0):
|
||||||
@ -178,7 +178,7 @@ def report_html_graph(logger, iteration=0):
|
|||||||
graph = GraphRenderer()
|
graph = GraphRenderer()
|
||||||
graph.node_renderer.data_source.add(node_indices, "index")
|
graph.node_renderer.data_source.add(node_indices, "index")
|
||||||
graph.node_renderer.data_source.add(Spectral8, "color")
|
graph.node_renderer.data_source.add(Spectral8, "color")
|
||||||
graph.node_renderer.glyph = Oval(height=0.1, width=0.2, fill_color="color")
|
graph.node_renderer.glyph = Ellipse(height=0.1, width=0.2, fill_color="color")
|
||||||
graph.edge_renderer.data_source.data = dict(start=[0] * nodes, end=node_indices)
|
graph.edge_renderer.data_source.data = dict(start=[0] * nodes, end=node_indices)
|
||||||
# start of layout code
|
# start of layout code
|
||||||
circ = [i * 2 * math.pi / 8 for i in node_indices]
|
circ = [i * 2 * math.pi / 8 for i in node_indices]
|
||||||
|
@ -305,7 +305,7 @@
|
|||||||
" 'audio', 'pink panther', iteration=1, local_path=audio_local_copy)\n",
|
" 'audio', 'pink panther', iteration=1, local_path=audio_local_copy)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# reporting html from url to debug samples section\n",
|
"# reporting html from url to debug samples section\n",
|
||||||
"logger.report_media(\"html\", \"url_html\", iteration=1, url=\"https://allegro.ai/docs/index.html\")"
|
"logger.report_media(\"html\", \"url_html\", iteration=1, url=\"https://clear.ml/docs/latest/docs/index.html\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user