ncrf.TRFDesign.assert_same_normalization

TRFDesign.assert_same_normalization(other)

Check that other records the same centering and scaling as this design.

Coefficients are fit against covariates carrying their design’s normalization, so data on any other scale would produce wrong predictions.

Parameters:

other – Design of the data the coefficients are applied to.

Raises:

ValueError – If the centering, the scaling, or scale differ.