Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
def
split(X, y, value):
48
left_mask = X < value
49
right_mask = X >= value
50
return
y[left_mask], y[right_mask]
51
52
53
def
split_dataset(X, target, column, value, return_X=True):
Callers
1
_find_best_split
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected