Coder Social home page Coder Social logo

Comments (5)

bfelbo avatar bfelbo commented on May 20, 2024

It's a bit hacky so I wouldn't recommend using it in production. We do the predictions w/o each word and see how much the distribution over predicted emojis change.

from deepmoji.

amitness avatar amitness commented on May 20, 2024

@bfelbo I see. So if I understand it correctly, is this how it's done?

  • Say we have a sentence "I loved the application" and we run deepmoji to get top 5 predictions
  • Then, we remove one word at a time and see the predictions
  • The words whose removal changed the top 5 predictions are the important ones

If so, how do you give that score in the screenshot above? The importance reflected by the darker and lighter shades of purple.

from deepmoji.

bfelbo avatar bfelbo commented on May 20, 2024

Exactly. The shading is simply an interval over the difference. It was picked manually by trying out a couple of sentences and seeing what seemed to make sense.

Note that you can run all the predictions in a single batch, which will make this pretty fast even for long sentences.

from deepmoji.

bfelbo avatar bfelbo commented on May 20, 2024

I'm closing this for now as it's not related to the functionality of the repo, but to the demo. Hope my response was helpful!

from deepmoji.

amitness avatar amitness commented on May 20, 2024

It was. Thanks a lot.

from deepmoji.

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.