rlmesh::adapters::WrappedPredict
A predict callable composed with an adapter, usable as a model policy.
struct WrappedPredict<A, F>Methods
call
method[source]fn call(&mut self, observation: Value) -> Result<Value>Invoke this callable.
adapter
method[source]fn adapter(&self) -> &ABorrow the wrapped adapter.
adapter_mut
method[source]fn adapter_mut(&mut self) -> &mut AMutably borrow the wrapped adapter.
Trait implementations
- impl<A: AdapterBase + Send + 'static, F: FnMut(Value) -> Result<Value> + Send + 'static> Policy for WrappedPredict<A, F>