Skip to content

Instantly share code, notes, and snippets.

View ghego's full-sized avatar

Francesco Mosconi ghego

View GitHub Profile
@ghego
ghego / keras_model.py
Last active May 29, 2018 00:14
keras_model.py
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
model = Sequential()
model.add(Dense(10, input_dim=X_train.shape[1], activation='sigmoid'))
model.add(Dense(1, activation='sigmoid'))
model.compile(optimizer=Adam(lr=0.01),
loss='binary_crossentropy',
@ghego
ghego / talks_links.md
Last active November 14, 2019 17:59
All the links for talks
line_count_query="""
SELECT COUNT(*) FROM BREATHE.{table_name}
"""
for table in tables:
res = client.query(line_count_query.format(table_name=table)).to_dataframe().values[0, 0]
lines_counts.append((table, res))
lines_counts = pd.DataFrame(lines_counts, columns=['table', 'rows'])