load_precalculated_predictions#

load_precalculated_predictions(pred_format: str = 'predictions', as_train_test: bool = True) Union[array, Tuple[array, array]][source]#

Load and return a precalculated predictions for the dataset.

Parameters
pred_formatstr, default: ‘predictions’

Represent the format of the returned value. Can be ‘predictions’ or ‘probabilities’. ‘predictions’ will return the predicted class for each sample. ‘probabilities’ will return the predicted probabilities for each sample.

as_train_testbool, default: True

If True, the returned data is split into train and test exactly like the toy model was trained. The first return value is the train data and the second is the test data. Otherwise, returns a single object.

Returns
predictionsnp.ndarray

The prediction of the data elements in the dataset.