Code Monkey home page Code Monkey logo

Comments (5)

prats0599 avatar prats0599 commented on July 20, 2024

I'm facing the same issue. However the same model on this link seems to perform well. Did you find a solution?

from finbert.

Abhijith002 avatar Abhijith002 commented on July 20, 2024

I did try to run the prediction using the model that is there on huggingface, but it did not give me any better result. I did not find any solution so I am currently gathering the data for training.

from finbert.

prats0599 avatar prats0599 commented on July 20, 2024

I tested the model on huggingface and it seems to be working fine now. All my predictions for the test set were negative which led me to believe something was wrong w my code. I finally got it to work with some tweaks to the predict function in this repo here. I also used the Finbert Tokenizer("ProsusAI/finbert") instead of ''bert-base-uncased''.

from finbert.

Abhijith002 avatar Abhijith002 commented on July 20, 2024

The prediction is going wrong particularly with statements l gave in the screenshot above. The statements like "Improving free cash flows has meant that the company's net debt also continues to decline" is a positive scenario for a company since there is decline in debt. But because of the word "decline" it is being predicted as negative. There are 20 statements above and below those three which were predicted correctly.
image

from finbert.

doguaraci avatar doguaraci commented on July 20, 2024

Hi, we don't have any other model. The model might make incorrect predictions. As reported on the paper, the accuracy on the test set was 86%.

With regards to @prats0599's problem of getting always negative predictions, that obviously shouldn't happen. @prats0599 could you please share more details about the problem and the fix you did?

from finbert.

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.