pfhedge.features.get_feature

pfhedge.features.get_feature(feature, **kwargs)[source]

Get feature from name.

Parameters
  • name (str) – Name of feature.

  • **kwargs – Keyword arguments to pass to feature constructor.

Returns

Feature

Examples

>>> from pfhedge.features import get_feature
...
>>> get_feature("moneyness")
<pfhedge.features.features.Moneyness object at ...>