Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rushter/MLAlgorithms
/ get_split_mask
Function
get_split_mask
mla/ensemble/base.py:41–44 ·
view source on GitHub ↗
(X, column, value)
Source
from the content-addressed store, hash-verified
39
40
41
def
get_split_mask(X, column, value):
42
left_mask = X[:, column] < value
43
right_mask = X[:, column] >= value
44
return
left_mask, right_mask
45
46
47
def
split(X, y, value):
Callers
1
split_dataset
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected