tf_quant_finance.experimental.lsm_algorithm.make_basket_put_payoff

Contents

Last updated: 2023-03-16.

tf_quant_finance.experimental.lsm_algorithm.make_basket_put_payoff#

View source

Produces a callable from samples to payoff of a simple basket put option.

tf_quant_finance.experimental.lsm_algorithm.make_basket_put_payoff(
    strike_price, dtype=None, name=None
)

Args:#

  • strike_price: A Tensor of dtype consistent with samples and shape [num_samples, num_strikes].

  • dtype: Optional dtype. Either tf.float32 or tf.float64. The dtype If supplied, represents the dtype for the ‘strike_price’ as well as for the input argument of the output payoff callable. Default value: None, which means that the dtype inferred by TensorFlow is used.

  • name: Python str name prefixed to Ops created by the callable created by this function. Default value: None which is mapped to the default name ‘put_valuer’

Returns:#

A callable from Tensor of shape [num_samples, num_exercise_times, dim] and a scalar Tensor representing current time to a Tensor of shape [num_samples, num_strikes].