MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / params_to_string

Function params_to_string

cpp_package/src/ml_model.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21std::string params_to_string (struct BrainFlowModelParams params)
22{
23 json j;
24 j["metric"] = params.metric;
25 j["classifier"] = params.classifier;
26 j["file"] = params.file;
27 j["other_info"] = params.other_info;
28 j["output_name"] = params.output_name;
29 j["max_array_size"] = params.max_array_size;
30 std::string post_str = j.dump ();
31 return post_str;
32}
33
34MLModel::MLModel (struct BrainFlowModelParams model_params) : params (model_params)
35{

Callers 1

MLModelMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected