Giter Club home page Giter Club logo

applied-deep-learning-with-keras's Issues

plot_loss_accuracy function correction

Minor correction in function plot_loss_accuracy(history) needed.
Run this on Keras 2.3.1 with correction from
acc = history.history['acc'][-1] to
acc = history.history['accuracy'][-1]

Note that
history.history.keys()
gives:
dict_keys(['loss','accuracy'])

reorder future import

Running the notebook on JupyterLab 1.2.4 / python 3.6 requires from __future__ import print_function in the first line of the first cell.

Using right model variables for prediction in the multiclass classification examples (sec 3.1)?

Great tutorial and notebooks! Thanks.

I think the model variables in the multiclass classification visualization section need to be updated from just "model" to "sr_model" (first snippet) and "deep_model" (second snippet) below:

y_pred_class = model.predict_classes(X_test, verbose=0)
y_test_class = np.argmax(y_test, axis=1)
print(classification_report(y_test_class, y_pred_class))
plot_confusion_matrix(model, X_test, y_test_class)

y_pred_class = model.predict_classes(X_test, verbose=0)
y_test_class = np.argmax(y_test, axis=1)
print(classification_report(y_test_class, y_pred_class))
plot_confusion_matrix(model, X_test, y_test_class)

Plot function in autoencoders example has input argument being overwritten.

Thanks for the great tutorials!

Just a small suggestion, in Part 3: Autoencoders, the function may be cleaned up further.

def plot_autoencoder_outputs(autoencoder, n, dims):
    decoded_imgs = autoencoder.predict(x_test)

    # number of example digits to show
    n = 5  # Should be commented out otherwise n is overwritten. 

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.