Page 1 of 1

predicting future water quality with machine learning

Posted: Sun Dec 15, 2024 3:23 pm
by Mschmied2028
I've been attempting to do this project and have completed the entire first part, and I believe I've been successfully following everything but when it starts telling me to run code blocks that will alter the sheet nothing happens. I've made sure everything is named correctly and the code and sheet are in the same google drive folder, but when I run code blocks in google Collab nothing happens. I would just like some help figuring out what I did wrong so I can finish the project, because all of the rest of it is running these code blocks, so once I figure out how I think it will be easy.

Thanks.


[Administrator added: Project url: https://www.sciencebuddies.org/science- ... ved_oxygen ]

Re: predicting future water quality with machine learning

Posted: Mon Dec 16, 2024 4:12 pm
by amyCC
Hi - The first thing to do is to make sure you've run every code block, one at a time, in colab. Each one you run will show either that it successfully runs or that there is an error. Can you go back to the beginning of working in colab to verify you've run the blocks?

Make sure that the "Importing Libraries" section fully ran.

Make sure the Pandas DataFrame section (3) ran and that you connected to Google drive (mounted the drive successfully).

Make sure in 3B that you correctly identified the location for your files on Google drive. If you named them differently or put them in a different location, for example, you would need to update that path. When the file is correctly loaded, you should see your table show up under the cell. If it is NOT correctly loaded, you'll see a red icon that there is an error.

Have you made it this far? Or are the problems not happening until farther down?

Make sure you expand and run 4A and 4B and 4C.

That would bring you to the training section (5).

If you have done all of those steps with no errors, let us know WHICH code block you are working with that either is showing an error or doesn't seem to be doing anything. Also, can you also share a screenshot showing the header row and a row or two of data for the water_data.csv file you prepared?

Please also note that if you exit the colab notebook or close the browser (or it times out), you will have to re-run all initial steps (including mounting the Google drive). You can use the Runtime / Run before option to re-run blocks you have gone through before.

Amy
Science Buddies

Re: predicting future water quality with machine learning

Posted: Mon Dec 16, 2024 5:25 pm
by Mschmied2028
After looking at the reply I've attempted to retry putting everything into a google drive folder and I've named everything correctly, but then when I try to perform the third step in the second section where it says "Double-click the dissolved_oxygen.ipynb file. This should automatically open Google Colab.
Read the Troubleshooting Tips and How to Use This Notebook sections. Follow the instructions you find in that section.
Run the block under Importing Libraries to ensure you have access to all the functions we will use for this project." It doesn't take me to google colab it just says "no preview available" and doesn't take me anywhere, I'm thinking that this is the problem because now I can't even get the code into google colab.

Re: predicting future water quality with machine learning

Posted: Mon Dec 16, 2024 6:35 pm
by amyCC
Okay - so make sure the files are in google drive and that you can log into colab with that same account. If you have more than one google account, for example, you could end up with colab logged in differently than where you placed the files).

When you double-click the file, make sure you are doing that on the copy on drive (not one in a download folder). I ran through these same steps today to reply to your first question, and this does work. What browser are you using?

There is a way to import the file in colab, but if you can open it the other way (by double clicking the file in drive), it is easiest. You can try just importing the file as a new notebook. In the step where you mount the drive though, you will still have to connect to drive and then specify the right path for the csv file.

Amy