report_scalar_results

Report all scalar results to dbnl

dbnl.report_scalar_results(
    *,
    run: ,
    Union[dict[str, Any], pd.DataFrame]
) -> None:

Parameters

Arguments
Description

run

The dbnl Run that the results will be reported to.

data

A dict or a single-row pandas DataFrame with all the scalar values to report to dbnl.

Limitations

All data should be reported to dbnl at once. Calling dbnl.report_scalar_results more than once will overwrite the previously uploaded data.

Once a Run is closed. You can no longer call report_scalar_results to send data to DBNL.

Examples

import dbnl
import pandas as pd
dbnl.login()


proj1 = dbnl.get_or_create_project(name="test_p1")
runcfg1 = dbnl.create_run_config(
    project=proj1, 
    columns=[{"name": "error", "type": "float"}],
    scalars=[{"name": "rmse": "type": "float"}],
)
run1 = dbnl.create_run(project=proj1, run_config=runcfg1)
dbnl.report_scalar_results(run=run1, data={"rmse": 0.37})

Last updated

Was this helpful?