This file contains hidden or 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 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', |
This file contains hidden or 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
| 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']) |
OlderNewer