transfer-learning-conv-ai icon indicating copy to clipboard operation
transfer-learning-conv-ai copied to clipboard

why num_candidates set to min(args.num_candidates, len(dataset[0]["utterances"][0]["candidates"])?

Open rash19 opened this issue 5 years ago • 1 comments

In train.py, starting from line number 81- for dataset_name, dataset in personachat.items(): num_candidates = len(dataset[0]["utterances"][0]["candidates"]) if args.num_candidates > 0 and dataset_name == 'train': num_candidates = min(args.num_candidates, num_candidates)

Please explain me the significance of setting num_candidates to len(dataset[0]["utterances"][0]["candidates"])?

rash19 avatar Oct 11 '19 09:10 rash19

To protect against the case where args.num_candidates is greater than len(dataset[0]["utterances"][0]["candidates"])?

martinritchie avatar Oct 15 '19 09:10 martinritchie