# Train The default value can be found in `DeepH-pack/deeph/default.ini`. The following arguments can be set in the configuration file for `Train`: ## basic - *graph_dir* : The directory to save the graph for the dataset. + *save_dir* : The root directory to save the training result. - *raw_dir* : The root directory of the preprocessed dataset. + *dataset_name* : The name of your dataset. - *disable_cuda* : Whether to disable the cuda during training. + *device* : The device you used for training (`cpu` or `cuda:x`, where `x` is the index of the cuda device). If the cuda is disabled by *disable_cuda* or it is not available in your environment, you may not set this option as it will be automatically set as 'cpu'. - *num_threads* : The number of threads used for PyTorch on CPU. + *save_to_time_folder* : Whether to create a subfolder named with the current time in *save_dir*. - *save_csv* : Whether to output labels and predictions for all the structures in the format of csv. + *tb_writer* : Whether to track and visualize the training process by TensorBoard. - *seed* : The seed for generating random numbers. + *multiprocessing* : Number of processes to use multiprocessing to generate crystal graphs. Set to `-1` to use all available CPUs. Set to `0` (default) to disable multiprocessing. WARNING: The keyword "num_threads" is incompatible with `multiprocessing`. If you use `multiprocessing` with a value of 1 or higher, the crystal graphs generation process will ignore the `num_threads` keyword. For optimal performance and memory usage, we recommend setting `multiprocessing = 0` and adjusting `num_threads` to control the number of threads. This is because generating crystal graphs can consume large memory. - *orbital* : A JSON format string that defines matrix elements to be predicted. For example, let  denotes DFT Hamiltonian matrix element between orbital  of atom  and orbital  of atom . An input of `[{"N1 N2": [a1, a2], "N3 N4": [a3, a4], "N5 N6": [a5, a6]}, {"N7 N8": [a7, a8]}]` can be set for the *orbital* option, if you want to predict two matrix elements `H1` and `H2` for the edge feature of an atom pair , where