├── .gitignore ├── NN_pytorch.ipynb ├── README.md ├── autoencoder.ipynb ├── collab_filtering.ipynb ├── data ├── cancer.csv ├── fashion │ ├── t10k-images-idx3-ubyte.gz │ ├── t10k-labels-idx1-ubyte.gz │ ├── train-images-idx3-ubyte.gz │ └── train-labels-idx1-ubyte.gz ├── housing.csv └── nlp │ ├── KVH.txt │ ├── kvh_trn │ └── trn.txt │ ├── kvh_val │ └── val.txt │ ├── nietzsche.txt │ └── trump.txt ├── knn.ipynb ├── linear_regression.ipynb ├── logistic_regression.ipynb ├── model ├── __init__.py ├── activation_classes.py ├── activations.py ├── gradients.py ├── knn.py ├── linear_model.py ├── metrics.py ├── neural_network.py ├── optimizers.py ├── random_forest.py └── utils.py ├── neural_net_optimizers.ipynb ├── random_forest_classifier.ipynb ├── random_forest_regressor.ipynb ├── rnn-vietnamese.ipynb └── scratch_neural_net.ipynb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/.gitignore -------------------------------------------------------------------------------- /NN_pytorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/NN_pytorch.ipynb -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/README.md -------------------------------------------------------------------------------- /autoencoder.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/autoencoder.ipynb -------------------------------------------------------------------------------- /collab_filtering.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/collab_filtering.ipynb -------------------------------------------------------------------------------- /data/cancer.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/cancer.csv -------------------------------------------------------------------------------- /data/fashion/t10k-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/fashion/t10k-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /data/fashion/t10k-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/fashion/t10k-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /data/fashion/train-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/fashion/train-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /data/fashion/train-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/fashion/train-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /data/housing.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/housing.csv -------------------------------------------------------------------------------- /data/nlp/KVH.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/nlp/KVH.txt -------------------------------------------------------------------------------- /data/nlp/kvh_trn/trn.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/nlp/kvh_trn/trn.txt -------------------------------------------------------------------------------- /data/nlp/kvh_val/val.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/nlp/kvh_val/val.txt -------------------------------------------------------------------------------- /data/nlp/nietzsche.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/nlp/nietzsche.txt -------------------------------------------------------------------------------- /data/nlp/trump.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/data/nlp/trump.txt -------------------------------------------------------------------------------- /knn.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/knn.ipynb -------------------------------------------------------------------------------- /linear_regression.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/linear_regression.ipynb -------------------------------------------------------------------------------- /logistic_regression.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/logistic_regression.ipynb -------------------------------------------------------------------------------- /model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /model/activation_classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/activation_classes.py -------------------------------------------------------------------------------- /model/activations.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | def sigmoid(x): 3 | return 1/(1+np.exp(-x)) 4 | -------------------------------------------------------------------------------- /model/gradients.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/gradients.py -------------------------------------------------------------------------------- /model/knn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/knn.py -------------------------------------------------------------------------------- /model/linear_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/linear_model.py -------------------------------------------------------------------------------- /model/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/metrics.py -------------------------------------------------------------------------------- /model/neural_network.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/neural_network.py -------------------------------------------------------------------------------- /model/optimizers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/optimizers.py -------------------------------------------------------------------------------- /model/random_forest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/random_forest.py -------------------------------------------------------------------------------- /model/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/model/utils.py -------------------------------------------------------------------------------- /neural_net_optimizers.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/neural_net_optimizers.ipynb -------------------------------------------------------------------------------- /random_forest_classifier.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/random_forest_classifier.ipynb -------------------------------------------------------------------------------- /random_forest_regressor.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/random_forest_regressor.ipynb -------------------------------------------------------------------------------- /rnn-vietnamese.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/rnn-vietnamese.ipynb -------------------------------------------------------------------------------- /scratch_neural_net.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anhquan0412/basic_model_scratch/HEAD/scratch_neural_net.ipynb --------------------------------------------------------------------------------