You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

subj_config.yaml 1.9 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Builtin Configurations(DO NOT CHANGE THESE CONFIGURATIONS unless you know exactly what you are doing)
  2. enable_modelarts: False
  3. # Url for modelarts
  4. data_url: ""
  5. train_url: ""
  6. checkpoint_url: ""
  7. # Path for local
  8. data_path: "/cache/data"
  9. output_path: "/cache/train"
  10. load_path: "/cache/checkpoint_path/"
  11. device_target: 'Ascend'
  12. enable_profiling: False
  13. # ==============================================================================
  14. # Training options
  15. dataset: 'SUBJ'
  16. pre_trained: False
  17. num_classes: 2
  18. batch_size: 64
  19. epoch_size: 4
  20. weight_decay: 3e-5
  21. keep_checkpoint_max: 1
  22. checkpoint_path: './checkpoint/'
  23. checkpoint_file_path: 'train_textcnn-4_149.ckpt'
  24. word_len: 51
  25. vec_length: 40
  26. base_lr: 1e-3
  27. # Export options
  28. device_id: 0
  29. ckpt_file: ""
  30. file_name: ""
  31. file_format: ""
  32. ---
  33. # Help description for each configuration
  34. enable_modelarts: 'Whether training on modelarts, default: False'
  35. data_url: 'Dataset url for obs'
  36. train_url: 'Training output url for obs'
  37. checkpoint_url: 'The location of checkpoint for obs'
  38. data_path: 'Dataset path for local'
  39. output_path: 'Training output path for local'
  40. load_path: 'The location of checkpoint for obs'
  41. device_target: 'Target device type, available: [Ascend, GPU, CPU]'
  42. enable_profiling: 'Whether enable profiling while training, default: False'
  43. dataset: "Dataset to be trained and evaluated, choice: ['MR, SUBJ, SST2']"
  44. train_epochs: "The number of epochs used to train."
  45. pre_trained: 'If need load pre_trained checkpoint, default: False'
  46. num_classes: 'Class for dataset'
  47. batch_size: "Batch size for training and evaluation"
  48. epoch_size: "Total training epochs."
  49. weight_decay: "Weight decay."
  50. keep_checkpoint_max: "keep the last keep_checkpoint_max checkpoint"
  51. num_factors: "The Embedding size of MF model."
  52. checkpoint_path: "The location of the checkpoint file."
  53. eval_file_name: "Eval output file."
  54. checkpoint_file_path: "The location of the checkpoint file."