Machine Learning Platform was my final year project for my BS Computer Science degree.
ML Platform is a machine learning platform which showcases diƦerent machine learning algorithm models and allows the users to change the input to the model to see how the output of the model changes based on input data as well as the model’s accuracy and error output. There is also an admin panel available to manage the users and ban / unban the users based on any of the feedback.
You need to have the following installed on your system:
- Python 3.6
- pip
- virtualenv
- PostgreSQL 9.6 or any other database server ( optional, as you can default back to sqlite )
- Graphviz ( for generating decision tree images )
- SMTP server ( for sending emails )
- Clone the repository
Clone the repository to your local machine using the following command:
git clone https://github.com/zstarpak/machine-learning-platform.git
- Create a virtual environment
Create a virtual environment using the following command:
cd machine-learning-platform
python3 -m venv venv
- Activate the virtual environment
Activate the virtual environment using the following command:
source venv/bin/activate
- Install the dependencies
Install the dependencies using the following command:
pip install -r requirements.txt
- Create a
.env
file
You can copy the .env.example
file to create a .env
file and set the environment variables in it.
- Run the migrations
We are using the flask-migrate extension to manage the database migrations. Run the following commands to create the database and run the migrations:
flask db init
flask db migrate
flask db upgrade
- Run the application
Run the application using the following command:
flask run
heroku buildbox of graphviz is required for this app.