I've been teaching my 9-year-old nephew Python to for the past year and have recognized how quickly he learns. Through seeing his progress, I have decided to introduce him to the field of machine learning! Teaching him machine learning will help him improve his skills in problem-solving, critical thinking, and creativity. I'm excited to help my nephew explore this rapidly growing field and set him up for success in the future.
As an AI engineer, recognizing the importance of machine learning and its role in the growth of our digital futures and livelihood, my mission is to share the importance of learning about it with my nephew, family, and the world!
I initiated teaching my nephew by sharing a story to help him understand the syntax and meaning behind each term and action. All a part of my mission - helping 1 million "Kids Learn and Manage AI".
"Once upon a time, there was a young scientist named Max who was very interested in machine learning. He wanted to learn how to build a machine-learning model that could make predictions based on data.
One day, Max's friend Maria told him about a special library called scikit-learn that had lots of tools for building machine learning models. Max was very excited to try it out, so he decided to install it on his computer.
After installing scikit-learn, Max opened up a special program called the Python terminal and started writing some code. The first thing he did was import a few tools that he needed from the scikit-learn library.
To import the tools, Max typed this line of code: "from sklearn.model_selection import train_test_split." This line told the computer to find the scikit-learn library and import a tool called "train_test_split" from a module (or section) called "model_selection."
Then, Max imported another tool called "LinearRegression" from the "sklearn.linear_model" module. This tool would help him build a special kind of machine learning model called a linear regression model.
Finally, Max imported a library called "numpy" that he would use to reshape his data. He used the nickname "np" to refer to this library so that he wouldn't have to type out the whole name every time he wanted to use it.
With these tools imported, Max was ready to start building his machine-learning model. He was excited to see what he could learn and what predictions he could make."
[ Open AI. ChatGPT, 8 Jan. 2023, openai.com/chatgpt ( web-base tool). Accessed 8 Jan. 2023. ChatGPT assisted create the story about Max.]
My nephew now has a visual of why he needs Python packages while he's coding to perform machine learning after reading the story.
Let's prepare to share more about the wonderful world of Machine Learning!
Re-installed Python and cautiously only used the directions directly from python.org to install the Python package. After I followed the prompts I went to the terminal shell. Look for the terminal by search or it's normally a black square with " >_" on the upper left hand side of the image.
In order to move forward, your computer must have the following installed so that the coding language Python and package manager can be used :
The terminal must be opened and enter this code after "~%" DO NOT INCLUDE QUOTATIONS:
You should see a multiple "000000000"
Once I have the packaging manager installed after "~%" type in search:
" python3 get-pip.py "
Keep in mind I had to uninstall my previous Python package and re-install for tutorial purposes.
The output should look something like this:
Collecting pip
Downloading pip-22.3.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 23.3 MB/s eta 0:00:00
Collecting wheel
Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: wheel, pip
Attempting uninstall: pip
Found existing installation: pip 22.3.1
Uninstalling pip-22.3.1:
Successfully uninstalled pip-22.3.1
Successfully installed pip-22.3.1 wheel-0.38.4
Once that has finished, after "~%" I put what is in between the quotation marks: " pip -v "
You should see all the commands options such as:
pip <command> [options]
Please note that you may consider Homebrew to install packages but be very cautious regarding any link you click. I stick with everything directly from the Python and packaging manager websites.
Now that we have pip installed, let's download the sciKit enter: " pip install scikit-learn "
The pip will collect the packages known as: threadpoolctl, numpy, joblib, scipy, scikit-learn
Easy! Congratulations! Now you are ready to use sciKit libraries.
Let's run the Python in your terminal by accessing your terminal and typing in after "~%"
enter DO NOT INCLUDE QUOTATIONS: "python3"
Interested in having the Ultimate Machine Learning Guide for Kids?
Join us to receive additional information regarding the Machine Learning for Kids digital ebook!
The Machine Learning article is prepared to help you in your educational and digital product marketing journey. Beginners interested in learning or teaching machine learning can follow this guide to assist in educating accessible technology along with advanced technology to children. View points: a personal perspective, and nephew's perspective.
Currently, the guide is presented in a Mac set up however, you may request a windows installation guide via the contact us submission form.