MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / findlastline

Function findlastline

src/thundersvm/dataset.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 instances_(instances), n_features_(n_features), y_(y), total_count_(instances_.size()) {}
14
15inline char *findlastline(char *ptr, char *begin) {
16 while (ptr != begin && *ptr != '\n') --ptr;
17 return ptr;
18}
19
20void DataSet::load_from_file(string file_name) {
21 LOG(INFO)<<"loading dataset from file \""<<file_name<<"\"";

Callers 1

load_from_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected