Hi,
I found your hb on CNN features code to be very interesting and nicely written. I was able to train (validate = 0) the model using the mat file: "scenes_hbn_data.mat". However, when I try to run the code in validation regime (validate=1) using the mat file "scenes_hbn_data_validation.mat", I get the "b_cat" value always = 1. I debugged the code and found that when a validation input is provided in this function: "sample_category_most_likely_cat_id(hbn_tree, x)" the "posteriror" values for all "c" are NaNs. Am I doing some thing wrong? Any feedback is highly appreciated.
Hi, I found your hb on CNN features code to be very interesting and nicely written. I was able to train (validate = 0) the model using the mat file: "scenes_hbn_data.mat". However, when I try to run the code in validation regime (validate=1) using the mat file "scenes_hbn_data_validation.mat", I get the "b_cat" value always = 1. I debugged the code and found that when a validation input is provided in this function: "sample_category_most_likely_cat_id(hbn_tree, x)" the "posteriror" values for all "c" are NaNs. Am I doing some thing wrong? Any feedback is highly appreciated.