-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some questions about training #3
Comments
btw, could u send me the whole DAIC dataset like xxx_TRANSCRIPT? Downloading many .zip files is too time-consuming. My email is: pinkman@stu.xjtu.edu.cn Thanks! |
@chuyuanli I would appreciate it if u could help me. |
Hello, thanks for your interest. About the DAIC data, you need to submit a request and then you can download the files. Hope this helps. |
Actually, when I set has_emo\has_topic\has_act = False, the model could trained well, but when one of these three parameters is set to True, an error will be reported(raise ValueError("nan loss encountered")). I checked the data and it was caused by the lack of phq label in the dailydialog dataset. In dataset_reader.py you fill in missing values by using -1, but when all labels are -1, the value of the loss is "nan", how can I fix it? @chuyuanli |
hi,
When I try to run the main script to train the model, I get the following problem:
Traceback (most recent call last):
File "c:\Users\jessa\Desktop\MTL4Depr-master\src\main.py", line 272, in
model, train_metrics, dev_loader = run_training_loop(params, outf=f, serialdir=serialdir, config=CONFIG)
File "c:\Users\jessa\Desktop\MTL4Depr-master\src\main.py", line 131, in run_training_loop
metrics = trainer.train()
File "D:\conda\envs\mtl\lib\site-packages\allennlp\training\gradient_descent_trainer.py", line 771, in train
metrics, epoch = self._try_train()
File "D:\conda\envs\mtl\lib\site-packages\allennlp\training\gradient_descent_trainer.py", line 793, in _try_train
train_metrics = self._train_epoch(epoch)
File "D:\conda\envs\mtl\lib\site-packages\allennlp\training\gradient_descent_trainer.py", line 515, in _train_epoch
raise ValueError("nan loss encountered")
ValueError: nan loss encountered
This looks like the data has some invalid values, how do I handle it?
also, here is my directory about dataset, is that correct?
├─ data
│ ├─ daic
│ │ ├─ 300_TRANSCRIPT.csv
│ │ ├─ 301_TRANSCRIPT.csv
│ │ └─ 304_TRANSCRIPT.csv
│ ├─ dailydialog
│ │ ├─ .DS_Store
│ │ ├─ dialogues_act.txt
│ │ ├─ dialogues_emotion.txt
│ │ ├─ dialogues_text.txt
│ │ ├─ dialogues_topic.txt
│ │ ├─ ijcnlp_dailydialog
│ │ │ ├─ .DS_Store
│ │ │ ├─ dialogues_act.txt
│ │ │ ├─ dialogues_emotion.txt
│ │ │ ├─ dialogues_text.txt
│ │ │ ├─ dialogues_topic.txt
│ │ │ ├─ readme.txt
│ │ │ ├─ test.zip
│ │ │ ├─ train.zip
│ │ │ └─ validation.zip
│ │ ├─ readme.txt
│ │ ├─ test
│ │ │ ├─ dialogues_act_test.txt
│ │ │ ├─ dialogues_emotion_test.txt
│ │ │ └─ dialogues_test.txt
│ │ ├─ train
│ │ │ ├─ dialogues_act_train.txt
│ │ │ ├─ dialogues_emotion_train.txt
│ │ │ └─ dialogues_train.txt
│ │ └─ validation
│ │ ├─ dialogues_act_validation.txt
│ │ ├─ dialogues_emotion_validation.txt
│ │ └─ dialogues_validation.txt
│ └─ ijcnlp_dailydialog.zip
The text was updated successfully, but these errors were encountered: