Giter VIP home page Giter VIP logo

applied-deep-learning's Introduction

Applied Deep Learning - A case based approach - Book material

This repository accompanies Applied Deep Learning by Umberto Michelucci (Linkedin) (Apress, 2018).

Cover image

University course

In case you are interested I updated heavily the material for the university course I am teaching at the University of Applied Science in Zürich based on the book. The material has been updated for the course and will not reflect as the one in this repository the book but will contain much additional material. You can find the course repository here

https://github.com/michelucci/zhaw-dlcourse-spring2019

Videos

You can find videos covering additional advanced material on TOELT youtube channel here

TOELT Youtube Channel

How to use the code

To learn how to use the code plese check the file HOWTO

Download the repository

Download the files as a zip using the green button, or clone the repository to your machine using Git.

Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

Contributions

See the file Contributing.md for more information on how you can contribute to this repository.

applied-deep-learning's People

Contributors

markp88 avatar michelucci 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

applied-deep-learning's Issues

Issue in "Plain GD" model at end of document "Zalando"

Using your awesome book and your github repository, I try to cover the very nicely elaborated neural networks.

Perhaps this is why I am rather a newbie to python: But when I assess the predicted variables after your code in In 17:

correct_predictions = tf.equal(tf.argmax(y_,0), tf.argmax(Y,0))
accuracy = tf.reduce_mean(tf.cast(correct_predictions, "float"))
print ("Accuracy:", accuracy.eval({X: test, Y: labels_test_, learning_rate: 0.001}, session = sess))
prediction = y_
mypreds = (prediction.eval(feed_dict={X: train}, session = sess))
cs = np.sum(mypreds,axis=0)
rs = np.sum(mypreds,axis=1)
print(cs)
print(rs)

I actually want to test whether the normalization of the outputs has properly worked, e.g. that probabilities among the 10 items 0-9 add up to 1. For all models before (I tested two of them), this works, but for the present case, I see that ROW sums are 1 and not column sums. Perhaps it is a very minor issue or I missed something.

Kind regards

RNN Basic Example.ipynb: issue to reshape array (not sure what it should be for RNN)

Ciao Umberto,

I am sure you have locally the working example. I think the one in github what in the middle of test while playing with different length (21 versus 16).

I manage to run until section "Normal network"

train_size = 30768
test_size = 2000

sess = tf.Session()
sess.run(tf.global_variables_initializer())

training_epochs = 100
    
cost_history = []
for epoch in range(training_epochs+1):

    sess.run(optimizer, feed_dict = {X: np.asarray(train_input).reshape(15, train_size), 
                                     Y: np.asarray(train_output).reshape(16, train_size), learning_rate: .1})
    cost_ = sess.run(cost, feed_dict={ X:np.asarray(train_input).reshape(15, train_size), 
                                      Y: np.asarray(train_output).reshape(15, train_size), learning_rate: .1})

and I got:

ValueError: cannot reshape array of size 492288 into shape (15,30768)

I try to play with the size of training and testing set but in case of RNN I am not sure I understad what the shape should be.

Thanks
Cheers
Fabien

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.