MUQ  0.4.3
umbridge::HTTPModel Class Reference

#include <umbridge.h>

Inheritance diagram for umbridge::HTTPModel:

Detailed Description

Definition at line 73 of file umbridge.h.

Public Member Functions

 HTTPModel (std::string host, std::string name, httplib::Headers headers=httplib::Headers())
 
std::vector< std::size_t > GetInputSizes (const json &config_json=json()) const override
 
std::vector< std::size_t > GetOutputSizes (const json &config_json=json()) const override
 
std::vector< std::vector< double > > Evaluate (const std::vector< std::vector< double >> &inputs, json config_json=json()) override
 
std::vector< double > Gradient (unsigned int outWrt, unsigned int inWrt, const std::vector< std::vector< double >> &inputs, const std::vector< double > &sens, json config_json=json()) override
 
std::vector< double > ApplyJacobian (unsigned int outWrt, unsigned int inWrt, const std::vector< std::vector< double >> &inputs, const std::vector< double > &vec, json config_json=json()) override
 
std::vector< double > ApplyHessian (unsigned int outWrt, unsigned int inWrt1, unsigned int inWrt2, const std::vector< std::vector< double >> &inputs, const std::vector< double > &sens, const std::vector< double > &vec, json config_json=json()) override
 
bool SupportsEvaluate () override
 
bool SupportsGradient () override
 
bool SupportsApplyJacobian () override
 
bool SupportsApplyHessian () override
 
- Public Member Functions inherited from umbridge::Model
 Model (std::string name)
 
std::string GetName () const
 

Constructor & Destructor Documentation

◆ HTTPModel()

Member Function Documentation

◆ ApplyHessian()

◆ ApplyJacobian()

◆ Evaluate()

◆ GetInputSizes()

◆ GetOutputSizes()

◆ Gradient()

◆ SupportsApplyHessian()

bool umbridge::HTTPModel::SupportsApplyHessian ( )
inlineoverridevirtual

Reimplemented from umbridge::Model.

Definition at line 269 of file umbridge.h.

References supportsApplyHessian.

Referenced by muq::Modeling::UMBridgeModPiece::ApplyHessianImpl().

◆ SupportsApplyJacobian()

bool umbridge::HTTPModel::SupportsApplyJacobian ( )
inlineoverridevirtual

Reimplemented from umbridge::Model.

Definition at line 266 of file umbridge.h.

References supportsApplyJacobian.

Referenced by muq::Modeling::UMBridgeModPiece::ApplyJacobianImpl().

◆ SupportsEvaluate()

bool umbridge::HTTPModel::SupportsEvaluate ( )
inlineoverridevirtual

Reimplemented from umbridge::Model.

Definition at line 260 of file umbridge.h.

References supportsEvaluate.

Referenced by muq::Modeling::UMBridgeModPiece::EvaluateImpl().

◆ SupportsGradient()

bool umbridge::HTTPModel::SupportsGradient ( )
inlineoverridevirtual

Reimplemented from umbridge::Model.

Definition at line 263 of file umbridge.h.

References supportsGradient.

Referenced by muq::Modeling::UMBridgeModPiece::GradientImpl().

◆ throw_if_error_in_response()

Member Data Documentation

◆ cli

httplib::Client umbridge::HTTPModel::cli
mutableprivate

◆ headers

httplib::Headers umbridge::HTTPModel::headers
private

◆ supportsApplyHessian

bool umbridge::HTTPModel::supportsApplyHessian = false
private

Definition at line 281 of file umbridge.h.

Referenced by HTTPModel(), and SupportsApplyHessian().

◆ supportsApplyJacobian

bool umbridge::HTTPModel::supportsApplyJacobian = false
private

Definition at line 280 of file umbridge.h.

Referenced by HTTPModel(), and SupportsApplyJacobian().

◆ supportsEvaluate

bool umbridge::HTTPModel::supportsEvaluate = false
private

Definition at line 278 of file umbridge.h.

Referenced by HTTPModel(), and SupportsEvaluate().

◆ supportsGradient

bool umbridge::HTTPModel::supportsGradient = false
private

Definition at line 279 of file umbridge.h.

Referenced by HTTPModel(), and SupportsGradient().


The documentation for this class was generated from the following file: