OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
MDN.benchmarks Namespace Reference

Namespaces

 _template
 
 meta
 
 utils
 

Functions

def get_models (wavelengths, sensor, product, debug=False, allow_opt=False, method=None, **kwargs)
 
def run_benchmarks (sensor, x_test, y_test=None, x_train=None, y_train=None, slices=None, args=None, *product='chl', bands=None, verbose=False, return_rs=True, return_ml=False, return_opt=False, kwargs_rs={}, kwargs_ml={}, kwargs_opt={})
 

Function Documentation

◆ get_models()

def MDN.benchmarks.get_models (   wavelengths,
  sensor,
  product,
  debug = False,
  allow_opt = False,
  method = None,
**  kwargs 
)
Retrieve all benchmark functions from the appropriate product
    directory. Import each function with "model" in the function
    name, ensure any necessary parameters have a default value 
    available, and test whether the function can be run with the
    given wavelengths. A template folder for new algorithms is 
    available in the Benchmarks directory.

Definition at line 14 of file __init__.py.

◆ run_benchmarks()

def MDN.benchmarks.run_benchmarks (   sensor,
  x_test,
  y_test = None,
  x_train = None,
  y_train = None,
  slices = None,
  args = None,
product = 'chl',
  bands = None,
  verbose = False,
  return_rs = True,
  return_ml = False,
  return_opt = False,
  kwargs_rs = {},
  kwargs_ml = {},
  kwargs_opt = {} 
)

Definition at line 51 of file __init__.py.