This project aims to develop a machine learning model for predicting social media impact over students life. The system leverages a combination of Python, R programming, Flask, and custom datasets collected via Google Forms from students.
- Python: For data processing, machine learning model development, and prediction.
- R Programming: For data processing, machine learning model development, and prediction.
- Flask: To create a web application that serves the machine learning model and provides a user interface.
- Google Forms: To collect custom datasets from student responses.
social-media-prediction/
│
├── data/
│ ├── raw/ # Raw data collected from Google Forms
│ └── processed/ # Processed data ready for analysis
│
├── notebooks/ # Jupyter notebooks for exploratory data analysis and model building
│
├── src/
│ ├── __init__.py # Initialization file for the src module
│ ├── data_preprocessing.py # Scripts for cleaning and preparing data
│ ├── feature_engineering.py # Scripts for feature extraction and transformation
│ ├── model_training.py # Scripts for training machine learning models
│ └── model_evaluation.py # Scripts for evaluating model performance
│
├── app/
│ ├── __init__.py # Initialization file for the Flask app
│ ├── routes.py # Define routes for the Flask web application
│ ├── static/ # Static files (CSS, JavaScript, images)
│ └── templates/ # HTML templates for the web application
│
├── requirements.txt # Python dependencies
├── R_requirements.txt # R dependencies
├── README.md # This README file
└── .gitignore # Git ignore file
-
Clone the repository:
git clone https://github.com/yourusername/social-media-prediction.git cd social-media-prediction
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Python dependencies:
pip install -r requirements.txt
-
Install R and RStudio if not already installed.
-
Install R dependencies:
install.packages(c('tidyverse', 'caret', 'shiny'))
- Google Forms: The data is collected using Google Forms, with responses saved in CSV format. Place the CSV files in the
data/raw/
directory.
-
Preprocess Data: Run the data preprocessing script to clean and prepare data.
python src/data_preprocessing.py
-
Feature Engineering: Extract and transform features as needed.
python src/feature_engineering.py
-
Train Models: Train your machine learning models using the training script.
python src/model_training.py
-
Evaluate Models: Evaluate the performance of your models.
python src/model_evaluation.py
-
Run Flask App: Start the Flask web application.
python app/__init__.py
-
Access the Application: Open your web browser and go to
http://127.0.0.1:5000/
to interact with the application.
Feel free to submit issues and pull requests. For detailed instructions on how to contribute, please refer to the CONTRIBUTING.md
file.
This project is licensed under the MIT License. See the LICENSE
file for details.
For any questions or feedback, please contact your.email@example.com.
Thank you for checking out the Social Media Prediction project!