Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

const.py 908 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  1. # Values
  2. TEXT_COL_NAME = 'text'
  3. TARGET_COL = 'label'
  4. CLASS_0 = 'ham'
  5. CLASS_1 = 'spam'
  6. # Path
  7. RAW_DATA_PATH = '../data/enron.csv'
  8. X_TRAIN_PATH = '../data/X_train.csv'
  9. X_TEST_PATH = '../data/X_test.csv'
  10. Y_TRAIN_PATH = '../data/y_train.csv'
  11. Y_TEST_PATH = '../data/y_test.csv'
  12. # Messages
  13. M_PRO_INIT = '[DEBUG] Preprocessing raw data'
  14. M_PRO_LOAD_DATA = ' [DEBUG] Loading raw data'
  15. M_PRO_RMV_PUNC = ' [DEBUG] Removing punctuation from Emails'
  16. M_PRO_LE = ' [DEBUG] Label encoding target column'
  17. M_PRO_VEC = ' [DEBUG] vectorizing the emails by words'
  18. M_PRO_SPLIT_DATA = ' [DEBUG] Splitting data to train and test'
  19. M_PRO_SAVE_DATA = ' [DEBUG] Saving data to file'
  20. M_MOD_INIT = '[DEBUG] Initialize Modeling'
  21. M_MOD_LOAD_DATA = ' [DEBUG] Loading data sets for modeling'
  22. M_MOD_RFC =' [DEBUG] Runing Random Forest Classifier'
  23. M_MOD_SCORE = ' [INFO] Finished modeling with AUC Score:'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...