Update main.py
Browse files
main.py
CHANGED
|
@@ -8,8 +8,8 @@ from tensorflow.keras.utils import to_categorical
|
|
| 8 |
# Constants
|
| 9 |
CHAR_SET = '0123456789+-=* /'
|
| 10 |
NUM_CLASSES = len(CHAR_SET)
|
| 11 |
-
MAX_EQUATION_LENGTH =
|
| 12 |
-
MAX_RESULT_LENGTH =
|
| 13 |
|
| 14 |
def one_hot_encode(s, max_length):
|
| 15 |
encoding = np.zeros((max_length, NUM_CLASSES))
|
|
|
|
| 8 |
# Constants
|
| 9 |
CHAR_SET = '0123456789+-=* /'
|
| 10 |
NUM_CLASSES = len(CHAR_SET)
|
| 11 |
+
MAX_EQUATION_LENGTH = 2000000
|
| 12 |
+
MAX_RESULT_LENGTH = 100000
|
| 13 |
|
| 14 |
def one_hot_encode(s, max_length):
|
| 15 |
encoding = np.zeros((max_length, NUM_CLASSES))
|