Giter VIP home page Giter VIP logo

Comments (3)

vene avatar vene commented on August 27, 2024

Not in any nicely documented format, sorry. But I can try to explain a bit:

When you call clf.predict, as for instance on this line, you get a list of the same length as the number of UserDocs passed at the input.

Each element of that list is a tuple of two items: (prop_posteriors, link_posteriors). The proposition posteriors encode the classified type of each proposition. The link posteriors show, for every possible link in the document, whether that support relation is predicted as true or false.

So for instance, for document i, you could iterate jointly over:

for (src, trg), prediction in zip(doc.link_to_prop, link_posteriors[i]):
    ...

And to go from proposition type posteriors to actual labels, you could use the label encoder that is part of the model: self.prop_encoder_.inverse_transform(prop_posteriors)

Hope this helps!

from marseille.

anikethjr avatar anikethjr commented on August 27, 2024

The output of experiments.predict_pretrained is a list of DocLabels (one for each document). Could you please explain the meaning of the links. I understand that every sentence/proposition is represented by a node and the links connect these nodes. But the ordering of these links is not apparent. Could you please clarify the ordering of these links, their directions, etc.

Thank you :)

from marseille.

vene avatar vene commented on August 27, 2024

look at the doc.link_to_prop structure, it should answer your question.

In particular, if doc.link_to_prop[i] = [a, b], it means that the ith link goes from a to b.

from marseille.

Related Issues (9)

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.