mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
15 lines
396 B
Python
15 lines
396 B
Python
![]() |
# TRAINS - Example of Plotly integration and reporting
|
||
|
#
|
||
|
from trains import Task
|
||
|
import plotly.express as px
|
||
|
|
||
|
|
||
|
task = Task.init('examples', 'plotly report')
|
||
|
|
||
|
df = px.data.iris()
|
||
|
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", marginal_y="rug", marginal_x="histogram")
|
||
|
|
||
|
task.get_logger().report_plotly(title="iris", series="sepal", iteration=0, figure=fig)
|
||
|
|
||
|
print('done')
|