src/MachineLearning/MachineLearningClient.php
private function predictEndpoint()
    {
        return static function (callable $handler) {
            return function (
                CommandInterface $command,
                RequestInterface $request = null
            ) use ($handler) {
                if ($command->getName() === 'Predict') {
                    $request = $request->withUri(new Uri($command['PredictEndpoint']));
                }
                return $handler($command, $request);
            };
        };
    }
private function predictEndpoint()
    {
        return static function (callable $handler) {
            return function (
                CommandInterface $command,
                RequestInterface $request = null
            ) use ($handler) {
                if ($command->getName() === 'Predict') {
                    $request = $request->withUri(new Uri($command['PredictEndpoint']));
                }
                return $handler($command, $request);
            };
        };
    }
private function predictEndpoint ( ) { return static function ( callable $ handler ) { return function ( CommandInterface $ command , RequestInterface $ request = null ) use ( $ handler ) { if ( $ command -> getName ( ) === 'Predict' ) { $ request = $ request -> withUri ( new Uri ( $ command [ 'PredictEndpoint' ] ) ) ; } return $ handler ( $ command , $ request ) ; } ; } ; }
Changes the endpoint of the Predict operation to the provided endpoint.

@return callable
Changes the endpoint of the Predict operation to the provided endpoint .