Mastering Ecommerce Sales Predictions Using RandomForestRegressorMastering Ecommerce Sales Predictions Using RandomForestRegressor
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Today I started working on an Ecommerce Sales Prediction project which will take some details about the product that you want to predict the sales of and gives prediction as output
Downloaded a dataset from Kaggle and did some preprocessing steps like feature extraction, clear duplicate data, clear empty shells, etc. on that data to make it clean and steady to fit in the model.
Then, tested some regression model which are Linear Regression, RandomForestRegressor and DecisionTreeRegressor. After comparing the R2_score and mean_absolute_error of all these models, finally ended at a conclusion that RandomForestregressor is the best with r_2 score of 0.98 and mean absolute error of approx 249.0567
so that it for today, i am confident that i will complete this project by tomorrow.
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started