Group Abstract Group Abstract

Message Boards Message Boards

0
|
835 Views
|
5 Replies
|
1 Total Like
View groups...
Share
Share this post:

Training data as probability vectors, or several possible classes for each input?

Posted 24 days ago

How would I supply this kind of training data? I have n output classes, but instead of associating a definite class with each training input, I would like to associate an n-dimensional probability vector for the classes with each input, or alternatively have each input repeat several times so I can sample the probability distribution to get definite answers for the classes.. The first option would be preferable.

POSTED BY: Iuval Clejan
5 Replies
Posted 16 days ago

Yes, it works, thanks. And sorry that I hadn't posted the working solution, which either Giulio or someone else alerted me to.

POSTED BY: Iuval Clejan

Try moving the Loss function definition into NetTrain:

famNet = NetChain[{linfam, SoftmaxLayer[]}];

famTrained = 
  NetTrain[famNet, trainingdatafam, 
   LossFunction -> CrossEntropyLossLayer["Probabilities"], 
   ValidationSet -> None];
POSTED BY: Joshua Schrier
Posted 23 days ago

Just look at first one.

POSTED BY: Iuval Clejan
Posted 23 days ago

I thought this might work, but there is something wrong with the syntax. Help?

POSTED BY: Iuval Clejan
Posted 24 days ago

The second option seems to work OK, it doesn't complain about having the same input with different outputs for the training set. But what about the first option?

POSTED BY: Updating Name
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard