Skip to content

OBLA

OBLA()

OBLA model for lactate threshold prediction. This model uses a 3rd degree polynomial to fit the lactate data.

Atributes:

model (object):
    Model object.
plot (object):
    Plot object.

Methods:

Name Description
fit

Fit the model to the training data.

predict

Predicts intensity at a given lactate value.

fit

fit(X: ArrayLike, y: ArrayLike, method='4th_poly', _mask=None)

Fit the model to the training data.

Parameters:

Name Type Description Default

X

array - like

Intensity data.

required

y

array - like

lactate values.

required

method

str

Method to use for fitting the model. Options are:

  • "3th_poly": 3rd degree polynomial
  • "4th_poly": 4th degree polynomial
  • "spline": Cubic Spline
'4th_poly'

Returns:

Name Type Description
self object

Fitted model.

predict

predict(lactate_value: float) -> float

Predicts intensity at a given lactate value.

Parameters:

Name Type Description Default

lactate_value

float

Lactate value to predict intensity for.

required

Returns:

Name Type Description
float float

Predicted intensity.