Skip to content

featurebyte.Target.exp

exp( ) -> FrozenSeriesT

Description

Computes the exponential value of each element.

Returns

  • FrozenSeriesT
    Column or Feature with exponential values

Examples

Compute exponential values for a Column in a View:

>>> view = catalog.get_view("INVOICEITEMS")
>>> view["QuantityExp"] = view["Quantity"].exp()
>>> view.preview(5).filter(regex="Quantity")
   Quantity  QuantityExp
0       2.0     7.389056
1       1.0     2.718282
2       1.0     2.718282
3       1.0     2.718282
4       2.0     7.389056

Compute exponential values for a Feature:

>>> feature = catalog.get_feature("InvoiceCount_60days")
>>> feature_exp = feature.exp()