This project aims to predict salaries based on years of experience using a machine learning model. The project includes a Flask web application that allows users to input the years of experience and receive a salary prediction.
The project structure is as follows:
app.py
: Flask web application for the salary prediction.reg_model.pkl
: Pickle file containing the trained machine learning model.scaling.pkl
: Pickle file containing the scaler used for feature scaling.templates/
: HTML templates for the web application.static/
: Static files (e.g., CSS, images).
1.Clone the repository:
git clone https://github.com/rohith4088/salary_prediction.git
## Navigate to the project directory:
cd salary-prediction
2.Install the required dependencies:
pip install -r requirements.txt
3.Usage
Run the Flask application:
python app.py
Open your web browser and go to http://127.0.0.1:5000/ to access the salary prediction web application.
Enter the years of experience, and the application will provide a salary prediction.
4.Dependencies
Flask
NumPy
Pandas
Scikit-learn
5.Contributing
Contributions are welcome! If you find any issues or have suggestions for improvement, please create a new issue or submit a pull request.
6.License
This project is licensed under the MIT License.