Struct zero_sum::impls::tak::evaluator::AnnEvaluator [] [src]

pub struct AnnEvaluator { /* fields omitted */ }

Uses an artificial neural network to evaluate the tak state. The network has three hidden layers using ReLU activation, and uses TanH activation on the output. It uses ADADELTA to perform gradient descent.

This is largely an experimental evaluator. While it has demonstrated its potential as a stronger evaluator of tak positions than the StaticEvaluator, it is an order of magnitude slower, making it unfit for use in a real-time game.

Methods

impl AnnEvaluator
[src]

Creates a new evaluator, randomly initializing the network.

Loads in a network state previously serialized with the to_file method.

Writes the current network state to a file.

Trains the network on positions, against labels. Optionally will return the average amount of error per input in error.

Use temporal difference learning (TD-Leaf algorithm) to train the system through self-play. positions are used as starting points for self-play. Optionally returns the average amount of error per input in error.

Trait Implementations

impl Clone for AnnEvaluator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Evaluator for AnnEvaluator
[src]

Returns the evaluation of state.

Returns the evaluation of state after executing plies. Read more