How dod-o/statistical-learning-method_code works
This repository is an educational collection of standalone implementations of algorithms from *Statistical Learning Method*, rather than a shared training or inference application. The principal workflow is that a learner chooses an implementation, supplies or uses its example data, runs the algorithm, and inspects its predictions, metrics, or learned topics. The README documents supervised and unsupervised capabilities; the graph preserves those branches without implying that the scripts share a runtime pipeline. Source excerpts are incomplete, so relationships between internal stages are omitted where they are not evidenced.
Main entry points: perceptron_dichotomy.py Perceptron · KNN.py K-nearest neighbors · NaiveBayes.py Naive Bayes · DecisionTree.py Decision tree
Components 18
Supervised learning
- Perceptron
perceptron/perceptron_dichotomy.py - K-nearest neighbors
KNN/KNN.py - Naive Bayes
NaiveBayes/NaiveBayes.py - Decision tree
DecisionTree/DecisionTree.py - Logistic regression
Logistic_and_maximum_entropy_models/logisticRegression.py - Maximum entropy
Logistic_and_maximum_entropy_models/maxEntropy.py - Support vector machine
SVM/SVM.py - AdaBoost
AdaBoost/AdaBoost.py
Probabilistic models
- EM algorithm
EM/EM.py - Hidden Markov model
HMM/HMM.py
Unsupervised learning
- K-means clustering
Clustering/K-means_Clustering/K-means_Clustering.py - Hierarchical clustering
Clustering/Hierachical_Clustering/Hierachical_Clustering.py - PCA
PCA/PCA.py - Latent semantic analysis
LSA/LSA.py - Probabilistic LSA
PLSA/PLSA.py - Latent Dirichlet allocation
LDA/LDA.py
Ranking
- PageRank
Page_Rank/Page_Rank.py
Other components
- Learner
Connections 17
- Learner → Perceptron: runs implementation
README.md - Learner → K-nearest neighbors: runs implementation
README.md - Learner → Naive Bayes: runs implementation
README.md - Learner → Decision tree: runs implementation
README.md - Learner → Logistic regression: runs implementation
README.md - Learner → Maximum entropy: runs implementation
README.md - Learner → Support vector machine: runs implementation
README.md - Learner → AdaBoost: runs implementation
README.md - Learner → EM algorithm: runs implementation
README.md - Learner → Hidden Markov model: runs implementation
README.md - Learner → K-means clustering: runs implementation
README.md - Learner → Hierarchical clustering: runs implementation
README.md - Learner → PCA: runs implementation
README.md - Learner → Latent semantic analysis: runs implementation
README.md - Learner → Probabilistic LSA: runs implementation
README.md - Learner → Latent Dirichlet allocation: runs implementation
README.md - Learner → PageRank: runs implementation
README.md