Skip to content

swolodkin-dev/Windows-Local-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Python Machine Learning Tools For Your PC

This procedure will allow you to install, setup & configure all the software needed to run a basic Machine Learning environment on your Windows PC utilizing:

Python
Virtualenv
Tensorflow
Keras
Matplotlib
Jupyter

Note

For widest compatibily, this environment uses only CPU resources, No GPU required!

Coursera Basic Image Classification with Tensorflow

In this specific example, I'll be opening and running the Jupyter Notebook from the Basic Image Classification with Tensorflow Course.

Download and Extract the Jupyter Notebook from the Course

If you've completed this course, you can get your completed Jupyter Notebook from Basic Image Classification with Tensorflow Resources.

You should download the TensorFlow2 notebook: Notebook_Complete_TF2 (Just click on it and save it to a directory on your drive).

Important

Make sure you save the file with the above filename exactly, it will add the .zip extension

Extract the contents of this zip arcive in the directory on your local disk where you will keep everything related to this notebook. For the purposes of this example, I created a directory called Local ML on my disk.

Python Environment Preparation

We must first download and install this specific Python version: python-3.9.13-amd64

Scroll to the bottom of the page and download the appropriate installer for Windows x64:

Windows installer (64-bit) Windows Recommended e7062b85c3624af82079794729618eca 29235432 SIG

Important

This may work with another v3.9.x or v3.10.x as well; however, it will not work with v3.11.x and later

Create a VirtualEnv and Install the ML Tools Packages

I've included a simple Windows Command file to create a new virtual environment tf-env and install all the basic ML packages.

It's easist to perform the remaining steps in a Command Window by pressing [Windows]+R then [ENTER] to run CMD

Use CD to make your default directory the one you created above, mine is LocalML

C:\>cd LocalML

Now run the included install_packages.bat command file; we only need to do this one time:

C:\LocalML>install_packages.bat

Tip

You can rerun this command file at anytime to reset and rebuild your virtual tf-env

Run Jupyter to Open, Run, Create & Modify Notebooks

The second inluded file start_notebook.bat we run anytime we want to open and use our Jupyter Notebooks:

C:\LocalML>start_notebook.bat

This will open the Jupyter environment in your default browser and display the contents of your default directory.

In our example, we can now open and run the TensorFlow Beginner - Basic Image Classification.ipynb notebook.

About

HowTo setup/configure Python ML tools under MS Windows 10

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published