In this project, we attempt to write Support Vector Machine, and Support Vector Regression models as neural networks using pytorch.
- Make SVM as a NN using pytorch
- Make SVR as a NN using pytorch
- Make a random classification dataset to test these models
- SVM has an accuracy score of 88%
- SVR has mse of 0.2233
In this project, we use several Multi Layer Perceptrons with different settings(hidden layer, number of neurons, and activation function) to classify MNIST dataset.
- Test the effectiveness of MLP in classification
- Test if number of nearons, hidden layer, and activation function have any effect on accuracy
- See if MLPs can do better than simple linear models
- Since the data are non-linear, non-linear models work better
- If we use softmax in the last layer it works better
- If we decrease the number f neuron and then increase them in the hidden layers, information is lost and the performance decreases immensely
In this project, we Implement a 2 layer Convolutional Neural Network, which uses pointwise convolution instead of MLP for classification to increase efficiency, to classify MNIST dataset.
- Successfully implement and test CNN on Mnist
- After 25 epochs the model reached accuracy of 82%
- Python
- Pytorch
- Numpy
- Pandas
- Matplotlib, Seaborn
- Scikit-Learn
- First intall jupyter notebook from the link below if you haven't already.
- Make sure you have all the libraries mentioned in Built With section installed; If not first run your environment then use the following commands:
- Pytorch:
pip install torch - Torchvision:
pip install torchvision - Numpy:
pip install numpy - Pandas:
pip install pandas - Matplotlib:
pip install matplotlib - Scikit-Learn:
pip install scikit-learn
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Mohammad Mofidi
- Email: mohammad.mofidi.k@gmail.com
- Linkedin: https://www.linkedin.com/in/mohammad-mofidikhajeh
- Instagram: https://www.instagram.com/_mohammadmofidi/
