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"]]