Coder Social home page Coder Social logo

madhurimarawat / streamlit-programs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 48 KB

This repository contains programs in the Python programming language using Module Streamlit.

Home Page: https://ml-model-datasets-using-apps-3gy37ndiancjo2nmu36sls.streamlit.app/

Python 100.00%
linear-regression-models python streamlit-functions decision-tree if-else-statements kaggle-datasets knn logistic-regression match-case naive-bayes-classifier

streamlit-programs's Introduction

Streamlit-Programs

This repository contains programs in the Python programming language using module Streamlit.


Mode of Execution Used Visual Studio Code  Streamlit

Visual Studio Code

--> Visit the official website:  Visual Studio Code

--> Download according to the platform that will be used like Linux, Macos or Windows.

--> Follow the setup wizard.

--> Create a new file with the extention of .py and then this file can be executed in the server.

Streamlit Server

--> Streamlit is a python framework through which we can deploy any machine learning model and any python project with ease and without worrying about the frontend.

--> Streamlit is very user-friendly.

--> Streamlit has pre defined functions for all frontend components and we can directly use them.

--> To install streamlit in your system, just run this command-

pip install streamlit

Running Project in Streamlit Server

Make Sure all depencies are already satisfied before running the app.

  1. We can Directly run streamlit app with the following command-
streamlit run app.py

where app.py is the name of file containing streamlit code.

By default, streamlit will run on port 8501.

Also we can execute multiple files simultaneously and it will be executed in next ports like 8502 and so on.

  1. Navigate to URL http://localhost:8501

You should be able to view the homepage of your app.

🌟 Project and Models will change but this process will remain the same for all Streamlit projects.


About Projects

Complete Description about the project and resources used.

Linear Regression Salary Prediction

--> First ML model is constructed using linear regression for the dataset.

--> Then this model can be used directly.

--> The Homepage is designed for steamlit app.

--> After this the user input will be taken.

--> Finally we can run this app in the streamlit Server and get the desired output.

Dataset Used

Salary Dataset

--> Dataset is taken from: Salary Dataset

--> Contains Salary data for Regression.

--> The dataset has 2 columns-Years of Experience and Salary and 30 entries.

--> Column Years of Experience is used to find regression for Salary.

--> Dataset is already cleaned,no preprocessing required.

Algorithm Used

Linear Regression

--> Regression: It predicts the continuous output variables based on the independent input variable. like the prediction of house prices based on different parameters like house age, distance from the main road, location, area, etc.

--> It computes the linear relationship between a dependent variable and one or more independent features.

--> The goal of the algorithm is to find the best linear equation that can predict the value of the dependent variable based on the independent variables.

Naive Bayes Classifier Diabetes Prediction

--> First ML model is constructed using Naive Bayes Classifier for the dataset.

--> Then this model can be used directly.

--> The Homepage is designed for steamlit app.

--> After this the user input will be taken.

--> Finally we can run this app in the streamlit Server and get the desired output.

Dataset Used

Naive bayes classification data

--> Dataset is taken from:

--> Contains diabetes data for classification.

--> The dataset has 3 columns-glucose, blood pressure and diabetes and 995 entries.

--> Column glucose and blood pressure data is to classify whether the patient has diabetes or not.

--> Dataset is already cleaned,no preprocessing required.

Algorithm Used

Naive Bayes Classifiers

--> Naive Bayes classifiers are a collection of classification algorithms based on Bayes’ Theorem.

--> It is not a single algorithm but a family of algorithms where all of them share a common principle, i.e. every pair of features being classified is independent of each other.

--> The fundamental Naive Bayes assumption is that each feature makes an independent and equal contribution to the outcome.

ML Model Inbuilt Datasets

--> In this I applied all supervised learning algorithm on inbuilt datasets in scikit-learn.

--> Then this model can be used directly.

--> The Homepage is designed for steamlit app.

--> After this the user input will be taken.

--> Finally we can run this app in the streamlit Server and get the desired output.

--> Also I made two code files for this. One files contains the implementation of this code using if else and it will run on all versions of python.

--> The second file contains code implementation using match case and will only run in python versions 3.10 and later.


Libraries Used

Short Description about all libraries used in Project.

To install python library this command is used-

pip install library_name
  • NumPy (Numerical Python) – Enables with collection of mathematical functions to operate on array and matrices.
  • Pandas (Panel Data/ Python Data Analysis) - This library is mostly used for analyzing, cleaning, exploring, and manipulating data.
  • Matplotlib - It is a data visualization and graphical plotting library.
  • Scikit-learn - It is a machine learning library that enables tools for used for many other machine learning algorithms such as classification, prediction, etc.

Additional Resources 🧮📚📓🌐

  1. To see more of my machine learning models, visit my repository: https://github.com/madhurimarawat/Machine-Learning-Using-Python

  2. I deployed my ML models that I made using streamlit:

    Visit Website from : ML Algorithms on Inbuilt and Kaggle Datasets

    To See codes: https://github.com/madhurimarawat/ML-Model-Datasets-Using-Streamlits

  3. To see my Web Scrapper project made using Streamlit:

    Visit Website from : Web Scrapper

    To See codes: https://github.com/madhurimarawat/Web-Scrapper-Functions


Thanks for Visiting 😄

Drop a 🌟 if you find this repository useful.

If you have any doubts or suggestions, feel free to reach me.

📫 How to reach me:   Linkedin Badge     Mail Illustration📫

streamlit-programs's People

Contributors

madhurimarawat avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.