Hello everyone, Today we’ll make a Full-Stack Machine learning application with you.
On this project, we’ll use Front-End, Back-End and Machine learning algorithms together.
Front-End: Streamlit
Back-End: FastAPI
Machine Learning Algorithm: Logistic Regression, KNN, Decision Tree.
After we examine the diagram above, our user selects the specified machine learning algorithm via Front-End and enters the parameters. Then, it processes the model chosen on the Back-End side and the values entered by the user and sends the model result to the Front-End again.
Here, we simply create a selectbox for our users to pick out a model, first, after our user selects the Model, we take the input of other parameters required for the model. Then, after we press the predict button, we apply the knowledge entered by the user and send the result to the screen.
Here we create the models that we are going to use. First, we do the reading of our dataset, then we separate our data by putting the dataset into train_test_split. then we make our model a file with pkl extension by performing the fit operation on our model. Our purpose in doing that is to make it faster while processing our back-end values.
Here we create 3 endpoints at first. We have now 3 models for our user to select from (Logistic Regression, KNN, Decision Tree). After our user throws these requests, we send an inventory of other parameters to our model. Thus, after our model has applied all of the parameters, we send the result to the front-end.
Consequently, making a Full-Stack project using multiple technology and particularly recent technologies on this project is absolutely enjoyable, in addition to making an enormous project using multiple technology at the identical time, it’s an awesome method for private development. FastAPI is a technology that has really made its mark these days, and its simplicity and speed give the user great pleasure. I hope you enjoyed this project very much, see you in the following project.
Linkedin: https://www.linkedin.com/in/boran-oktay-dabak/
Source Code: https://github.com/oktaydbk54/Machine-Learning-Model-Deployment-using-FastAPI-and-Streamlit
Youtube: https://www.youtube.com/channel/UCsGwZ3006CuJWcA5J3UPVWw
meditation music
gideni geri getirmek istiyorsanız http://www.medyumnazar.com