e15190.neutron_wall.pulse_shape_discrimination.FastTotalRansacEstimatorGamma¶
- class e15190.neutron_wall.pulse_shape_discrimination.FastTotalRansacEstimatorGamma(*args, **kwargs)¶
Functions
__init__(*args, **kwargs)fit(X, y, **kwargs)get_params([deep])model(x, p0, p1)The fast-total relation for gammas.
predict(X)score(X, y)Coefficient of determination.
set_params(**params)- __init__(*args, **kwargs)¶
- model(x, p0, p1)¶
The fast-total relation for gammas.
- Parameters
x (array_like) – The TOTAL values.
p0 (float) – The intercept.
p1 (float) – The slope.
- Returns
y – The predicted FAST values.
- Return type
array_like
- score(X, y)¶
Coefficient of determination.
- Parameters
X (array-like, shape (n_samples, n_features)) – Input data.
y (array-like, shape (n_samples,)) – Target values, or ground truth.
- Returns
score – The coefficient of determination. For model that perfectly predicts all true values, the score is 1. For model that always predicts the mean of all true values, the score is 0. Models with worse performance will have negative scores.
- Return type
float