For my usecase I necessarily have many NaNs in certain columns in the predicted return, and the returns/volumes dataframes. Is there any way to get the optimizer to both ignore the columns with NaN in the optimization, and auto-sell out when the return is NaN.
I cannot workaround this issue by dropping/filling nans, or by doing multiple backtests (ie every year) - it is very much intended that the prevelance of NaNs in some column is near-constant and inconsistent.
Error:
->obj.values_in_time_recursive()
DataEstimator found NaNs at time
For my usecase I necessarily have many NaNs in certain columns in the predicted return, and the returns/volumes dataframes. Is there any way to get the optimizer to both ignore the columns with NaN in the optimization, and auto-sell out when the return is NaN.
I cannot workaround this issue by dropping/filling nans, or by doing multiple backtests (ie every year) - it is very much intended that the prevelance of NaNs in some column is near-constant and inconsistent.
Error: ->obj.values_in_time_recursive() DataEstimator found NaNs at time