ChatGPT assessing code it generated and making it better and more real-world!
#ChatGPT the AI that keeps giving amazement.
Ok, so I asked ChatGPT for this:
Prompt: "Create a simple python program to create a consumption model for consuming paper goods."
ChatGPT:
Here's a simple Python program that uses a decision tree to predict future consumption of paper goods:
I saw that is referenced paper_goods_data.csv. So I asked it:
Prompt: "Generate sample data for paper_goods_data.csv"
ChatGPT:
I asked it to add date, so it did.
Then I asked it to update the code to reflect the new CSV and it did.
Then I asked it to have the data span between 1-3 weeks and it did.
I tried to run the code but, it had errors. So I pasted it back into ChatGPT.
Me: "What's wrong with this code...."
It just assessed it's own generated code and said it's kinda a toy (my words) and it "requires more work"
So of course I said:
Prompt: "Can you make it better"
GPT:
Can you believe this?
I put it in PyCharm and ran it and here you go. Ran first try:
Best 1.0 version of any software I've seen. And will revolutionize.
Founder @ Modev | Independent Conferences | Meaningful Connections
1 年Great example, John. I saw a quote somewhere that people won't lose jobs to AI, they'll lose jobs to people leveraging AI. This is a perfect example.