- Use the data you have analyzed in the previous two projects.
- Continue with the development to find a model that fits better.
Follow the instructions below:
- Create a new repository based on machine learning project by clicking here.
- Open the newly created repository in Codespace using the Codespace button extension.
- Once the Codespace VSCode has finished opening, start your project by following the instructions below.
Once you have finished solving the exercises, be sure to commit your changes, push them to your repository, and go to 4Geeks.com to upload the repository link.
In the two previous projects, we saw how we could use a decision tree and then a random forest to improve the prediction of diabetes. We have reached a point where we need to improve. Can boosting be the best alternative to optimize the results?
Boosting is a sequential composition of models (usually decision trees) in which the new model aims to correct the errors of the previous one. This view may be useful in this data set, since several of the assumptions studied in the module are met.
In this project, you will focus on this idea by training the dataset to improve the
Remember that previous projects can be found here (decision trees) and here (random forest).
Loads the processed dataset from the previous project (split into training and test samples and analyzed with EDA).
One way to optimize and improve the results is to generate a boosting so that there is the necessary variety to enrich the prediction. Train it and analyze its results. Try modifying the hyperparameters that define the model with different values, analyzing their impact on the final accuracy, and plotting the conclusions.
Store the model in the corresponding folder.
Make a study now of the three models used and analyze their predictions: the class with the highest prediction accuracy and the one with the lowest. Which of the three models do you choose?
Note: We also incorporated the solution samples on
./solution.ipynb
that we strongly suggest you only use if you are stuck for more than 30 min or if you have already finished and want to compare it with your approach.