outputret.m
来自「Multiple INstance Learning Library」· M 代码 · 共 15 行
M
15 行
function OutputRet(filename, bags, threshold)
fid = fopen(filename, 'w');
for i=1:length(bags)
scores = bags(i).inst_prob;
for j=1:length(scores)
if scores(j) > threshold
fprintf(fid, '1 %12.8f\n', scores(j));
else
fprintf(fid, '-1 %12.8f\n', scores(j));
end
end
end
fclose(fid);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?