Package parsimony :: Package functions :: Module properties :: Class Penalty
[hide private]
[frames] | no frames]

Class Penalty

source code

object --+
         |
        Penalty
Known Subclasses:

Represents the penalisation of a function.

Penalties must take a parameter penalty_start, with default value 0.
Columns, variables or corresponding entities with indices smaller than
penalty_start must not be penalised.

Parameters
----------
penalty_start : Non-negative integer. The number of columns, variables
        etc., to except from penalisation. Equivalently, the first index
        to be penalised. Default is 0, all columns are included.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  _abc_cache = <_weakrefset.WeakSet object at 0x30b1610>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x30b1690>
  _abc_negative_cache_version = 10
  _abc_registry = <_weakrefset.WeakSet object at 0x30b1550>
Properties [hide private]

Inherited from object: __class__