Home Artificial Intelligence Constructing a Full-Stack Machine Learning Web Application: Integrating FastAPI, Streamlit Front-End Streamlit Machine Learning Models Back-End FastAPI Conclusion Contact me

Constructing a Full-Stack Machine Learning Web Application: Integrating FastAPI, Streamlit Front-End Streamlit Machine Learning Models Back-End FastAPI Conclusion Contact me

3
Constructing a Full-Stack Machine Learning Web Application: Integrating FastAPI, Streamlit
Front-End Streamlit
Machine Learning Models
Back-End FastAPI
Conclusion
Contact me

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.

Once 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 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 data entered by the user and send the result to the screen.

Here we create the models that we’ll 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’ve 3 models for our user to select from (Logistic Regression, KNN, Decision Tree). After our user throws these requests, we send a listing of other parameters to our model. Thus, after our model has applied all of the parameters, we send the result to the front-end.

Because of this, making a Full-Stack project using a couple of technology and particularly latest technologies on this project is basically enjoyable, in addition to making an enormous project using a couple of technology at the identical time, it’s an important method for private development. FastAPI is a technology that has really made its mark currently, 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

3 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here