李航《统计学习方法》与UCAS《模式识别与机器学习》课程的代码练习。
实现:
- torch手撸
- sklearn调包
参考:https://github.com/Dod-o/Statistical-Learning-Method_Code
torch == 1.6.0
pandas == 1.2.0
tqdm == 4.56.0
sklearn == 0.23.1
.
├── README.md
├── data
│ ├── mnist_test.csv
│ ├── mnist_test.rar
│ ├── mnist_train.csv
│ └── mnist_train.rar
├── decision_tree
│ ├── __init__.py
│ ├── node.py
│ ├── tree.py
│ └── tree2.py
├── knn
│ ├── __init__.py
│ ├── knn.py
│ └── knn2.py
├── naive_bayes
│ ├── __init__.py
│ ├── bayes.py
│ └── bayes2.py
├── perceptron
│ ├── __init__.py
│ ├── perceptron.py
│ └── perceptron2.py
└── ucas_ml_course
├── 2-bayes.py
├── 3-perceptron
│ ├── __init__.py
│ ├── perceptron1.py
│ ├── perceptron2.py
│ └── perceptron3.py
├── README.md
├── __init__.py
└── img
└── bayes.png