Closed young-fire closed 6 years ago
pls test it ,maybe some wrong in my code.
sorry, I can not understand what would you do ? After Lasso regression, the mask of channel in the idxs ,
count = sum(idxs)
the count should be equal to rank! and it is not successive,so, why you do
idxs[0:count]=True idxs[count:]=False
This two line code have modified result of Lasso . It is mistake!!
Can you tell me what do you want to do ?
yes,This two line code have modified result of Lasso,Use this result to reshape the W, then the top5 is no decline.
I mean use this mistake result get the same accuracy.
oh , i konw ,i use the method named fisrt k , in single-layer it is almost no loss .
When I test it ,after lasso regression ,I do this:
count = sum(idxs) idxs[0:count]=True idxs[count:]=False the number of filters is the same , but the first count filters to preserve. the top5 and top1 is no descend ,why?