MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / Join

Function Join

include/LightGBM/utils/common.h:541–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539
540template<typename T>
541inline static std::string Join(const std::vector<T>& strs, const char* delimiter) {
542 if (strs.empty()) {
543 return std::string("");
544 }
545 std::stringstream str_buf;
546 str_buf << std::setprecision(std::numeric_limits<double>::digits10 + 2);
547 str_buf << strs[0];
548 for (size_t i = 1; i < strs.size(); ++i) {
549 str_buf << delimiter;
550 str_buf << strs[i];
551 }
552 return str_buf.str();
553}
554
555template<>
556inline std::string Join<int8_t>(const std::vector<int8_t>& strs, const char* delimiter) {

Callers 6

DumpModelMethod · 0.50
SaveModelToStringMethod · 0.50
SaveMembersToStringMethod · 0.50
NodeToJSONMethod · 0.50
ToStringMethod · 0.50
bin_infoMethod · 0.50

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected