might be a little expensive even if you use Julian's code called spans it's still a little expensive so here's a trick and the trick is you're not going to make the Z variable a latent variable that you have to optimize over you're just going to make the output of an encoder so you're going to train a neural net here to predict what the optimal code is for sparse coding let's go as possible to encoder so you have a piece of data here you run into an encoder it predicts the value of a variable this variable is regular wise