Giter Club home page Giter Club logo

building-machine-learning-projects-with-tensorflow's Introduction

Building Machine Learning Projects with TensorFlow

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

Instructions and Navigations

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 
>>> tens1 = tf.constant([[[1,2],[2,3]],[[3,4],[5,6]]]) 
>>> sess = tf.Session()
>>> print sess.run(tens1)[1,1,0] 
5 
Software Required Hardware Required Operating System
Tensorflow 0.10, Jupyter Notebook Any x86 computer Ubuntu Linux 16.04

Related Products

building-machine-learning-projects-with-tensorflow's People

Contributors

danish-shaikh123 avatar manikandankurup-packt avatar moebiuscurve avatar murtazatinwala avatar packt-itservice avatar rnditdev avatar vishwesh5 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

building-machine-learning-projects-with-tensorflow's Issues

Code example errata - Chapter 1

>>> import tensorflow as tf 
>>> tens1 = tf.constant([[[1,2],[2,3]],[[3,4],[5,6]]]) 
>>> print sess.run(tens1)[1,1,0] 
5 

will throw an error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'sess' is not defined

Please create the sess object, before calling the run with either

sess = tf.Session()

or

sess = tf.InteractiveSession()

But these concepts are discussed only down below, so not sure if thats why it was intentionally ignored here.

Tensor Slicing and Joining Example - Chapter 1 - Errata

I'm new to TensorFlow, hence can't figure out the error myself.

In Chapter-1 under Tensor Slicing and Joining section, I simply copied-pasted the code to see the results and I get the error.

Please help as my code is below:

import tensorflow as tf 
sess = tf.InteractiveSession()

t_matrix = tf.constant([[1,2,3],
                       [4,5,6],
                       [7,8,9]])
t_array = tf.constant([1,2,3,4,9,8,6,5])
t_array2 = tf.constant([2,3,4,5,6,7,8,9])

tf.split(0, 2, t_array) #splitting the array in two <--- Err in This Line

I get error while executing the split function as follows:

ValueError: Input must be scalar but has rank 1 for 'split_10' (op: 'Split') with input shapes: [8], [] and with computed input tensors: input[0] = <1 2 3 4 9 8 6 5>.

1.5.1 列表格式-CSV

大佬,
这个部分的代码不能复现,错误太多了,
很多方法都变了,请更新下代码啊。
python3.6.6
tensorflow-1.12.0

errata in chapter 4

section: Logistic function as a linear modeling generalization

actual:
The logistic function δ(t) is defined as follows

expected:
The logistic function σ(t) is defined as follows

Question about Chapter 7

Hi,

I have couple of question on Chapter 7:

  1. In Example 1 - univariate time series prediction with energy consumption data - when I run the example I get an error stating: AttributeError: module 'tensorflow.contrib.learn' has no attribute 'TensorFlowEstimator. Googling the problem I found tensflow have removed TensorFlowEstimator. What is the alternative for this?

  2. No code supplied for the Example 2 on the github.

Question about Chapter 5

Great book, I've been following the examples. I'm new to ML so excuse my questions if they are silly.

  1. In your quadratic example in chapter 5, the following line for dsY, I believe should not have the zero in front of it.
    testX, testY = dsX[trainsamples:trainsamples + testsamples], dsY[0:trainsamples:trainsamples+testsamples]

  2. I noticed that you called one of your notebooks CH5 linear regression nn (neural network). However, in the actual chapter, it's called Non linear synthetic function regression. I'm sort of confused. Can you explain why you are calling it linear here and non-linear in the actual book?

source code errata in chapter 3

section: Loss function description and Optimizer loop

now:
fori, j in zip(xvalues, yvalues)

expected:
for i, j in zip(xvalues, yvalues)

question about chapter 3

in Multivariate Linear Regression.py, it will not show the plot until I add one line:
plot.show()
Could you tell me why?

errata in chapter 4?

section: loss function

actual:
In the previous section we saw our approximated [latex]\hat p[/latex] function,

expected:
Is [latex]\hat p[/latex] right?

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.