Comments (2)
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.
Thank you a lot for a very informative and quick response!
from arm-net.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arm-net.