pub trait QuantumLoss {
// Required methods
fn forward(
&self,
predictions: &SciRS2Array,
targets: &SciRS2Array,
) -> Result<SciRS2Array>;
fn name(&self) -> &str;
}
Expand description
Loss functions for quantum ML
Required Methods§
Sourcefn forward(
&self,
predictions: &SciRS2Array,
targets: &SciRS2Array,
) -> Result<SciRS2Array>
fn forward( &self, predictions: &SciRS2Array, targets: &SciRS2Array, ) -> Result<SciRS2Array>
Compute loss