app.ml.logreg.train_model¶
- train_model(x, y, plot=False)[source]¶
Returns a trained model.
- Parameters
x (np.ndarray) – 2-d numpy array of shape (n_samples, n_features) corresponding to inputs.
y (np.ndarray) – 1-d numpy array of shape (n_samples, ) corresponding to outputs.
plot (bool) – Plots accuracy box plot of k-fold crossvalidation if True.
- Returns
A tuple of trained model and output predictions.
- Return type