MCPcopy Create free account
hub / github.com/clab/dynet / objective

Method objective

examples/document-classification/train_imdb.cc:81–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 Expression objective(ComputationGraph & cg, Instance & inst, Expression & logits) {
82 return pickneglogsoftmax(logits, inst.second);
83 }
84
85 unsigned predict(ComputationGraph & cg, Instance & inst) {
86 Expression logits = classify(cg, inst);

Callers 1

mainFunction · 0.80

Calls 1

pickneglogsoftmaxFunction · 0.50

Tested by

no test coverage detected