MCPcopy Create free account
hub / github.com/christopherjenness/ML-lib / test_train_splitter

Function test_train_splitter

ML/modelselection.py:101–133  ·  view source on GitHub ↗

Splits X and y arrays into test and train sets Args: X (np.ndarray): Training data of shape[n_samples, n_features] y (np.ndarray): Target values of shape[n_samples, 1] test_fraction (float): fraction of data to partition into test set Must be in range [0

(X, y, test_fraction=0.2, randomize=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected