Giter Club home page Giter Club logo

Comments (5)

wrk226 avatar wrk226 commented on August 22, 2024

I don't think using the original split will make the model unable to train. You need to check your code.

from pytorch-multimodal_sarcasm_detection.

yuchenWeng avatar yuchenWeng commented on August 22, 2024

I found it also, and I changed to the original split, it run success, but F1 and acc decreased by 1.5% compare to original paper, is it some difference between tensorflow/pytorch

from pytorch-multimodal_sarcasm_detection.

wrk226 avatar wrk226 commented on August 22, 2024

I found it also, and I changed to the original split, it run success, but F1 and acc decreased by 1.5% compare to original paper, is it some difference between tensorflow/pytorch

Yes, it because I didn't do exactly the same as the original code:

  1. I initialized all weight by zero, instead of truncated normal distribution.
  2. In the LSTM part, the author did the dropout on hidden state, but I did it on the cell itself. It because PyTorch didn't support that yet, you may check here.

from pytorch-multimodal_sarcasm_detection.

mashumaro avatar mashumaro commented on August 22, 2024

I found it also, and I changed to the original split, it run success, but F1 and acc decreased by 1.5% compare to original paper, is it some difference between tensorflow/pytorch

Yes, it because I didn't do exactly the same as the original code:

  1. I initialized all weight by zero, instead of truncated normal distribution.
  2. In the LSTM part, the author did the dropout on hidden state, but I did it on the cell itself. It because PyTorch didn't support that yet, you may check here.

Thanks for your kind answer, I fix my code and it worked. By the way, I would like to know which part has been initialized by zero.

from pytorch-multimodal_sarcasm_detection.

wrk226 avatar wrk226 commented on August 22, 2024

I found it also, and I changed to the original split, it run success, but F1 and acc decreased by 1.5% compare to original paper, is it some difference between tensorflow/pytorch

Yes, it because I didn't do exactly the same as the original code:

  1. I initialized all weight by zero, instead of truncated normal distribution.
  2. In the LSTM part, the author did the dropout on hidden state, but I did it on the cell itself. It because PyTorch didn't support that yet, you may check here.

Thanks for your kind answer, I fix my code and it worked. By the way, I would like to know which part has been initialized by zero.

I may be incorrect, they might not be initialized by zero, but what I want to say is that I didn't do any of the work on the initialize part(except the "early fusion" which described in the paper). So all of the layers are initialized by PyTorch's default setting, which may differ from the original code.

from pytorch-multimodal_sarcasm_detection.

Related Issues (6)

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.