Code Monkey home page Code Monkey logo

deep-learning-with-tensorflow's Introduction

Deep Learning with TensorFlow

Deep Learning with TensorFlow by Packt

This is the code repository for Deep Learning with TensorFlow, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Deep learning is the step that comes after machine learning, and has more advanced implementations. Machine learning is not just for academics anymore, but is becoming a mainstream practice through wide adoption, and deep learning has taken the front seat. As a data scientist, if you want to explore data abstraction layers, this book will be your guide. This book shows how this can be exploited in the real world with complex raw data using TensorFlow 1.x.

Throughout the book, you’ll learn how to implement deep learning algorithms for machine learning systems and integrate them into your product offerings, including search, image recognition, and language processing. Additionally, you’ll learn how to analyze and improve the performance of deep learning models. This can be done by comparing algorithms against benchmarks, along with machine intelligence, to learn from the information and determine ideal behaviors within a specific context.

After finishing the book, you will be familiar with machine learning techniques, in particular the use of TensorFlow for deep learning, and will be ready to apply your knowledge to research or commercial projects.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

>>> import tensorflow as tf
>>> hello = tf.constant("hello TensorFlow!")
>>> sess=tf.Session()

All the examples have been implemented using Python version 2.7 on a Ubuntu Linux 64 bit including the TensorFlow library version 1.0.1. You will also need the following Python modules (preferably the latest version): Pip Bazel Matplotlib NumPy Pandas Preface . Only for Chapter 8, Advanced TensorFlow Programming and Chapter 9, Reinforcement Learning, you will need the following frameworks: Keras Pretty Tensor TFLearn OpenAI gym

Related Products

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781788831109

deep-learning-with-tensorflow's People

Contributors

deeptituscano avatar dominicpereira92 avatar kmichal avatar lightyagami1 avatar packt-itservice avatar packtutkarshr avatar rezacsedu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deep-learning-with-tensorflow's Issues

A few bugs in ch03: softmax_model_loader_1.py

In the python 2.7 directory of ch03; a few bugs can be found for softmax_model_loader_1.py:

  1. While the image is stored in a variable names img:
    line 17: img = mnist.test.images[num]
    The variable referenced while plotting it is image_b:
    line 23: plt.imshow(image_b.reshape([28, 28]), cmap='Greys')

  2. In line 19, img passed in the feed_dict has shape (784,) however the expected shape is (1,784).

  3. In line 21, result is an array comprised of 2 other arrays, out of which the second array has the prediction probability for every character hence, the results should be printed as:
    line 20: print(result[1])
    line 21: print(sess.run(tf.argmax(result[1], 1)))

exponentially increasing loss

I am getting this output

**FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Train size: 3761
Validation size: 417
Test size: 1312
WARNING:tensorflow:From ./EmotionDetector_1.py:119: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:

Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.

See @{tf.nn.softmax_cross_entropy_with_logits_v2}.

2018-05-31 15:40:18.578886: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
WARNING:tensorflow:Passing a GraphDef to the SummaryWriter is deprecated. Pass a Graph object instead, such as sess.graph.
Training Loss: 13.650236
2018-05-31 15:40:20.163425 Validation Loss: 13.650264
Training Loss: 41.581100
Training Loss: 393.378937
Training Loss: 1884.418457
Training Loss: 5707.721191
Training Loss: 15281.135742**

after this it is taking too long to give any result

Performance issue in the Chapter04/EMOTION_CNN/Python%203.5/test_your_image.py(P1)

Hello, I found a performance issue in the Chapter04/EMOTION_CNN/Python%203.5/test_your_image.py, tf.argmax(result, 1) will be created repeatedly during program execution, resulting in reduced efficiency. I think result and tf.argmax(result, 1) should be created before the loop.

The same issue exists in :

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.