Coder Social home page Coder Social logo

Comments (4)

PiotrCzapla avatar PiotrCzapla commented on August 11, 2024

@eisenjulian if you don't mind let's try to keep the same structure for the datasets. That is:

  • data/<dataset_name>/<lang>-<size+other info>/
    • <lang>.train.csv
    • <lang>.test.csv
    • <lang>.unsup.csv
    • <lang>.dev.csv

Then adding a new classifier to work with the scripts would be as easy as adding this 3 lines to configure it:
https://github.com/n-waves/ulmfit-multilingual/blob/master/ulmfit/train_clas.py#L117-L119

from multifit.

eisenjulian avatar eisenjulian commented on August 11, 2024

Will do, thanks for the reference

from multifit.

eisenjulian avatar eisenjulian commented on August 11, 2024

Quick update on this, performance seems to be quite poor just now, on the 70% for accuracy (it's binary classification) with balanced dataset.
This is the setup I'm using

git checkout cls
python prepare_cls.py
python -m ulmfit cls --dataset-path data/cls/de-dvd  --base-lm-path data/wiki/de-100/models/sp30k/lstm_nl4.m --tokenizer='sp' --lang=de --name 'nl4' - train 20 --bs 40

In the past, with regular tokenization, I was getting closer to 87% so something is definitely odd

from multifit.

eisenjulian avatar eisenjulian commented on August 11, 2024

Updated script to

python prepare_cls.py https://storage.googleapis.com/ulmfit/cls
python -m ulmfit cls --dataset-path data/cls/de-dvd  --base-lm-path data/wiki/de-100/models/sp30k/lstm_nl4.m --tokenizer='sp' --lang=de --name 'nl4' - train 20 --bs 40

from multifit.

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.