Git Product home page Git Product logo

Comments (3)

NielsRogge avatar NielsRogge commented on May 27, 2024

Hi,

I also experienced this, results can slightly differ between different runs. This is logical, as neural networks are not deterministic (unless using the same seed). However, running the notebook several times, I got the following results:

'overall_precision': 0.798961937716263, 'overall_recall': 0.8350813743218807, 'overall_f1': 0.8166224580017684

Which is (more or less) in line with the paper. The differences can be explained by the use of a different OCR engine (I'm using PyTesseract, whereas the original model used Azure Cognitive Services). You could also try with the OCR annotations already provided by the FUNSD dataset itself.

Also, the slight differences could be explained by the training hyperparameters (optimizer, learning rate, batch size, number of epochs, etc.)

Update: as can be seen here, they used the default HuggingFace Trainer, with the following additional hyperparameters:

--max_steps 1000 \
--warmup_ratio 0.1 \
--fp16

from transformers-tutorials.

NielsRogge avatar NielsRogge commented on May 27, 2024

I've uploaded a new notebook, which uses the HuggingFace Trainer and uses the same hyperparameters as the original implementation. Now I get:

'test_overall_precision': 0.8190854870775348, 'test_overall_recall': 0.8268941294530858, 'test_overall_f1': 0.8229712858926342'

from transformers-tutorials.

NehaMotlani avatar NehaMotlani commented on May 27, 2024

Thanks a lot. I will try out the new notebook once.

from transformers-tutorials.

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.