@Rakuen
Applying filters within your model would be difficult. Instead you can apply filters on the input data like
x[x!=-10]
while sending data to the model to be trained
The problem is foresee is that during prediction(inference) you would have to apply the same rule, so that your model does not get to predict the rows for -10