How to plot a local volatility surface created with local_volatility_model taken from tensorflow quant_finance.models

53 Views Asked by At

I have created a local volatility surface with the local_volatility_model (taken from tensorflow quant_finance.models) using the following code:

lv = tf_quant_finance.experimental.local_volatility.LocalVolatilityModel.from_market_data(dim, val_date, expiries, strikes, iv, spot, df1, [0.0], dtype=dtype)

and the code run seemingly correct, but I am unable to:

  1. plot the lv surface
  2. see the values of the volatilities in the lv surface for different strikes and time values. Thanks for any suggestion Giovanni

I was not able to find in the documentation the commands (or examples) to plot the surface and to show the local volatility surface values

0

There are 0 best solutions below