MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / split

Function split

mla/ensemble/base.py:47–50  ·  view source on GitHub ↗
(X, y, value)

Source from the content-addressed store, hash-verified

45
46
47def split(X, y, value):
48 left_mask = X < value
49 right_mask = X >= value
50 return y[left_mask], y[right_mask]
51
52
53def split_dataset(X, target, column, value, return_X=True):

Callers 1

_find_best_splitMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected