Code Monkey home page Code Monkey logo

Comments (2)

solopku avatar solopku commented on May 29, 2024

Hi GillianGrayson,

In our implementation, supporting multiple outputs for multiclass classification tasks is rather easy.

For models using an MLP layer to produce the final prediction, you can achieve so by specifying the number of outputs via the noutput parameter in the MLP layer. This applies to dnn, afn, gc_arm, dcn, cin, nfm, xdfm, ipnn, kpnn, wd, gat, gcn, dcn+, sa_glu. E.g., for gcn, you should update line 57 with noutput specified for MLP, and then directly return y in line 75 without calling the squeeze function.

Comments on (2):
It is recommended to use the provided MLP layer, which should be much more efficient than using the for loop.

Comments on (3):
Actually, models such as dfm, fm, hofm, afm are originally proposed for binary classification tasks (pls refer to respective papers). Nonetheless, we can also extend these models to support multiclass classification, by simply using our implementation of the FactorizationMachine layer, initializing it with reduce_dim=False, and then feeding the output of this layer to another MLP layer with ninput=nemb, and noutput=nclass to produce the final predictions.

Hope the above can address your concerns :)

from arm-net.

GillianGrayson avatar GillianGrayson commented on May 29, 2024

Thank you a lot for a very informative and quick response!

from arm-net.

Related Issues (1)

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.