WeixuanZ / flood-warning-system

Consider removing the commented out code block PY-W0069
Anti-pattern
Major
a year agoa year old
Consider removing the commented out code block
107        LSTM(256, activation="relu", input_shape=(1, lookback), recurrent_dropout=0.1)
108    )
109    model.add(Dense(512, activation="relu"))
110    # model.add(Dense(256, activation='relu'))111    model.add(Dense(1, activation="tanh"))
112    model.compile(optimizer="adam", loss="mse")
113
Consider removing the commented out code block
179    return dates, levels
180
181
182# if __name__=="__main__":183#     print("Example of station data:")
184#     print(json.dumps(fetch_station_data()['items'][0], indent=4))
185#     print("Example of water level data:")
Consider removing the commented out code block
 8def run():
 9    stations = build_station_list()
10
11    # date, data, demo, prediction = predict('Cam', dataset_size=1000, lookback=2000, iteration=100, display=300, use_pretrained=True, batch_size=256, epoch=20)12    date, data = predict(
13        stations[5].name,
14        dataset_size=1000,