mojolearn.host_predict#

mojolearn.host_predict(path, X)[source]#

Predict on the CPU with a saved model: host_model(path).predict(X).

Parameters:
  • path (str or path-like) – The saved model file.

  • X (array-like of shape (n_samples, n_features)) – Input data.

Returns:

Array or list of shape (n_samples,) – Predictions, as the saved model’s predict returns them.