Archive for March, 2016

… and logistic regression

Monday, March 7th, 2016

A follow-up on the collaborative filter, it occurs to me that it should be possible to add a logistic regression layer in Keras.  The following is a regularized multinomial logistic regression model: from keras.models import Sequential from keras.layers.core import Dense, Activation from keras.regularizers import l2 model = Sequential() model.add(Dense(numClasses, input_shape=(numFeatures, ), \ init=’zero’, W_regularizer=l2(0.01))) model.add(Activation(‘softmax’)) […]

Collaborative filtering in Keras

Monday, March 7th, 2016

Ten years ago, Netflix started the Netflix challenge.  A contest to see if the community could come up with a movie recommendation approach that beat their own by 10%.  One of the primary modeling techniques that came out of the contest was a set of sparse matrix factoring models whose earliest description can be found […]

Is this thing on?

Monday, March 7th, 2016

Let’s see, it’s been about 5 (?!) years since I’ve written anything here.  Since then, I’ve gotten married and now have a two year old daughter.  My old company was acquired by a large defense contractor, I left a few months ago and I’m now working on machine learning for a medical device company.  This space […]