Python Neural Networks – Tensorflow 2.0 Tutorial – Loading & Looking at Data




[ad_1]

This python tensorflow 2.0 tutorial covers how to load in the MNIST Fashion dataset that our neural network will use for image classification in future videos. We can load the data set quite easily by using the keras API provided by tensorflow. We will then use matplotlib to view our data.

Playlist: https://www.youtube.com/watch?v=OS0Ddkle0o4&list=PLzMcBGfZo4-lak7tiFDec5_ZMItiIIfmj

Tensorflow install: pip install -q tensorflow==2.0.0-alpha0

Text-Based Tutorial: https://techwithtim.net/tutorials/python-neural-networks/loading-data/

Tensorflow website: https://www.tensorflow.org/alpha/tutorials/keras/basic_classification

Want a sneak peak into my life? Follow my Instagram @tech_with_tim where I’m going to be filming a video each morning sharing my goals for the day and what I have planned:
https://www.instagram.com/tech_with_tim

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
https://tech-with-tim.teachable.com/p

📸 Instagram: https://www.instagram.com/tech_with_tim
🌎 Website https://techwithtim.net
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/pr2k55t
📝 LinkedIn: https://www.linkedin.com/in/tim-rusci
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim

💵 One-Time Donations: https://www.paypal.com/donate/?token=
💰 Patreon: https://www.patreon.com/techwithtim
◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
– Tech With Tim
– Tensorflow Tutorial
– Python tensorflow 2.0 tutorial
– Python neural network turtorial
– Python Tutorials
– Keras MNIST

Source


[ad_2]

