pydbm.loss.interface package

Submodules

pydbm.loss.interface.computable_loss module

class pydbm.loss.interface.computable_loss.ComputableLoss

Bases: object

Interface of Loss functions.

compute_delta

Backward delta.

Parameters:
  • pred_arr – Predicted data.
  • labeled_arr – Labeled data.
  • delta_output – Delta.
Returns:

Delta.

compute_loss

Return of result from this Cost function.

Parameters:
  • pred_arr – Predicted data.
  • labeled_arr – Labeled data.
  • axis – Axis or axes along which the losses are computed. The default is to compute the losses of the flattened array.
Returns:

Cost.

get_penalty_arr

getter

penalty_arr

getter

set_penalty_arr

setter

Module contents