Skip to content

Instantly share code, notes, and snippets.

View nzw0301's full-sized avatar

Kento Nozawa nzw0301

  • Preferred Networks, Inc. / Preferred Elements, Inc.
  • Japan
  • 14:31 (UTC +09:00)
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nzw0301
nzw0301 / keras_mnist_sample.ipynb
Last active April 12, 2016 13:02
keras+MNIST
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nzw0301
nzw0301 / cbow_keras.py
Created April 11, 2016 03:06
reimplementation Continuous Bag–of–Words by Keras
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Activation, Embedding, TimeDistributedMerge
from keras.optimizers import SGD
from keras.utils import np_utils
def load_data(path):
id2word = []
word2id = {}
with open(path) as f:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.