Struct renforce::util::chooser::Softmax [] [src]

pub struct Softmax { /* fields omitted */ }

Represents a Chooser that picks each element with probability according to a softmax distrobution

Methods

impl Softmax
[src]

Creates a new Softmax with the given temp

Trait Implementations

impl Debug for Softmax
[src]

Formats the value using the given formatter.

impl Clone for Softmax
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Softmax
[src]

impl PartialEq for Softmax
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Softmax
[src]

Creates a Softmax with temperature 1.0

impl<T: Clone> Chooser<T> for Softmax
[src]

returns an element of choices