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
02 Linear Regression/train.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
numpy
as
np
2
from
sklearn.model_selection
import
train_test_split
3
from
sklearn
import
datasets
4
import
matplotlib.pyplot
as
plt
Callers
nothing calls this directly
Calls
5
LinearRegression
Class · 0.90
mse
Function · 0.85
plot
Method · 0.80
fit
Method · 0.45
predict
Method · 0.45
Tested by
no test coverage detected