Actual solutions are shielded from the public using Streamlit's secrets management.
-
Brajesh Mohapatra for the dataset hosted on Kaggle.
-
The Streamlit team for the Streamlit framework and for making Python deployment easier.
-
Download the Term Deposit Prediction Dataset from Kaggle. In the dataset, there are several files:
train.csv
: A CSV dataset containing the instances for training your ML model (with labels).test.csv
: A CSV dataset containing the instances for testing your ML model (without labels).solution_checker.xlsx
: A Excel file for you to check the performance of your ML model locally.
-
Train your model using
train.csv
. -
Predict with your model using
test.csv
. Your output should be a.csv
file with no column headers, and contains 13,564 instances. -
Go to the web app and upload your prediction
.csv
file at the sidebar. -
Check your prediction results - accuracy, precision, recall and F1-score.
-
Share your work with the world!
-
You may choose to use Anaconda or Miniconda for environment setup. I used Miniconda for this project.
-
Clone this project repo into your local.
-
Before you can use this for your own project, you need to perform some manual steps.
- You need to create a
test
folder to store your example solution for testing the web app. - You need to create a
.streamlit
folder underwebapp
folder to store your secrets (aka your answers). - Your answers should be in a file named
secrets.toml
so that you can use Streamlit's secret management.
- You need to create a
-
Now, your local repo should be ready for further modification.
-
To test, go into
webapp
directory and run Streamlit:cd webapp streamlit run streamlit_app.py
For detailed documentation, you may refer to my Medium article here.
Happy tweaking!
END