synthetic

Module Contents

Functions

rmse(→ float)

Calculate the root mean squared error between y and y_pred.

mae(→ float)

Calculate the mean squared error between y and y_pred.

get_energy(→ Array)

Attributes

Array

xplot

yplot

method1

xplot

yplot

N

xplot

yplot

method1

df

cols

synthetic.Array
synthetic.rmse(y: Array, y_pred: Optional[Array] = None) float

Calculate the root mean squared error between y and y_pred.

If y_pred is not provided, y is treated as the residual vector.

synthetic.mae(y: Array, y_pred: Optional[Array] = None) float

Calculate the mean squared error between y and y_pred.

If y_pred is not provided, y is treated as the residual vector.

synthetic.get_energy(nheavy: int, nsamples: int, loc=0, scale=1) Array
synthetic.xplot = []
synthetic.yplot = []
synthetic.method1
synthetic.xplot
synthetic.yplot
synthetic.N = 1000000
synthetic.xplot = []
synthetic.yplot = []
synthetic.method1
synthetic.df
synthetic.cols = ['RMSE(E)', 'RMSE(E) / sqrt(nh)', 'RMSE(E/nh)', 'MAE(E)', 'MAE(E) / sqrt(nh)', 'MAE(E/nh)']