{"id":26055757,"url":"https://github.com/lovnishverma/helloworldirismachinelearning","last_synced_at":"2025-10-28T07:10:28.822Z","repository":{"id":280953131,"uuid":"943718060","full_name":"lovnishverma/helloworldirismachinelearning","owner":"lovnishverma","description":"This is a simple Flask-based machine learning web application that predicts the species of an Iris flower based on user inputs. The model is trained using Logistic Regression and deployed on Glitch.com.","archived":false,"fork":false,"pushed_at":"2025-07-11T14:52:08.000Z","size":149,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T15:39:51.881Z","etag":null,"topics":["iris-classification","iris-dataset","machinelearning-python"],"latest_commit_sha":null,"homepage":"https://helloworldirismachinelearning.onrender.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovnishverma.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-06T06:41:24.000Z","updated_at":"2025-07-11T14:52:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"21abe5e1-e93c-46b1-aef6-a99c2ac45bbc","html_url":"https://github.com/lovnishverma/helloworldirismachinelearning","commit_stats":null,"previous_names":["lovnishverma/helloworldirismachinelearning"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lovnishverma/helloworldirismachinelearning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovnishverma%2Fhelloworldirismachinelearning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovnishverma%2Fhelloworldirismachinelearning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovnishverma%2Fhelloworldirismachinelearning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovnishverma%2Fhelloworldirismachinelearning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovnishverma","download_url":"https://codeload.github.com/lovnishverma/helloworldirismachinelearning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovnishverma%2Fhelloworldirismachinelearning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018119,"owners_count":26086280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iris-classification","iris-dataset","machinelearning-python"],"created_at":"2025-03-08T10:21:18.253Z","updated_at":"2025-10-14T06:14:16.073Z","avatar_url":"https://github.com/lovnishverma.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iris Machine Learning Web App\n\nThis is a simple **Flask-based machine learning web application** that predicts the **species of an Iris flower** based on user inputs. The model is trained using **Logistic Regression** and deployed on **Glitch.com**.\n\n## 🎥 Youtube Tutorial (Hindi)\n[Click here view youtube video!](https://youtu.be/DlCdQ1MZXsc?si=ACw7zrwmCLGsYNVp)\n\n## 🌐 Live Demo\n[Click here to try the app!](https://helloworldirismachinelearning.onrender.com/)\n\n## 📂 Project Links\n- **GitHub Repository:** [GitHub](https://github.com/lovnishverma/helloworldirismachinelearning)\n\n### **Additional Documentation**\n- [Logistic Regression vs. Linear Regression](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/Logistic%20Regression%20vs.%20Linear%20Regression.md)\n- [Encoding](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/encoding.md)\n- [NumPy](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/numpy.md)\n- [Pandas](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/pandas.md)\n- [Scaling](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/scaling.md)\n- [Slicing](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/slicing.md)\n- [Readme](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/readme.md)\n- [DataCleaningGuide](https://github.com/lovnishverma/helloworldirismachinelearning/blob/master/DataCleaningGuide.md)\n\n## 🛠️ Technologies Used\n- **Flask** (Web Framework)\n- **Scikit-Learn** (Machine Learning Model)\n- **Pandas \u0026 NumPy** (Data Processing)\n- **HTML \u0026 Jinja2** (Frontend Template Engine)\n- **Glitch.com** (Free Deployment Platform)\n\n## 📌 Features\n✅ Train and deploy a **Logistic Regression** model for Iris species classification.  \n✅ Simple web interface to input flower measurements.  \n✅ Real-time predictions displayed on the web page.  \n✅ Deployed on **Glitch** for easy access.  \n\n## 📦 Installation \u0026 Setup\nTo run this project locally, follow these steps:\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/lovnishverma/helloworldirismachinelearning.git\n   cd helloworldirismachinelearning\n   ```\n\n2. **Create a virtual environment (optional but recommended):**\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows use: venv\\Scripts\\activate\n   ```\n\n3. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Run the Flask app:**\n   ```bash\n   python app.py\n   ```\n\n5. **Access the web app locally:**\n   Open a browser and go to `http://127.0.0.1:5000/`\n\n## 🚀 Deployment on Glitch\nTo deploy the app on Glitch:\n1. Go to [Glitch.com](https://glitch.com/)\n2. Click **New Project** → **Import from GitHub**\n3. Paste your repository URL: `https://github.com/lovnishverma/helloworldirismachinelearning`\n4. Wait for the installation to complete.\n5. Click **Preview - Open in a new window** to access your app!\n\n## 📷 Screenshot\n\n![image](https://github.com/user-attachments/assets/0ab1debe-9dc7-4be2-a281-e52023a76dde)\n\n## 📜 License\nThis project is licensed under the **MIT License**.\n\n## 🤝 Contributing\nFeel free to contribute to this project! You can fork the repo, create a new branch, and submit a pull request.\n\n## ✨ Acknowledgments\n- **Scikit-Learn** for the ML model.\n- **Flask** for making web deployment easy.\n- **Glitch** for providing free hosting.\n\n# *Future Enhancements for This Project 🎯*\n\nThis Flask-based *Iris Flower Classification* project can be improved further with the following enhancements:  \n\n✅ *Use train-test split for better accuracy* – Implement `train_test_split` from `sklearn.model_selection` to split data into *80% training and 20% testing* for better generalization.  \n\nCurrently, the model is trained on the entire dataset, which is *not a good practice* because:  \n- It might memorize the dataset instead of learning general patterns (overfitting).  \n- We cannot evaluate how well it performs on unseen data.  \n\n✅ *Feature Scaling for Better Predictions* (optional but recommended)– Use `StandardScaler` from `sklearn.preprocessing` to normalize feature values, ensuring better model performance.  \n\n✅ *Train Once, Save Model for Future Use* – Use `joblib` or `pickle` to *save the trained model* and load it later instead of retraining it every time the app runs.  \n\n✅ *Load Trained Model in Flask* – Instead of training on every restart, modify the code to *load a pre-trained model* for faster predictions.  \n\n✅ *Enhance UI with Bootstrap* – Improve the *frontend* using *Bootstrap* for a more professional, responsive, and visually appealing UI.  \n\n✅ *Error Handling \u0026 Input Validation* – Implement input validation and exception handling to *prevent crashes* due to invalid user inputs.  \n\n✅ *Logging \u0026 Debugging* – Add `logging` to capture errors and debug issues more efficiently in a production environment.  \n\n✅ *Deploy as a REST API* – Convert the app into an *API* using `Flask-RESTful` for better integration with *mobile apps or other web services*.  \n\n✅ *Host Model and Project on Hugging Face* – Deploy the trained model and project on *Hugging Face*, which provides 24x7 accessibility.  \n- Hugging Face is *better than Glitch* for ML projects as it supports *Flask, Streamlit, and Gradio*, while Glitch only supports Flask.  \n\n✅ *Use a Database for Storing Predictions* – Store *user inputs and predictions* in a database like *SQLite or PostgreSQL* for better data analysis and tracking.  \n\n💡 These improvements will make your ML model more efficient, user-friendly, and scalable!  \n\n---\n👉 Made with ❤️ by [Lovnish Verma](https://github.com/lovnishverma/) 🚀\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovnishverma%2Fhelloworldirismachinelearning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovnishverma%2Fhelloworldirismachinelearning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovnishverma%2Fhelloworldirismachinelearning/lists"}