6 #include <shark/Models/FFNet.h> 14 using namespace shark;
26 typedef FFNet<LogisticNeuron, LogisticNeuron> ModelType;
30 model.setStructure(N, M, 2);
39 trainer.
train(model, traindata);
44 double error_rate = loss(testdata.
labels(), prediction);
46 std::cout <<
"model: " << model.
name() << std::endl
47 <<
"trainer: " << trainer.
name() << std::endl
48 <<
"test error rate: " << error_rate << std::endl;