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

Function serialize

dlib/svm/function.h:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 typename K
72 >
73 void serialize (
74 const decision_function<K>& item,
75 std::ostream& out
76 )
77 {
78 try
79 {
80 serialize(item.alpha, out);
81 serialize(item.b, out);
82 serialize(item.kernel_function, out);
83 serialize(item.basis_vectors, out);
84 }
85 catch (serialization_error& e)
86 {
87 throw serialization_error(e.info + "\n while serializing object of type decision_function");
88 }
89 }
90
91 template <
92 typename K

Callers

nothing calls this directly

Calls 1

serialization_errorClass · 0.85

Tested by

no test coverage detected