OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
MDN.product_estimation Namespace Reference

Functions

def get_estimates (args, x_train=None, y_train=None, x_test=None, y_test=None, output_slices=None, dataset_labels=None, x_sim=None, y_sim=None, return_model=False, return_coefs=False)
 
def apply_model (x_test, use_cmdline=True, **kwargs)
 
def image_estimates (data, sensor=None, function=apply_model, rhos=False, anc=False, **kwargs)
 
def print_dataset_stats (**kwargs)
 
def generate_estimates (args, bands, x_train, y_train, x_test, y_test, slices, locs=None)
 
def main ()
 

Function Documentation

◆ apply_model()

def MDN.product_estimation.apply_model (   x_test,
  use_cmdline = True,
**  kwargs 
)
Apply a model (defined by kwargs and default parameters) to x_test 

Definition at line 135 of file product_estimation.py.

◆ generate_estimates()

def MDN.product_estimation.generate_estimates (   args,
  bands,
  x_train,
  y_train,
  x_test,
  y_test,
  slices,
  locs = None 
)

Definition at line 212 of file product_estimation.py.

◆ get_estimates()

def MDN.product_estimation.get_estimates (   args,
  x_train = None,
  y_train = None,
  x_test = None,
  y_test = None,
  output_slices = None,
  dataset_labels = None,
  x_sim = None,
  y_sim = None,
  return_model = False,
  return_coefs = False 
)
Estimate all target variables for the given x_test. If a model doesn't 
already exist, creates a model with the given training data. 


Definition at line 20 of file product_estimation.py.

◆ image_estimates()

def MDN.product_estimation.image_estimates (   data,
  sensor = None,
  function = apply_model,
  rhos = False,
  anc = False,
**  kwargs 
)
Takes data of shape [Height, Width, Wavelengths] and returns the outputs of the 
given function for that image, in the same [H, W] shape. 
rhos and anc models are not yet available.  


Definition at line 142 of file product_estimation.py.

◆ main()

def MDN.product_estimation.main ( )

Definition at line 222 of file product_estimation.py.

◆ print_dataset_stats()

def MDN.product_estimation.print_dataset_stats ( **  kwargs)
Print datasets shape & min / max stats per feature 

Definition at line 195 of file product_estimation.py.