GithubHelp home page GithubHelp logo

awa2-zero-shot-learning's People

Contributors

dfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

awa2-zero-shot-learning's Issues

Training with continuous attributes issues

The 'predicate-matrix-continuous.txt' include negtive values, so the BCELoss() turns out negtive values which is not correct. How do I make this work using 'predicate-matrix-continuous.txt' ?

I think you overlook one critical thing

In your code, namely, in the 'evaluate' function belonging to the file named 'train.py' you calculate the output of the models and then, you apply a sigmoid function on it. Therefore, your output is a probabilistic vector, i.e., a vector with numbers between 0 and 1 whose sum is the unit. Then, you pass that vector to the 'labels_to_class' function. This function calculates the Euclidean distance between two elements, one is a binary vector corresponding to the attributes of classes and the other is a probabilistic vector. It makes no sense to calculate the Euclidean distance between these two elements given that they belong to different spaces. Thus, it could be the reason why you have low results.

In order to correct that, try to reformulate it as a multilabel problem where you classify each element as many times as attributes you have, in this case, 85. And then, try to calculate again the Euclidean distance between these two elements.

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.