Added logistic regression check output

Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
This commit is contained in:
Alejandro Saucedo 2022-11-26 16:35:06 +00:00
parent cf1dec9132
commit 342afccaf3
No known key found for this signature in database
GPG key ID: 99EBB7E98B99695F

View file

@ -63,4 +63,10 @@ main()
std::cout << "w1: " << wIn->data()[0] << std::endl;
std::cout << "w2: " << wIn->data()[1] << std::endl;
std::cout << "b: " << bIn->data()[0] << std::endl;
}
if (wIn->data()[0] > 0.0 ||
wIn->data()[1] < 1.0 ||
bIn->data()[0] > 0.0) {
throw std::runtime_error("Result does not match");
}
}