Prompting strategy
To leverage ChatGPT for machine learning, we need to have a clear understanding of how to implement prompting strategies specifically for code generation for machine learning.
Let’s brainstorm what we would like to achieve in this task to get a better understanding of what needs to go into the prompts.
Strategy 1: Task-Actions-Guidelines (TAG) prompt strategy
1.1 - Task: The specific task or goal is to build and optimize a CNN model for the CIFAR-10 dataset.
1.2 - Actions: The key steps involved in building and optimizing a CNN model for the CIFAR-10 dataset include:
- Preprocessing the image data: Normalize the pixel values and resize the images to a standardized size.
- Model construction: Define the baseline CNN model architecture with a single convolutional layer.
1.3 - Guidelines: We will provide the following guidelines to ChatGPT in our prompt:
- The code should be compatible with Jupyter Notebook. ...