sksports.metrics.training_stress_score

sksports.metrics.training_stress_score(activity_power, mpa)[source][source]

Training stress score®.

The training stress score® corresponds to the intensity factor® normalized by the time of the activity. You can use the function metrics.ftp2mpa if you are using the functional threshold metric.

Read more in the User Guide.

Parameters:
activity_power : Series

A Series containing the power data from an activity.

mpa : float

Maximum power aerobic. Use metrics.ftp2mpa if you use the functional threshold power metric.

Returns:
score: float

Training stress score.

References

[1]Allen, H., and A. Coggan. “Training and racing with a power meter.” VeloPress, 2012.

Examples

>>> from sksports.datasets import load_fit
>>> from sksports.io import bikeread
>>> from sksports.metrics import training_stress_score
>>> ride = bikeread(load_fit()[0])
>>> mpa = 400
>>> ts_score = training_stress_score(ride['power'], mpa)
>>> print('Training stress score {:.2f}'.format(ts_score))
Training stress score 32.38

Examples using sksports.metrics.training_stress_score