report_results

Report all results to dbnl

dbnl.report_results(
    *,
    run: Run,
    column_data: pandas.DataFrame,
    scalar_data: dict[str, Any] | pandas.DataFrame | None = None
) -> None:

Parameters

Arguments
Description

run

The DBNL Run that the results will be reported to.

column_data

A pandas DataFramearrow-up-right with all the column results to report to DBNL. The columns of the DataFrame must match the columns described in the RunConfigarrow-up-right associated with the Run.

scalar_data

A dict or pandas Dataframe with all the scalar results to report to DBNL. The key of the dict must match the scalars described in the RunConfigarrow-up-right associated with the Run.

circle-info

report_results is the equivalent of calling both report_column_results and report_scalar_results .

Limitations

circle-exclamation
triangle-exclamation

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"}])
run1 = dbnl.create_run(project=proj1, run_config=runcfg1)

data = pd.DataFrame({"error": [0.11, 0.33, 0.52, 0.24]})
dbnl.report_results(run=run1, column_data=data)


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)
data = pd.DataFrame({"error": [0.11, 0.33, 0.52, 0.24]})
dbnl.report_results(run=run1, column_data=data, scalar_data={"rmse": 0.37})

Was this helpful?