DataMapper

class tfsnippet.dataflows.DataMapper

Bases: object

Base class for all data mappers.

A DataMapper is a callable object, which maps input arrays into outputs arrays. Instances of DataMapper are usually used as the mapper of a tfsnippet.dataflows.MapperFlow.

Methods Summary

__call__(*arrays) Transform the input arrays into outputs.

Methods Documentation

__call__(*arrays)

Transform the input arrays into outputs.

Parameters:*arrays – Arrays to be transformed.
Returns:The output arrays.
Return type:tuple[np.ndarray]