Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AWSの機械学習基盤を使ってみよう

Takaaki Tanaka
December 23, 2017

 AWSの機械学習基盤を使ってみよう

合同勉強会 in 大都会岡山 -2017 Winter- での登壇資料
https://gbdaitokai.connpass.com/event/58025/

Takaaki Tanaka

December 23, 2017
Tweet

More Decks by Takaaki Tanaka

Other Decks in Technology

Transcript

  1. ैདྷͰ͸ʜ wֶश༻ͷϓϩάϥϜΛ४උ͢Δ model = Sequential() model.add(Conv2D(32, (3, 3), padding='same', input_shape=X_train.shape[1:]))

    model.add(Activation('relu')) model.add(Conv2D(32, (3, 3))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Conv2D(64, (3, 3), padding='same')) model.add(Activation('relu')) model.add(Conv2D(64, (3, 3))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Flatten()) model.add(Dense(512)) model.add(Activation('relu')) model.add(Dropout(0.5)) model.add(Dense(nb_classes)) model.add(Activation('softmax')) model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy'])
  2. wϥΠϒϥϦʹैͬͯίʔσΟϯά model = Sequential() model.add(Conv2D(32, (3, 3), padding='same', input_shape=X_train.shape[1:])) model.add(Activation('relu'))

    model.add(Conv2D(32, (3, 3))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Conv2D(64, (3, 3), padding='same')) model.add(Activation('relu')) model.add(Conv2D(64, (3, 3))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Flatten()) model.add(Dense(512)) model.add(Activation('relu')) model.add(Dropout(0.5)) model.add(Dense(nb_classes)) model.add(Activation('softmax')) model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy']) ৞ΈࠐΈχϡʔϥϧωοτϫʔΫ