httpstan-0.2.0.0: Auto-generated httpstan API Client
Safe HaskellSafe-Inferred
LanguageHaskell2010

Httpstan.API.ApiDefault

Description

 
Synopsis

Operations

Default

v1HealthGet

data V1HealthGet Source #

Instances

Instances details
Produces V1HealthGet MimeNoContent Source # 
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsGet

data V1ModelsGet Source #

Instances

Instances details
Produces V1ModelsGet MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsModelIdDelete

v1ModelsModelIdDelete Source #

DELETE /v1/models/{model_id}

Delete a model and any associated fits.

Delete a model which has been saved in the cache.

data V1ModelsModelIdDelete Source #

Instances

Instances details
Produces V1ModelsModelIdDelete MimeNoContent Source # 
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsModelIdFitsFitIdDelete

v1ModelsModelIdFitsFitIdDelete Source #

Arguments

:: ModelId

"modelId" - ID of Stan model associated with the fit.

-> FitId

"fitId" - ID of fit to be deleted.

-> HttpstanRequest V1ModelsModelIdFitsFitIdDelete MimeNoContent NoContent MimeNoContent 
DELETE /v1/models/{model_id}/fits/{fit_id}

Delete a fit.

Delete a fit which has been saved in the cache.

v1ModelsModelIdFitsFitIdGet

v1ModelsModelIdFitsFitIdGet Source #

Arguments

:: ModelId

"modelId" - ID of Stan model associated with the result

-> FitId

"fitId" - ID of Stan result ("fit") desired

-> HttpstanRequest V1ModelsModelIdFitsFitIdGet MimeNoContent NoContent MimeNoContent 
GET /v1/models/{model_id}/fits/{fit_id}

Get results returned by a function.

Result (draws, logger messages) from calling a function defined in stan::services.

v1ModelsModelIdFitsPost

v1ModelsModelIdFitsPost Source #

Arguments

:: (Consumes V1ModelsModelIdFitsPost MimeJSON, MimeRender MimeJSON CreateFitRequest) 
=> CreateFitRequest

"body" - Full stan::services function name and associated arguments to call with Stan model.

-> ModelId

"modelId" - ID of Stan model to use

-> HttpstanRequest V1ModelsModelIdFitsPost MimeJSON Fit MimeJSON 
POST /v1/models/{model_id}/fits

Call function defined in stan::services.

A request to this endpoint starts a long-running operation. Users can retrieve information about the status of the operation by making a GET request to the operations resource endpoint. When the operation is done, the "fit" may be downloaded. (A "fit" collects all logger and writer messages from Stan.) `function` indicates the name of the ``stan::services function`` which should be called given the Stan model associated with the id `model_id`. For example, if sampling using ``stan::services::sample::hmc_nuts_diag_e_adapt`` then `function` is the full function name ``stan::services::sample::hmc_nuts_diag_e_adapt``. Sampler parameters which are not supplied will be given default values taken from CmdStan. For example, if ``stan::services::sample::hmc_nuts_diag_e_adapt`` is the function called and the parameter `num_samples` is not specified, the value 1000 will be used. For a full list of default values consult the CmdStan documentation.

data V1ModelsModelIdFitsPost Source #

Instances

Instances details
HasBodyParam V1ModelsModelIdFitsPost CreateFitRequest Source #

Body Param "body" - Full stan::services function name and associated arguments to call with Stan model.

Instance details

Defined in Httpstan.API.ApiDefault

Consumes V1ModelsModelIdFitsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

Produces V1ModelsModelIdFitsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsModelIdLogProbGradPost

v1ModelsModelIdLogProbGradPost Source #

POST /v1/models/{model_id}/log_prob_grad

Return the gradient of the log posterior evaluated at the unconstrained parameters.

Returns the output of Stan C++ `stan::model::log_prob_grad`.

data V1ModelsModelIdLogProbGradPost Source #

Instances

Instances details
HasBodyParam V1ModelsModelIdLogProbGradPost AdjustTransform Source #

Body Param "adjust_transform" - Boolean to control whether we apply a Jacobian adjust transform.

Instance details

Defined in Httpstan.API.ApiDefault

Consumes V1ModelsModelIdLogProbGradPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

Produces V1ModelsModelIdLogProbGradPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsModelIdLogProbPost

v1ModelsModelIdLogProbPost Source #

POST /v1/models/{model_id}/log_prob

Return the log probability of the unconstrained parameters.

Returns the output of Stan C++ `log_prob` model class method.

data V1ModelsModelIdLogProbPost Source #

Instances

Instances details
HasBodyParam V1ModelsModelIdLogProbPost AdjustTransform Source #

