This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classifier = KerasClassifier(build_fn = build_classifier, batch_size=10, epochs=100) | |
accuracies = cross_val_score(estimator = classifier, X=X_train,y=y_train, cv=10, n_jobs=-1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keras | |
from keras.models import Sequential | |
from keras.layers import Dense | |
def build_classifier(): | |
classifier = Sequential() | |
classifier.add(Dense(units=6, kernel_initializer='uniform', activation='relu', input_dim=11)) | |
classifier.add(Dense(units=6, kernel_initializer='uniform', activation='relu')) | |
classifier.add(Dense(units=1, kernel_initializer='uniform', activation='sigmoid')) | |
classifier.compile(optimizer='adam', loss='binary_crossentropy', metrics=['accuracy']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mean = accuracies.mean() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.wrappers.scikit_learn import KerasClassifier | |
from sklearn.model_selection import cross_val_score |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_classifier(): | |
classifier = Sequential() | |
classifier.add(Dense(units=6, kernel_initializer='uniform', activation='relu', input_dim=11)) | |
classifier.add(Dense(units=6, kernel_initializer='uniform', activation='relu')) | |
classifier.add(Dense(units=1, kernel_initializer='uniform', activation='sigmoid')) | |
classifier.compile(optimizer='adam', loss='binary_crossentropy', metrics=['accuracy']) | |
return classifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keras | |
from keras.models import Sequential | |
from keras.layers import Dense |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": | |
[ | |
{ | |
"name":"Featured", | |
"images":[ "https://wallpaperscraft.com/image/game_of_thrones_peter_dinklage_tyrion_lannister_94608_1920x1080.jpg", | |
"https://i.pinimg.com/originals/88/7b/84/887b84bbbd290fc22d77f133441c754f.jpg", | |
"http://papers.co/wallpaper/papers.co-ac56-wallpaper-bigbang-theory-guys-film-33-iphone6-wallpaper.jpg", | |
"https://iphonehdwallpapers.net/wp-content/cache/1fb0c1e97435f812d08ba187cc163530_w324_h576_sc.jpg", | |
"http://2.bp.blogspot.com/-Q56eMiusUSw/T5159QX7ptI/AAAAAAAAKW8/dRceP4KhZgA/s1600/freeithemes.com-8008.jpeg", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.google.firebase.zerotoapp; | |
public class ChatMessage { | |
public String name; | |
public String message; | |
public ChatMessage() { | |
} | |
public ChatMessage(String name, String message) { |