Skip to main content

ScoreTransformer

Trait ScoreTransformer 

Source
pub trait ScoreTransformer: FnMut(f32) -> f32 { }
Expand description

Transforms a score during the backpropagation phase.

This is typically used in alternating-turn games (like Chess or Tic-Tac-Toe) to invert the score (e.g., |score| -score) from one depth to another.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§