Closed datistiquo closed 5 years ago
Thanks for the feedback, I will check this at once.
Thanks.
In :
train_generator = mz.DataGenerator(train_pack_processed, mode='pair', num_dup=1, num_neg=2, batch_size=20, callbacks=[hist_callback])
Must be num_neg equal to the number of negative examples per instance in my training data? In my data I have for each sample one positive and 2 negative examples, but some are duplicates so I might have per each instance 2 pos and 4 neagtive examples? How is this handled?
@faneshion I solved it. Need to learn the usage. num_neg parameters is important to match exactly your training data! Now it seems working...
The number of neg_num
is connected to the loss
. You should set them as equal. More detailed information, please check the documentation of the function.
@faneshion I solved it. Need to learn the usage. num_neg parameters is important to match exactly your training data! Now it seems working...
hei I have the same problem ,can you tell me .how to um_neg parameters is important to match exactly your training data
@zengjunjun num_neg
refers to train one positive example together with x
negative examples.
In readme:
Thanks
It seems that the below usage is not allowed anymore in datapack.py? I just followed the DRRM turoial: https://github.com/NTMC-Community/MatchZoo/blob/master/tutorials/wikiqa/drmm.ipynb