MCPcopy Create free account
hub / github.com/davisking/dlib / get_features

Method get_features

dlib/test/lspi.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 void get_features (
66 const state_type& state,
67 const action_type& action,
68 matrix<double,0,1>& feats
69 ) const
70 {
71 feats.set_size(num_features());
72 feats = 0;
73 feats(state*2 + action) = 1;
74 if (have_prior)
75 feats(num_features()-1) = offset(state*2+action);
76 }
77
78 };
79

Callers 1

trainMethod · 0.45

Calls 1

set_sizeMethod · 0.45

Tested by

no test coverage detected