SkillForge45 commited on
Commit
8dc3336
verified
1 Parent(s): 7cd3038

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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 = 20 # Adjust based on the longest equation in your dataset
12
- MAX_RESULT_LENGTH = 10 # Adjust based on the longest result in your dataset
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))