Trait renforce::util::FeatureExtractor [] [src]

pub trait FeatureExtractor<S: Space, A: Space, F: Float> {
    fn num_features(&self) -> usize;
    fn extract(&self, state: &S::Element, action: &A::Element) -> Vec<F>;
}

Represents something that extracts features from state-action pairs

Required Methods

Number of features that can be calculated

Vector containg the values of all the features for this state

Implementors