CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxOutputObjectiveClassWeightInterface Class Referenceabstract

#include <ctxOutput.h>

Public Member Functions

virtual ~ctxOutputObjectiveClassWeightInterface ()
virtual gzFloat getObjectiveClassWeight (gzUInt32 group, gzUInt32 index) const =0

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~ctxOutputObjectiveClassWeightInterface()

virtual ctxOutputObjectiveClassWeightInterface::~ctxOutputObjectiveClassWeightInterface ( )
inlinevirtual

Definition at line 85 of file ctxOutput.h.

Member Function Documentation

◆ getObjectiveClassWeight()

virtual gzFloat ctxOutputObjectiveClassWeightInterface::getObjectiveClassWeight ( gzUInt32 group,
gzUInt32 index ) const
pure virtual

The documentation for this class was generated from the following file: