Video Link: Linked-IN Video
Portfolio: Nambu Keerthi
This project aims to develop two machine learning models for the copper business:
- Selling Price Prediction Model – To accurately forecast copper selling prices.
- Lead Classification Model – To classify leads effectively.
Manually predicting prices and managing leads is time-consuming and may lead to poor decisions. These models will automate the process, improving accuracy and efficiency. These models will help in making better price decisions and efficient lead management.
Domain : Manufacturing
- Python
- Streamlit
- Pandas
- Numpy
- Skikit- Learn
- Firstly install all the required extensions in the requirements.txt
pip install -r requirements.txt
- Second get the Data from the Data source and Load the data for Data cleaning and Pre Processing. Then finding the outliers for removing then make it visible the dataset columns by using matplotlib and seaborn.
import seaborn as sns
import matplotlib.pyplot as plt
sns.distplot(dataframe['column_name'])
plt.show()
- After that should make heatmap visualization to knowning how data values are spreaded there.
x=df_p[['quantity tons_log','application','thickness_log','width','selling_price_log','country','customer','product_ref']].corr()
sns.heatmap(x, annot=True, cmap="YlGnBu")
- Then split the dataset as well as train and test data for creating ML models. Save the models in ".pkl" file
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeRegressor
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from sklearn.metrics import mean_squared_error, r2_score
from sklearn.model_selection import GridSearchCV
- Last we can run the streamlit app
streamlit run copper.py
Selling Price Prediction
-
Select the "Predict Selling Price" tab. Fill in the following required informations.
-
Click the "Predict Selling Price" button. The app will display the predicted selling price based on the provided information.
Status Prediction
-
Select the "Predict Status" tab. Fill in the following required informations.
-
Click the "Predict Status" button. The app will display the predicted selling price based on the provided information.
