beexplainable.modelling package

Submodules

beexplainable.modelling.classifiers module

Library for constructing CNN classifiers

class beexplainable.modelling.classifiers.CNN_ResNet50(*args, **kwargs)[source]

Bases: Layer

call(inputs, training: Optional[bool] = None)[source]

Apply forward propagation to inputs.

Parameters
  • inputs (Tensor) – Tensor batch of shape (batch_size, height, width, 3).

  • training (bool, optional) – Whether to run in training mode (relevant for Batch Normalization). Defaults to None.

Returns

Features extracted from inputs.

get_config()[source]

Get configuration (needed for serialization when extra arguments are provided in __init__()).

Returns

Configuration dictionary.

Return type

dict

Module contents