Completed with errors

This commit is contained in:
2023-11-06 17:14:34 +01:00
parent 418fb1444a
commit ec68e142ac

View File

@@ -44,19 +44,19 @@ int main(int argc, char* argv[])
{
cout << "* Begin." << endl;
{
auto [X, y, features, className, states] = loadDataset("iris", true);
auto [X, y, features, className, states] = loadDataset("wine", true);
cout << "X: " << X.sizes() << endl;
cout << "y: " << y.sizes() << endl;
auto clf = pywrap::STree();
cout << "STree Version: " << clf.version() << endl;
// if (true) {
// auto svc = pywrap::SVC();
// svc.fit(X, y, features, className, states);
// cout << "SVC Score: " << svc.score(X, y) << endl;
// }
// cout << "Graph: " << endl << clf.graph() << endl;
if (true) {
auto svc = pywrap::SVC();
svc.fit(X, y, features, className, states);
cout << "SVC Score: " << svc.score(X, y) << endl;
}
cout << "Graph: " << endl << clf.graph() << endl;
clf.fit(X, y, features, className, states);
// cout << "STree Score: " << clf.score(X, y) << endl;
cout << "STree Score: " << clf.score(X, y) << endl;
auto prediction = clf.predict(X);
cout << "Prediction: " << endl << "{";
for (int i = 0; i < prediction.size(0); ++i) {