protected function checkNormalizedSample(array $sample)
    {
        if ($this->normalizer) {
            $samples = [$sample];
            $this->normalizer->transform($samples);
            $sample = $samples[0];
        }

        return $sample;
    }
protected function checkNormalizedSample(array $sample)
    {
        if ($this->normalizer) {
            $samples = [$sample];
            $this->normalizer->transform($samples);
            $sample = $samples[0];
        }

        return $sample;
    }
protected function checkNormalizedSample ( array $ sample ) { if ( $ this -> normalizer ) { $ samples = [ $ sample ] ; $ this -> normalizer -> transform ( $ samples ) ; $ sample = $ samples [ 0 ] ; } return $ sample ; }
Checks if the sample should be normalized and if so, returns the
normalized sample

@param array $sample

@return array
Checks if the sample should be normalized and if so returns the normalized sample