AlexRodis / bayesian-models

A small library build on top of `pymc` that implements many common models
Apache License 2.0
0 stars 0 forks source link

#56 Expand `numpy.isnan` #62

Closed AlexRodis closed 1 year ago

AlexRodis commented 1 year ago

Models will try to preprocess data by checking and handling missing values. This relies on calling numpy.isnan for numpy arrays, which won't work for arrays of strings or objects. The behavior of np.isnan can be expanded to handle these cases by relying on the spec that np.nan!=np.nan. We can implement a similar behavior by vectoring this as an elementwise operation

AlexRodis commented 1 year ago

Wrong issue number. Well open new pr