Skip to content
Snippets Groups Projects
Commit c0d44f51 authored by Victor Poughon's avatar Victor Poughon
Browse files

COMP: fix parenthesis warning in debug mode

parent 34d39816
Branches
Tags
No related merge requests found
......@@ -144,10 +144,13 @@ MachineLearningModel<TInputValue,TOutputValue,TConfidenceValue>
{
assert(input != nullptr);
assert(targets != nullptr);
assert(input->Size()==targets->Size()&&"Input sample list and target label list do not have the same size.");
assert(((quality==nullptr)||(quality->Size()==input->Size()))&&"Quality samples list is not null and does not have the same size as input samples list");
assert((proba==nullptr)||(input->Size()==proba->Size())&&"Proba sample list and target label list do not have the same size.");
assert(input->Size() == targets->Size()
&& "Input sample list and target label list do not have the same size.");
assert(((quality == nullptr) || (quality->Size() == input->Size()))
&& "Quality samples list is not null and does not have the same size as input samples list");
assert(((proba == nullptr) || (input->Size() == proba->Size()))
&& "Proba sample list and target label list do not have the same size.");
if(startIndex+size>input->Size())
{
......
......@@ -167,9 +167,12 @@ SharkRandomForestsMachineLearningModel<TInputValue,TOutputValue>
assert(input != nullptr);
assert(targets != nullptr);
assert(input->Size()==targets->Size()&&"Input sample list and target label list do not have the same size.");
assert(((quality==nullptr)||(quality->Size()==input->Size()))&&"Quality samples list is not null and does not have the same size as input samples list");
assert((proba==nullptr)||(input->Size()==proba->Size())&&"Proba sample list and target label list do not have the same size.");
assert(input->Size() == targets->Size()
&& "Input sample list and target label list do not have the same size.");
assert(((quality == nullptr) || (quality->Size() == input->Size()))
&& "Quality samples list is not null and does not have the same size as input samples list");
assert(((proba == nullptr) || (input->Size() == proba->Size()))
&& "Proba sample list and target label list do not have the same size.");
if(startIndex+size>input->Size())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment