pyobsmod.Dataset.r2#

Dataset.r2() float#

Coefficient of determination.

Returns:

r2 – The coefficient of determination.

Return type:

float

Examples

from pyobsmod import load_dataset_example

ds = load_dataset_example()
print(ds.r2())
0.8448872086332004