MCPcopy Index your code
hub / github.com/ddbourgin/numpy-ml / random_classification_problem

Function random_classification_problem

numpy_ml/plots/lm_plots.py:54–61  ·  view source on GitHub ↗
(n_ex, n_classes, n_in, seed=0)

Source from the content-addressed store, hash-verified

52
53
54def random_classification_problem(n_ex, n_classes, n_in, seed=0):
55 X, y = make_blobs(
56 n_samples=n_ex, centers=n_classes, n_features=n_in, random_state=seed
57 )
58 X_train, X_test, y_train, y_test = train_test_split(
59 X, y, test_size=0.3, random_state=seed
60 )
61 return X_train, y_train, X_test, y_test
62
63
64#######################################################################

Callers 1

plot_logisticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected