Download components/delete_model.py from heboya8/ETL_pipeline: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/heboya8/ETL_pipeline/resolve/main/components/delete_model.py
- Command line
-
hf download hf://heboya8/ETL_pipeline/components/delete_model.py
-
curl -L -o delete_model.py https://huggingface.co/heboya8/ETL_pipeline/resolve/main/components/delete_model.py
311 Bytes
| from tensorflow import keras | |
| def build_lstm_model(seq_length): | |
| model = keras.Sequential([ | |
| keras.layers.LSTM(50, return_sequences=True, input_shape=(seq_length, 1)), | |
| keras.layers.LSTM(50), | |
| keras.layers.Dense(1) | |
| ]) | |
| model.compile(optimizer='adam', loss='mse') | |
| return model | |