public function __construct(array $samples, array $targets) { if (count($samples) != count($targets)) { throw InvalidArgumentException::arraySizeNotMatch(); } $this->samples = $samples; $this->targets = $targets; }