cnvrg_experiment_chart package¶
Submodules¶
cnvrg_experiment_chart.chart module¶
Module to supliment the handling of charts in the cnvrgv2 sdk
- class cnvrg_experiment_chart.chart.ExperimentChart(**kwargs)[source]¶
Bases:
objectA class used to manage an experiment’s chart
- experiment¶
A cnvrg Experiment object. If you do not pass in, we assume you want us to create this on your behalf.
- Type:
cnvrgv2.Experiment
- chart¶
The cnvrg Chart object generated after instantiating this object
- Type:
LineChart
Examples
>>> chart = ExperimentChart(key="line_chart", chart_type="line") >>> chart.add_series(series_name="index") >>> chart.create_chart() >>> chart.add_metric(series_name="index", data=[1,2,3])
- add_metric(data, series_name)[source]¶
This method appends a data point to an existing data series (appears in UI in real time)
- Parameters:
- Returns:
self – Returns the updated ExperimentChart object allowing for method chaining
- Return type:
- add_series(series_name, data=None)[source]¶
This method adds a data series to the chart as well as the initial data point
- Parameters:
- Returns:
self – Returns the updated ExperimentChart object allowing for method chaining
- Return type: