ChatGPT Plus writes and comments on a program
In this section, ChatGPT Plus will do all the work: writing the code, commenting on the code, and providing an explanation.
IBM SPSS Decision Trees is a classification and decision tree tool designed for a decision-making system: https://www.ibm.com/products/spss-decision-trees.
However, for some projects, we do not need a complex program but a compact function to get the job done.
Open the following notebook, Chapter17
, which is in the GitHub repository:
ChatGPT_Plus_writes_and_explains_classification.ipynb
Install and import OpenAI and enter the API key before running the notebook.
Designing the prompt
After installing scikit-learn as suggested by ChatGPT Plus, we submit two requests in sequence to ChatGPT Plus:
- Provide a scikit-learn classification of the Iris dataset with some kind of matplotlib graph to describe the result. Don’t use OpenAI APIs.
- Now write a detailed explanation...