Model Validation

A ValidationSession object stores a Dataset object that serves as a basis for validate your models. Then, the user can append as many simulation results as he/she want to the same ValidationSession object that automatically computes validation metrics and store the results in the validation_results attribute.

Warning

It is discouraged to change a Dataset object once it is an attribute of a ValidationSession object. This because the validation results will be jeopardized.

If you want to change Dataset, then consider to create a new ValidationSession object.

ValidationSession class

Constructor

ValidationSession(name, validation_dataset)

The ValidationSession class is used to validate models against a given dataset.

Attributes

ValidationSession.name

The validation session name.

Methods

ValidationSession.append_simulation(...)

Append simulation results.

ValidationSession.plot_simulations([...])

Plot the stored simulation results.

ValidationSession.plot_residuals([...])

Plot the residuals.

ValidationSession.simulations_names

Return a list of names of the stored simulations.

ValidationSession.simulation_signals_list(...)

Return the signal name list of a given simulation result.

ValidationSession.clear()

Clear all the stored simulation results.

Functions

rsquared(x, y)

Return the \(R^2\) value of two signals.