OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

Public Member Functions

def __init__ (self, function, opt_vars, has_default)
 
def __call__ (self, *args, **kwargs)
 
def fit (self, X, Y, wavelengths)
 
def predict (self, *args, **kwargs)
 

Public Attributes

 function
 
 trained_function
 
 opt_vars
 
 has_default
 

Detailed Description

Allow benchmark function parameters to be optimized via a set of training data 

Definition at line 120 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  function,
  opt_vars,
  has_default 
)

Definition at line 123 of file utils.py.

Member Function Documentation

◆ __call__()

def __call__ (   self,
args,
**  kwargs 
)

Definition at line 128 of file utils.py.

◆ fit()

def fit (   self,
  X,
  Y,
  wavelengths 
)

Definition at line 133 of file utils.py.

◆ predict()

def predict (   self,
args,
**  kwargs 
)

Definition at line 147 of file utils.py.

Member Data Documentation

◆ function

function

Definition at line 124 of file utils.py.

◆ has_default

has_default

Definition at line 126 of file utils.py.

◆ opt_vars

opt_vars

Definition at line 125 of file utils.py.

◆ trained_function

trained_function

Definition at line 124 of file utils.py.


The documentation for this class was generated from the following file:
  • /gfs-oceanweb/web/ocssw/ocssw_src/src/aquaverse/MDN/benchmarks/utils.py