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

Method original_index

src/thundersvm/dataset.cpp:267–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267const vector<int> DataSet::original_index() const {//index of each instance in the original array
268 return perm_;
269}
270
271const vector<int> DataSet::original_index(int y_i) const {//index of each instance in the original array for one class
272 return vector<int>(perm_.begin() + start_[y_i], perm_.begin() + start_[y_i] + count_[y_i]);

Callers 4

train_binaryMethod · 0.80
trainMethod · 0.80
probability_trainMethod · 0.80
cross_validationMethod · 0.80

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected