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 1.1 KB

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
27
28
29
30
  1. import os
  2. PREFIX = ".." if os.path.dirname(os.getcwd()) == "src" else ""
  3. # Values
  4. TEXT_COL_NAME = 'text'
  5. TARGET_COL = 'label'
  6. CLASS_0 = 'ham'
  7. CLASS_1 = 'spam'
  8. # Path
  9. RAW_DATA_PATH = os.path.join(PREFIX, 'data/enron.csv')
  10. X_TRAIN_PATH = os.path.join(PREFIX, 'data/X_train.csv')
  11. X_TEST_PATH = os.path.join(PREFIX, 'data/X_test.csv')
  12. Y_TRAIN_PATH = os.path.join(PREFIX, 'data/y_train.csv')
  13. Y_TEST_PATH = os.path.join(PREFIX, 'data/y_test.csv')
  14. # Messages
  15. M_PRO_INIT = '[DEBUG] Preprocessing raw data'
  16. M_PRO_LOAD_DATA = ' [DEBUG] Loading raw data'
  17. M_PRO_RMV_PUNC = ' [DEBUG] Removing punctuation from Emails'
  18. M_PRO_LE = ' [DEBUG] Label encoding target column'
  19. M_PRO_VEC = ' [DEBUG] vectorizing the emails by words'
  20. M_PRO_SPLIT_DATA = ' [DEBUG] Splitting data to train and test'
  21. M_PRO_SAVE_DATA = ' [DEBUG] Saving data to file'
  22. M_MOD_INIT = '[DEBUG] Initialize Modeling'
  23. M_MOD_LOAD_DATA = ' [DEBUG] Loading data sets for modeling'
  24. M_MOD_RFC = ' [DEBUG] Runing Random Forest Classifier'
  25. 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...