preprocess_predict

RegressionMixin.preprocess_predict(X)[source]

Preprocessing the incoming data before prediction. It normalized, encodes and converts to a model matrix.

Parameters

Xpd.DataFrame

The data.

Returns

Xnp.array(2d)

The encoded, normalized model matrix of the data.