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

Function serialize

dlib/control/approximate_linear_models.h:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38 template < typename feature_extractor >
39 void serialize (const process_sample<feature_extractor>& item, std::ostream& out)
40 {
41 serialize(item.state, out);
42 serialize(item.action, out);
43 serialize(item.next_state, out);
44 serialize(item.reward, out);
45 }
46
47 template < typename feature_extractor >
48 void deserialize (process_sample<feature_extractor>& item, std::istream& in)

Callers

nothing calls this directly

Calls 1

get_weightsMethod · 0.45

Tested by

no test coverage detected