Spaces:
Build error
Build error
Upload train_model.py
Browse files- train_model.py +7 -2
train_model.py
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
|
|
|
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
import numpy as np
|
| 4 |
import pandas as pd
|
|
@@ -51,5 +58,3 @@ model.fit(X_train_pad, y_train, epochs=5, batch_size=32, validation_data=(X_test
|
|
| 51 |
model.save("deep_learning_model.h5")
|
| 52 |
print("Model saved to deep_learning_model.h5")
|
| 53 |
|
| 54 |
-
if __name__ == "__main__":
|
| 55 |
-
train_model() # Ensure this calls the training function
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
"""train_model.ipynb
|
| 3 |
|
| 4 |
+
Automatically generated by Colab.
|
| 5 |
+
|
| 6 |
+
Original file is located at
|
| 7 |
+
https://colab.research.google.com/drive/1R-i5F70PPmj1iBbLI_xkYtDWxwgf9YEw
|
| 8 |
+
"""
|
| 9 |
|
| 10 |
import numpy as np
|
| 11 |
import pandas as pd
|
|
|
|
| 58 |
model.save("deep_learning_model.h5")
|
| 59 |
print("Model saved to deep_learning_model.h5")
|
| 60 |
|
|
|
|
|
|