Skip to content

Tutorials

This page helps the user to get started with the SnoScience package.

Measure network performance

Measure network performance after making a prediction.

from numpy import array
from snoscience import calculate_accuracy, calculate_mse

# define datasets here
y_test = array([])

# define network predictions here
y_calc = array([])

# calculate network mse for regressions
calculate_mse(calc=y_calc, true=y_test)

# calculate network accuracy for classifications
calculate_accuracy(calc=y_calc, true=y_test)