Class EngineClient
Client for connecting to an Engine Instance
-
predictionio\BaseClient
-
predictionio\EngineClient
Methods summary
public
|
#
__construct( string $baseUrl = "http://localhost:8000", float $timeout = 0, float $connectTimeout = 5 )
Parameters
- $baseUrl
- URL to the Engine Instance. Default is localhost:8000.
- $timeout
of the request in seconds. Use 0 to wait indefinitely
Default is 0.
- $connectTimeout
of seconds to wait while trying to connect to a server.
Default is 5.
Overrides
|
public
array
|
#
sendQuery( array $query )
Send prediction query to an Engine Instance
Send prediction query to an Engine Instance
Parameters
Returns
array JSON response
Throws
|