Giter Club home page Giter Club logo

Comments (6)

rasbt avatar rasbt commented on May 24, 2024

That's probably because it is a relatively small/simple dataset and RNN for illustration purposes. For the first edition, some readers were complaining that some code takes more than a few minutes to run, so we didn't want to add examples that run multiple hours (which could be the case with more complex datasets and RNNs). For deep learnign vs traditional machine learning, you typically have the following relationship:

screen shot 2019-03-05 at 10 12 38 am

Hope that helps :)

from python-machine-learning-book-2nd-edition.

LasaniHussain avatar LasaniHussain commented on May 24, 2024

from python-machine-learning-book-2nd-edition.

rasbt avatar rasbt commented on May 24, 2024

you can try to add an additional layer and/or increase the embedding and lstm sizes. However, it could potentially result in more overfitting since the dataset is relatively small.

from python-machine-learning-book-2nd-edition.

LasaniHussain avatar LasaniHussain commented on May 24, 2024

from python-machine-learning-book-2nd-edition.

rasbt avatar rasbt commented on May 24, 2024

The embedding is basically a real vector (vector with real numbers) and you can determine the size. If you are familiar with the concept of hashing, this is basically a very similar approach. In other words, you take an integer representing your word and compute a vector with real numbers that represent the word. The network then uses this embedding vector for its further steps.

Maybe it helps to think of a multi-layer perceptron. the first layer is basically something like an embedding vector as it is computed form the input features

from python-machine-learning-book-2nd-edition.

LasaniHussain avatar LasaniHussain commented on May 24, 2024

from python-machine-learning-book-2nd-edition.

Related Issues (20)

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.