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
fn num_features(&self) -> usize
Number of features that can be calculated
fn extract(&self, state: &S::Element, action: &A::Element) -> Vec<F>
Vector containg the values of all the features for this state
Implementors
impl<F: Float, A: FiniteSpace, S: Space, Q> FeatureExtractor<S, A, F> for GreedyQAgent<S, A, Q> where Q: QFunction<S, A> + FeatureExtractor<S, A, F>
impl<F: Float, S: Space, A: FiniteSpace, Q, T> FeatureExtractor<S, A, F> for EGreedyQAgent<S, A, Q, T> where T: Chooser<A::Element>,
Q: QFunction<S, A> + FeatureExtractor<S, A, F>impl<S: Space, A: Space, F: Float + Debug> FeatureExtractor<S, A, F> for VLinear<F, S>
impl<S: Space, A: FiniteSpace, F: Float + Debug> FeatureExtractor<S, A, F> for QLinear<F, S, A> where A::Element: Hash + Eq