Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more methods and average recall instead of area under the curve
- Loading branch information
Showing
30 changed files
with
86 additions
and
43 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function plot_legend(method_configs) | ||
|
||
figure; hold on; | ||
n_methods = numel(method_configs); | ||
[~,order] = sort([method_configs.sort_key]); | ||
method_configs = method_configs(order); | ||
|
||
x = 1:10; | ||
y = 1:10; | ||
handles = zeros([n_methods, 1]); | ||
for i = 1:n_methods | ||
style = '-'; | ||
if method_configs(i).is_baseline | ||
style = '--'; | ||
end | ||
if ~isempty(method_configs(i).line_style) | ||
style = method_configs(i).line_style; | ||
end | ||
handles(i) = plot(x, y, 'Color', method_configs(i).color, ... | ||
'LineWidth', 1.5, 'LineStyle', style); | ||
end | ||
lh = legend({method_configs.name}); | ||
% legend boxoff; | ||
for i = 1:n_methods | ||
set(handles(i), 'visible', 'off'); | ||
end | ||
set(gca, 'visible', 'off'); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function printpng(fname) | ||
%PRINTPDF Prints the current figure into a png document | ||
|
||
set(gca, 'LooseInset', get(gca, 'TightInset')); | ||
print('-dpng', '-r200', fname); |