My dataset consists of arrays whose elements are between -1.5 and 2.0. But in these arrays there are some elements which are -10. I want to train my model ( image-to-image prediction) without considering these -10 elements.
One of my arrays is looking like bottom one( as a representation).

Blockquote


Is there any way to filter this data by giving threshold or any other way so that in the output array from my model preserves these -10s and predicts other data only.