public function train(array $samples, array $targets): void
    {
        // Clears previous stuff.
        $this->reset();

        $this->trainByLabel($samples, $targets);
    }
public function train(array $samples, array $targets): void
    {
        // Clears previous stuff.
        $this->reset();

        $this->trainByLabel($samples, $targets);
    }
public function train ( array $ samples , array $ targets ) : void { // Clears previous stuff. $ this -> reset ( ) ; $ this -> trainByLabel ( $ samples , $ targets ) ; }
Train a binary classifier in the OvR style
Train a binary classifier in the OvR style