Last updated: 2023-03-16.
tf_quant_finance.experimental.lsm_algorithm.make_basket_put_payoff#
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: ATensorofdtypeconsistent withsamplesand shape[num_samples, num_strikes].dtype: Optionaldtype. Eithertf.float32ortf.float64. ThedtypeIf supplied, represents thedtypefor the ‘strike_price’ as well as for the input argument of the output payoff callable. Default value:None, which means that thedtypeinferred by TensorFlow is used.name: Pythonstrname prefixed to Ops created by the callable created by this function. Default value:Nonewhich 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].