This repository contains a Python implementation of a Multinomial Logistic Regression model, which is used for classification tasks. The model is built and trained using the TensorFlow library on the MNIST dataset, a popular dataset for digit classification.
To run this project, you will need to have Python installed along with the following libraries:
pandastensorflownumpymatplotlib
You can install the necessary dependencies using the following command:
pip install pandas tensorflow numpy matplotlib- Clone the repository:
git clone https://github.com/yourusername/MultinomialRegressionModelforClassification.git
- Navigate to the project directory:
cd MultinomialRegressionModelforClassification- Open and run the Jupyter Notebook:
jupyter notebook MultinomialRegressionModelforClassification.ipynbThe notebook walks through the entire process of building, training, and evaluating a Multinomial Regression model for digit classification using the MNIST dataset.
The dataset used in this project is the MNIST dataset, which is loaded directly from the TensorFlow/Keras library. The dataset contains 70,000 grayscale images of handwritten digits (0-9), split into 60,000 training images and 10,000 test images.
MNIST = tf.keras.datasets.mnistThe model implemented is a Multinomial Logistic Regression model, which is trained on the MNIST dataset to predict the digit represented in an image. The main steps include:
Loading and preparing the dataset Defining the model using TensorFlow Training the model using cross-entropy loss Evaluating the model's accuracy on test data
After training the model, its performance is evaluated based on accuracy metrics, and the results are visualized using confusion matrices and plots of model performance.
This repository is public.