This is Haji's MSc thesis codes. Use it with ultimate caution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 699B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Cell 1:
  2. #### Lines 1~13:
  3. Import all necessary libraries.
  4. #### Line 14:
  5. Check the available devices (CPU/GPU)
  6. # Cell 2:
  7. #### Lines 1~2:
  8. Define a function for embedding sizes. It is discussed in the thesis.
  9. #### Lines 4~54:
  10. Define a function for plotting purposes.
  11. # Cell 3:
  12. #### Lines 1~9:
  13. Read the dataset and prepare its splits. Also calculate the class weight.
  14. # Cell 4:
  15. #### Lines 1~12:
  16. Define the hyper-parameters. Can be replaced by grid search or any other mechanism.
  17. #### Lines 13~69:
  18. Create, design and compile the model.
  19. #### Lines 70~80:
  20. Train the model.
  21. #### Lines 81~97:
  22. Save the results and show the plot.