mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-15 15:35:55 +00:00
refactor system types in library
Add new test taken from join_fit in FImdlp python Update instructions in README
This commit is contained in:
@@ -27,7 +27,7 @@ string ArffFiles::getClassType() const {
|
||||
return classType;
|
||||
}
|
||||
|
||||
vector<vector<float>> &ArffFiles::getX() {
|
||||
vector<mdlp::samples_t> &ArffFiles::getX() {
|
||||
return X;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ void ArffFiles::load(const string &fileName, bool classLast) {
|
||||
}
|
||||
|
||||
void ArffFiles::generateDataset(bool classLast) {
|
||||
X = vector<vector<float>>(attributes.size(), vector<float>(lines.size()));
|
||||
X = vector<mdlp::samples_t>(attributes.size(), mdlp::samples_t(lines.size()));
|
||||
auto yy = vector<string>(lines.size(), "");
|
||||
int labelIndex = classLast ? static_cast<int>(attributes.size()) : 0;
|
||||
for (size_t i = 0; i < lines.size(); i++) {
|
||||
|
Reference in New Issue
Block a user