Code Monkey home page Code Monkey logo

Comments (5)

marco-c avatar marco-c commented on August 15, 2024

Regarding fastText, see piskvorky/gensim-data#26 (comment).

from bugbug.

ayush1999 avatar ayush1999 commented on August 15, 2024

@marco-c I just tried using 2-gram features for the TfIdfVectorizer, here is the gist of the results:
Before:

X: (11007, 21990), y: (11007,)
Cross Validation scores:
Accuracy: f0.951746383784194 (+/- 0.0027559934918468167)
Precision: f0.9821515475460835 (+/- 0.0025632765014633823)
Recall: f0.9621308627678055 (+/- 0.002984157203642199)

After:

X: (11007, 95124), y: (11007,)
Cross Validation scores:
Accuracy: f0.9525540057386749 (+/- 0.004604483751288196)
Precision: f0.9830817914064187 (+/- 0.0035752238919424186)
Recall: f0.9621308627678055 (+/- 0.0035581451061348556)

Unfortunately the terminal crashes with terminate called after throwing an instance of 'std::bad_alloc' in the second case.

from bugbug.

marco-c avatar marco-c commented on August 15, 2024

Results for which model?

To avoid OOMs, you can try to reduce the number of ngrams considered.

from bugbug.

ayush1999 avatar ayush1999 commented on August 15, 2024

These are the results for the bug model. Should I try it out for other models too? To generalize, won't it be better to have a feature of passing the value of n from the terminal? (something like python run.py --train --model=bug --ngrams=2)

from bugbug.

marco-c avatar marco-c commented on August 15, 2024

These are the results for the bug model. Should I try it out for other models too?

Yes, let's try the tracking, regression and component models too.

To generalize, won't it be better to have a feature of passing the value of n from the terminal? (something like python run.py --train --model=bug --ngrams=2)

Yes, it would be nice, but not so easy.

from bugbug.

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.