Liagson / TensorFlow-Course

https://lab.github.com/everydeveloper/introduction-to-tensorflow
0 stars 0 forks source link

Introduction #1

Closed github-learning-lab[bot] closed 4 years ago

github-learning-lab[bot] commented 4 years ago

Basics of TensorFlow Tutorial Using Fashion MNIST

clothes dataset images Figure 1 Fashion-MNIST samples (by Zalando, MIT License).

Introduction

Machine learning (ML)/Neural Network (NN) tools have recently made a huge splash with applications in data analysis, image classification, and data generation. Although ML methods have existed for decades, recent advancements in hardware have generated systems powerful enough to run these algorithms.

The typical "hello world" example for ML is a classifier trained over the MNIST dataset; a dataset of the handwritten digits 0-9. This dataset is getting a little stale and is no longer impressive with employers as a proof of capability due to both its seeming simplicity and to the plethora of existing tutorials on the topic. Here we will use a newer dataset to perform our ML "hello world", the Fashion MNIST dataset!

The Zeroth Step of ML (that should be completed before ever putting a hand to mouse, or finger to key) is understanding the format and sizes of your data. This step is often referred to as feature engineering. Feature engineering, typically, includes selecting and preprocessing the particular aspects of training data to give to your algorithm. You and I will start a good habit of examining the data and its format to make decisions concerning the appropriate size and format for our NN.

The Fashion MNIST dataset is comprised of 70,000 grayscale images of articles of clothing. The greyscale values for a pixel range from 0-255 (black to white). Each low-resolution image is 28x28 pixels and is of exactly one clothing item. Alongside each image is a label that places the article within a category; these categories are shown in Figure 2 with an example image belonging to the class.

detail view of clothing categories Figure 2 class numbers are shown next to image labels

This is an interactive tutorial where you will be prompted to do something at the end of each step. Sometimes you need to refresh the browser before the bot will respond.

Enter a comment (TRUE or FALSE) about the following statement:

"Before starting a machine learning project, you often need to select and process some of the data"

Liagson commented 4 years ago

TRUE

github-learning-lab[bot] commented 4 years ago

Correct!

Glad you are paying attention. 😉

Install Python

As a first step, let's make sure Python is installed and running. To test if it is installed and configured already, type python into your terminal. If it isn't installed yet, it should say something like "python is a unknown command". If it is installed, it will open the python environment, and should look something like this:

Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

If you see this type exit() to return to the command prompt. If not, you need install the latest Python 3 release for your OS: Windows, Mac, Linux/Unix. After you install python, you need to add it to your PATH variable to use the python command shortcut. You can find directions for how to do this here

You will need to close and reopen you command prompt before the new environmental variable is recognized. Type python to check if it is set up correctly. You will also know that you are in the Python environment as the prompt at which you type is represented by ">>>". Now, to install some packages for our project, we cannot do this from the Python environment, so we will need the means to leave the environment. This command is conveniently exit().

close this issue if you correctly installed Python

github-learning-lab[bot] commented 4 years ago

Alright, python is installed! 🐍

Now we are ready to import some packages used in machine learning.

I've opened a new issue for you with the next steps.