Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AssemblyAI-Community/Machine-Learning-From-Scratch
/ train.py
File
train.py
04 Decision Trees/train.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
sklearn
import
datasets
2
from
sklearn.model_selection
import
train_test_split
3
import
numpy
as
np
4
from
DecisionTree
import
DecisionTree
Callers
nothing calls this directly
Calls
4
DecisionTree
Class · 0.90
accuracy
Function · 0.70
fit
Method · 0.45
predict
Method · 0.45
Tested by
no test coverage detected