34 #ifndef SHARK_MODELS_ONLINERNNET_H 35 #define SHARK_MODELS_ONLINERNNET_H 65 struct InternalState:
public State{
72 RealVector activation;
74 RealVector lastActivation;
85 RealMatrix unitGradient;
96 {
return "OnlineRNNet"; }
109 throw SHARKEXCEPTION(
"[OnlineRNNet::eval] Eval can not be called without state object");
134 RealMatrix
const& pattern, RealMatrix
const& coefficients,
135 State const& state, RealVector& gradient
153 return boost::shared_ptr<State>(
new InternalState( *
mpe_structure));
169 InternalState& s = state.
toState<InternalState>();