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:
pollfly 2022-01-20 14:34:18 +02:00 committed by GitHub
parent ad735f93e0
commit 12fa7c92aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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\")"
] ]
}, },
{ {