rztdl.dl.components.metrics package

Submodules

rztdl.dl.components.metrics.custom_metric module

class rztdl.dl.components.metrics.custom_metric.CustomMetric(name: str, parameters: dict, inputs)[source]

Bases: rztdl.dl.components.metrics.metric.Metric

Custom Metric

Parameters:
  • name (str) – Name of the custom component
  • parameters (dict) – dictionary containing each parameter
  • inputs – dictionary containing mapping between inputs
add_weight(name=None, shape=None, dtype=None, initializer=None, regularizer=None, trainable=None, constraint=None, partitioner=None, use_resource=None, **kwargs)[source]
call(inputs, **kwargs)[source]
create(**input_dict)[source]
validate(*inputs, **kwargs)[source]

rztdl.dl.components.metrics.metric module

@created on: 12/17/19, @author: Himaprasoon, @version: v0.0.1

Description:

Sphinx Documentation Status:

class rztdl.dl.components.metrics.metric.Metric(name, inputs, reduction=<REDUCTION.AVERAGE: 'AVERAGE'>, outputs=None)[source]

Bases: tensorflow.python.keras.engine.base_layer.Layer, rztdl.dl.components.component.RZTComponent

call(inputs, **kwargs)[source]
create(*inputs, **kwargs)[source]
get_config()[source]
reset_states()[source]
class rztdl.dl.components.metrics.metric.REDUCTION[source]

Bases: rztdl.utils.py_utils.AutoNameEnum

An enumeration.

AVERAGE = 'AVERAGE'
SUM = 'SUM'

Module contents

@created on: 2019-12-03, @author: Himaprasoon, @version: v0.0.1

Description:

Sphinx Documentation Status: