Added logistic regression check output
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
This commit is contained in:
parent
cf1dec9132
commit
342afccaf3
1 changed files with 7 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue