public function train(string $id)
    {
        $modelResult = $this->getRequest()->request(
            'POST',
            $this->getRequestUrl(sprintf('models/%s/versions', $id))
        );

        return $this->getModelFromResult($modelResult);
    }
public function train(string $id)
    {
        $modelResult = $this->getRequest()->request(
            'POST',
            $this->getRequestUrl(sprintf('models/%s/versions', $id))
        );

        return $this->getModelFromResult($modelResult);
    }
public function train ( string $ id ) { $ modelResult = $ this -> getRequest ( ) -> request ( 'POST' , $ this -> getRequestUrl ( sprintf ( 'models/%s/versions' , $ id ) ) ) ; return $ this -> getModelFromResult ( $ modelResult ) ; }
Train the model

@param string $id

@return Model
Train the model