Documentation says we can provide a loss layer to NetTrain as 3rd argument, why doesn't this work?

I tried with and without explicit loss layer. Neither works.

Hi Iuval,

the third argument is used to extract training properties.
To specify the probability cross-entropy instead of the index based one, you must use the LossFunction option.

Try this:

famTrained = NetTrain[famNet, trainingdatafam,
   LossFunction -> CrossEntropyLossLayer["Probabilities"]]

Giulio, you are my hero! Can you please tell me how to extract the parameters for my user-defined β€œquadratic” layer? I know how to extract weights from a linear layer, but I am not understanding the syntax in general. See file enclosed.