JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
utils.metrics.base_metric.BaseMetric Class Reference
Inheritance diagram for utils.metrics.base_metric.BaseMetric:

Public Member Functions

 __init__ (self, **kwargs)
 
 getReduction (self)
 
 forward (self, model, *args, **kwargs)
 

Protected Member Functions

 _calcMedian (self, records)
 
 _calcGMean (self, records, drop_largest=3)
 
 _getResult (self)
 

Protected Attributes

 _warmup
 
 _repeat
 
 _reduction
 
 _timer
 

Detailed Description

Definition at line 5 of file base_metric.py.

Constructor & Destructor Documentation

◆ __init__()

utils.metrics.base_metric.BaseMetric.__init__ (   self,
**  kwargs 
)

Member Function Documentation

◆ _calcGMean()

utils.metrics.base_metric.BaseMetric._calcGMean (   self,
  records,
  drop_largest = 3 
)
protected
 Return the geometric mean of records after drop the first drop_largest

Definition at line 23 of file base_metric.py.

Referenced by utils.metrics.base_metric.BaseMetric._getResult().

◆ _calcMedian()

utils.metrics.base_metric.BaseMetric._calcMedian (   self,
  records 
)
protected
 Return the median of records

Definition at line 13 of file base_metric.py.

Referenced by utils.metrics.base_metric.BaseMetric._getResult().

◆ _getResult()

◆ forward()

utils.metrics.base_metric.BaseMetric.forward (   self,
  model,
args,
**  kwargs 
)

◆ getReduction()

utils.metrics.base_metric.BaseMetric.getReduction (   self)

Definition at line 41 of file base_metric.py.

References utils.metrics.base_metric.BaseMetric._reduction.

Member Data Documentation

◆ _reduction

utils.metrics.base_metric.BaseMetric._reduction
protected

◆ _repeat

utils.metrics.base_metric.BaseMetric._repeat
protected

Definition at line 8 of file base_metric.py.

Referenced by utils.metrics.tracking.Tracking.__init__().

◆ _timer

utils.metrics.base_metric.BaseMetric._timer
protected

◆ _warmup

utils.metrics.base_metric.BaseMetric._warmup
protected

Definition at line 7 of file base_metric.py.

Referenced by utils.metrics.tracking.Tracking.__init__().


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