Last updated: 2023-03-16.
tf_quant_finance.models.longstaff_schwartz.make_basket_put_payoff#
Produces a callable from samples to payoff of a simple basket put option.
tf_quant_finance.models.longstaff_schwartz.make_basket_put_payoff(
strikes, dtype=None, name=None
)
Args:#
strikes: ATensorofdtypeconsistent withsamplesand shape[num_samples, batch_size].dtype: Optionaldtype. Eithertf.float32ortf.float64. If supplied, represents thedtypefor the ‘strikes’ as well as for the input argument of the output payoff callable. Default value:None, which means that thedtypeinferred fromstrikesis 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
[batch_size, num_samples, num_exercise_times, dim]
and a scalar Tensor representing current time to a Tensor of shape
[num_samples, batch_size].