MCPcopy Create free account
hub / github.com/catboost/catboost / ToJsonStr

Function ToJsonStr

library/cpp/histogram/simple/histogram.h:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132 template <typename T>
133 TString ToJsonStr(const THashMap<TString, THistogram<T>>& hists, const TVector<double>& percentiles, bool format = true) {
134 NJson::TJsonValue json = ToJson(hists, percentiles);
135
136 NJsonWriter::TBuf buf;
137 if (format) {
138 buf.SetIndentSpaces(4);
139 }
140
141 return buf.WriteJsonValue(&json, true).Str();
142 }
143
144}

Callers

nothing calls this directly

Calls 3

ToJsonFunction · 0.70
StrMethod · 0.45
WriteJsonValueMethod · 0.45

Tested by

no test coverage detected