MCPcopy Create free account
hub / github.com/AssemblyAI-Community/Machine-Learning-From-Scratch / train.py

File train.py

01 KNN/train.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import numpy as np
2from sklearn import datasets
3from sklearn.model_selection import train_test_split
4import matplotlib.pyplot as plt

Callers

nothing calls this directly

Calls 3

KNNClass · 0.90
fitMethod · 0.45
predictMethod · 0.45

Tested by

no test coverage detected