Commit 67881ae4 authored by Victor Poughon's avatar Victor Poughon

Merge branch 'fix-debug-warnings' into 'develop'

COMP: fix parenthesis warning in debug mode

See merge request !457
parents d7537b2a c0d44f51
Pipeline #949 passed with stage
in 26 minutes and 4 seconds
......@@ -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())
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment