Public Member Functions

MGT::PredProcessor::PerfMetricsSet Class Reference

List of all members.

Public Member Functions

def __init__
def getMetrics
def exportMetricsCsv
def joinParam
def concatenate

Detailed Description

Holds multiple sets of performance metrics for the same samples and different sets of parameters.
Can return selected metrics along with parameter values as numpy record arrays.

Constructor & Destructor Documentation

def MGT::PredProcessor::PerfMetricsSet::__init__ (   self,
  param,
  perf 
)
Constructor.
@param param recarray[N_param]
@param perf sequence PerfMetrics[N_param]

Member Function Documentation

def MGT::PredProcessor::PerfMetricsSet::concatenate (   klass,
  sets 
)
Return a union of PerfMetricsSets by concatenating their data.
@param a sequence of PerfMetricsSet objects with identical param fields
@return a union PerfMetricsSet object.
This is a class method, so even if it is called as self.concatenate(sets),
the content of 'self' is not used.
def MGT::PredProcessor::PerfMetricsSet::exportMetricsCsv (   self,
  names,
  out 
)
Call getMetrics(names) and export the result as CSV file
def MGT::PredProcessor::PerfMetricsSet::getMetrics (   self,
  names 
)
Return a numpy recarray with dtype ["param",param_dtype),("val",[("name1","type1"),...])] and size N_param.
@todo Currently all metrics types will be converted to 32 bit floats.
def MGT::PredProcessor::PerfMetricsSet::joinParam (   self,
  param 
)
Join existing parameter records with the new one(s).
That means append new fields to the parameter records.
@param param a single recarray.record or recarray[N_param]

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