pluskid / Mocha.jl

Deep Learning framework for Julia
Other
1.29k stars 254 forks source link

handling missing values #170

Closed gdkrmr closed 8 years ago

gdkrmr commented 8 years ago

I am trying to implement an auto-encoder that can handle missing values in data, is there an easy way to handle missing values in Mocha (e.g. with a quick wrapper around an existing layer) or is it necessary to write a new layer from scratch?

pluskid commented 8 years ago

Depending on how you want to handle missing values. If it is OK to set them to a default value (0 or mean, etc.), then it should be fairly easy by wrapping existing layer and do pre-processing before actual computation. However, if you want very specific behavior like ignoring computation for missing values, it will be complicated. For example, the fully connected layers use BLAS to do matrix multiplication, and I do not believe they have any specific interface to handle missing values like that. You will need to write your own computation routine from scratch.