zslearning
zslearning copied to clipboard
Error in running main.m
Hi Milind and Richard,
This is Yuting, a phd student from Boston University. We are trying to compare our recent work with your 13'NIPS paper on zero-shot learning. We try to run the code you provided, however it seems to be some errors in running the main script:
- Line 88, there doesn't seem to be a "resolution" field for variable "fullParams". I set it to 11 as for the Gaussian classifier. Is that OK?
- Line 152, the variables "thetaSeenSoftmax", "thetaUnseenSoftmax", "thetaMapping", "seenSmTrainParams", "unseenSmTrainParams","mapTrainParams", "validX" and "validY" do not seem to exist. I see from line 44 and line 53 that you saved some variables to "thetaSeenSoftmax.mat" and "thetaUnseenSoftmax.mat", but still there's no variable named after these mat file names... As for the other variables, I did not find any trace of them... Did I miss anything?
Thanks a lot for your code and time. We look forward to hearing back from you :)
Yuting
Have u figured it out? if so , I would appreciate it if u could please email me.( [email protected])
I changed the code on line 152 to the following based on my understanding:
[ guessedCategories, results ] = evaluateGaussianBayesian(thetaSeen, thetaUnseen, ... theta, trainParamsSeen, trainParamsUnseen, trainParams, testX, ... testY, cutoffs, zeroCategories, nonZeroCategories, label_names, wordTable, true);
But it gave me the following error: error: randi: require IMAX >= 1