Comment List

  • Tech With Tim
    December 1, 2020

    What does scratch actually means?

  • Tech With Tim
    December 1, 2020

    Thank so much for your awesome course and other videos. Your work is great, keep on.

  • Tech With Tim
    December 1, 2020

    omg I love you

  • Tech With Tim
    December 1, 2020

    I am facing an error after printing the test labels, the error is:-
    ImportError: cannot import name '_imaging' from 'PIL'
    Someone please help…

  • Tech With Tim
    December 1, 2020

    2020-10-06 14:41:29.465285: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
    2020-10-06 14:41:29.512351: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.

    How do i really solve this?

  • Tech With Tim
    December 1, 2020

    I can't install tensor flow. Please help!!!

  • Tech With Tim
    December 1, 2020

    Hi Tim, thank you for all the great videos made especially for us.
    This afternoon I installed Tensorflow 2.x on my Raspberry and used the program from this video to test Tensorflow on my Pi.

    It worked all at once, a good starting point to continue now. and thanks again

  • Tech With Tim
    December 1, 2020

    i like ur way off teaching for sure i will honor you

  • Tech With Tim
    December 1, 2020

    I have a doubt..

    U showed us to train clothees how can i train my own images- like cats and dogs

  • Tech With Tim
    December 1, 2020

    how do I feed in an external jpg file to test on this dataset

  • Tech With Tim
    December 1, 2020

    Is TensorFlow OpenSource, and free to use??

  • Tech With Tim
    December 1, 2020

    I have seen Machine Learning courses and in both here and there I see you writing:

    "import something as smth

    from something import …"

    Why do you write so? Maybe, there is some logic in here. Please, let me know.

  • Tech With Tim
    December 1, 2020

    if you'll see, this array is 2D and it contains 28 elements per array. so any element in this 2d array contains an rgb value. it make sense doesn't it 🙂

  • Tech With Tim
    December 1, 2020

    Thanks Tim

  • Tech With Tim
    December 1, 2020

    Tim , awesome work so far .Thank you so much for sharing all that knowlegde …
    Now , in this tutorial i'm facing a problem while running the file at 08:00 . The exact message that pops up is …
    Traceback (most recent call last):

    File "NNTutorial#1.py", line 1, in <module>

    import tensorflow as tf

    File "C:Usersgeorganaconda3libsite-packagestensorflow__init__.py", line 27, in <module>

    from tensorflow._api.v2 import audio

    ModuleNotFoundError: No module named 'tensorflow._api' .
    I would be so grateful if anyone can help me .

  • Tech With Tim
    December 1, 2020

    how is 0.964797234 for example, smaller than a number like 255 ? how come it's considered shrunken down ?

  • Tech With Tim
    December 1, 2020

    how do i do that with my owm images?

  • Tech With Tim
    December 1, 2020

    Why am i getting this error!!????? Please help

    Traceback (most recent call last):

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonpywrap_tensorflow.py", line 58, in <module>

    from tensorflow.python.pywrap_tensorflow_internal import *

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py", line 28, in <module>

    _pywrap_tensorflow_internal = swig_import_helper()

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper

    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libimp.py", line 242, in load_module

    return load_dynamic(name, filename, file)

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libimp.py", line 342, in load_dynamic

    return _load(spec)

    ImportError: DLL load failed: The specified module could not be found.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

    File "<stdin>", line 1, in <module>

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow__init__.py", line 101, in <module>

    from tensorflow_core import *

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_core__init__.py", line 42, in <module>

    from . _api.v2 import audio

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_core_apiv2audio__init__.py", line 10, in <module>

    from tensorflow.python.ops.gen_audio_ops import decode_wav

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonopsgen_audio_ops.py", line 9, in <module>

    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_init__.py", line 50, in __getattr_

    module = self._load()

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow__init__.py", line 44, in _load

    module = _importlib.import_module(self.__name__)

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libimportlib__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepython__init__.py", line 49, in <module>

    from tensorflow.python import pywrap_tensorflow

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonpywrap_tensorflow.py", line 74, in <module>

    raise ImportError(msg)

    ImportError: Traceback (most recent call last):

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonpywrap_tensorflow.py", line 58, in <module>

    from tensorflow.python.pywrap_tensorflow_internal import *

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py", line 28, in <module>

    _pywrap_tensorflow_internal = swig_import_helper()

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py", line 24, in swig_import_helper

    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libimp.py", line 242, in load_module

    return load_dynamic(name, filename, file)

    File "C:UsersNilesh ApsingkarAppDataLocalProgramsPythonPython37libimp.py", line 342, in load_dynamic

    return _load(spec)

    ImportError: DLL load failed: The specified module could not be found.

    Failed to load the native TensorFlow runtime.

    See https://www.tensorflow.org/install/errors

  • Tech With Tim
    December 1, 2020

    Arent you gonna do AI snake game

  • Tech With Tim
    December 1, 2020

    I have a question!
    Why "plt.imshow(train_images[7], cmap=plt.cm.binary)" shows pullover?
    According to this label list below..
    0 T-shirt/top

    1 Trouser

    2 Pullover

    3 Dress

    4 Coat

    5 Sandal

    6 Shirt

    7 Sneaker

    8 Bag

    9 Ankle boot
    , image[7] indicate Sneaker, not pullover.
    I'm so confused… Please help me out

  • Tech With Tim
    December 1, 2020

    Please point me to a tutorial to create data sets as this is crucial. Every single TF tutorial I find is always using pre existing data sets!! Which is basically useless becuase it defeats the purpose of learning this stuff! Surely its obvious people will need their own data sets. I cannot find this info so if you know of a tutorial please post the link. Thank You!

  • Tech With Tim
    December 1, 2020

    If train_images[0].size equals (28,28,3), then 3 represents RGB. If 4, then RGBA

  • Tech With Tim
    December 1, 2020

    excellent video. just a small correction at 11:08 -> 255 is all ones in binary and hence it is known as white and 0 is black.

  • Tech With Tim
    December 1, 2020
  • Tech With Tim
    December 1, 2020

    this was amazing man thank you for making this side note are you looking for a job by any chance I know a lot of recruiters at google and they would def hire you up like mad quick sauce for sure when they see your skillzzz

  • Tech With Tim
    December 1, 2020

    Tim thank you so much for this tutorial, I wanted to create deep learning project for a long time but I was putting it off because I didn't know where to start after only doing tutorials that required me to fill in some code, not to write it from scratch. You are showing the process step by step and focusing on things that no other tutorials focuses on, like how to look at data which help me a lot as I'm new to python. Best tutorial I've ever seen <3

  • Tech With Tim
    December 1, 2020

    Do you have a video showing how to load my own images?

  • Tech With Tim
    December 1, 2020

    Hey Tim, great work. I just wondering why have you switched to Sublime Text?

  • Tech With Tim
    December 1, 2020

    Hey Tim nice Tutorial. What if I want to create my own datasets. How should i do that do you have any idea how do it ?
    Thank you.

  • Tech With Tim
    December 1, 2020

    i dont know why i cannot import keras in pycharm
    DLL load failed: The specified procedure could not be found.

  • Tech With Tim
    December 1, 2020

    Hi guys
    I tried to install tensorflow but it doesn't works even after I uninstall numpy, this message is shown:
    ERROR: Could not find a version that satisfies the requirement tensorflow==2.0.0-alpha0 (from versions: none)

    ERROR: No matching distribution found for tensorflow==2.0.0-alpha0

    Help please.

Write a comment