|
CorTeX Core ABI 7
ToolTech Software · C++ library reference
|
#include <ctxOutput.h>
Public Member Functions | |
| virtual | ~ctxOutputObjectiveClassWeightInterface () |
| virtual gzFloat | getObjectiveClassWeight (gzUInt32 group, gzUInt32 index) const =0 |
Optional fixed class weights for grouped softmax cross-entropy only. Implement together with ctxOutputObjectiveInterface. Weights must be finite, nonnegative and immutable until recompilation. MSE groups require unit weights. Weighted groups require terminal LINEAR logits. The raw logit seed is p*sum(w*y)-w*y for loss -sum(w*y*log(p)), without output-seed clipping. Normal neuron/edge gradient clipping remains the existing training policy. Group targets retain their ordinary sum of one. All-zero weights are allowed. Weights are application binding metadata, not parameters or checkpoint data.
Definition at line 82 of file ctxOutput.h.
|
inlinevirtual |
Definition at line 85 of file ctxOutput.h.
|
pure virtual |