Body Param "adjust_transform" - Boolean to control whether we apply a Jacobian adjust transform.

Instance details

Defined in Httpstan.API.ApiDefault

Consumes V1ModelsModelIdLogProbPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

Produces V1ModelsModelIdLogProbPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsModelIdParamsPost

v1ModelsModelIdParamsPost Source #

Arguments

:: (Consumes V1ModelsModelIdParamsPost MimeJSON, MimeRender MimeJSON ParamData) 
=> ParamData

"_data" - Data for Stan Model. Needed to calculate param names and dimensions.

-> ModelId

"modelId" - ID of Stan model to use

-> HttpstanRequest V1ModelsModelIdParamsPost MimeJSON V1ModelsModelIdParamsPost200Response MimeJSON 
POST /v1/models/{model_id}/params

Get parameter names and dimensions.

Returns the output of Stan C++ model class methods: `constrained_param_names`, `get_param_names` and `get_dims`.

data V1ModelsModelIdParamsPost Source #

Instances

Instances details
HasBodyParam V1ModelsModelIdParamsPost ParamData Source #

Body Param "data" - Data for Stan Model. Needed to calculate param names and dimensions.

Instance details

Defined in Httpstan.API.ApiDefault

Consumes V1ModelsModelIdParamsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

Produces V1ModelsModelIdParamsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsModelIdTransformInitsPost

v1ModelsModelIdTransformInitsPost Source #

Arguments

:: (Consumes V1ModelsModelIdTransformInitsPost MimeJSON, MimeRender MimeJSON ConstrainedParameters) 
=> ConstrainedParameters

"constrainedParameters" - Constrained parameter values and their specified context

-> ModelId

"modelId" - ID of Stan model to use

-> HttpstanRequest V1ModelsModelIdTransformInitsPost MimeJSON V1ModelsModelIdTransformInitsPost200Response MimeJSON 
POST /v1/models/{model_id}/transform_inits

Return a sequence of unconstrained parameters.

Returns the output of Stan C++ `transform_inits` model class method.

data V1ModelsModelIdTransformInitsPost Source #

Instances

Instances details
HasBodyParam V1ModelsModelIdTransformInitsPost ConstrainedParameters Source #

Body Param "constrained_parameters" - Constrained parameter values and their specified context

Instance details

Defined in Httpstan.API.ApiDefault

Consumes V1ModelsModelIdTransformInitsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

Produces V1ModelsModelIdTransformInitsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsModelIdWriteArrayPost

v1ModelsModelIdWriteArrayPost Source #

Arguments

:: (Consumes V1ModelsModelIdWriteArrayPost MimeJSON, MimeRender MimeJSON IncludeGqs) 
=> IncludeGqs

"includeGqs" - Boolean to control whether we include generated quantities.

-> ModelId

"modelId" - ID of Stan model to use

-> HttpstanRequest V1ModelsModelIdWriteArrayPost MimeJSON V1ModelsModelIdWriteArrayPost200Response MimeJSON 
POST /v1/models/{model_id}/write_array

Return a sequence of constrained parameters.

Returns the output of Stan C++ `write_array` model class method.

data V1ModelsModelIdWriteArrayPost Source #

Instances

Instances details
HasBodyParam V1ModelsModelIdWriteArrayPost IncludeGqs Source #

Body Param "include_gqs" - Boolean to control whether we include generated quantities.

Instance details

Defined in Httpstan.API.ApiDefault

Consumes V1ModelsModelIdWriteArrayPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

Produces V1ModelsModelIdWriteArrayPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1ModelsPost

v1ModelsPost Source #

POST /v1/models

Compile a Stan model

data V1ModelsPost Source #

Instances

Instances details
HasBodyParam V1ModelsPost CreateModelRequest Source #

Body Param "body" - Stan program code to compile

Instance details

Defined in Httpstan.API.ApiDefault

Methods

setBodyParam :: (Consumes V1ModelsPost contentType, MimeRender contentType CreateModelRequest) => HttpstanRequest V1ModelsPost contentType res accept -> CreateModelRequest -> HttpstanRequest V1ModelsPost contentType res accept Source #

Consumes V1ModelsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

Produces V1ModelsPost MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault

v1OperationsOperationIdGet

v1OperationsOperationIdGet Source #

GET /v1/operations/{operation_id}

Get Operation details.

Return Operation details. Details about an Operation include whether or not the operation is done and information about the progress of sampling.

data V1OperationsOperationIdGet Source #

Instances

Instances details
Produces V1OperationsOperationIdGet MimeJSON Source #
application/json
Instance details

Defined in Httpstan.API.ApiDefault