Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'modification' of github.com:jiazhihao/cluebotng into mo…

…dification
  • Loading branch information...
commit 9998f41c622940b113f901bf0386ce83d3288a69 2 parents 286d343 + 5f64966
@gkovacs gkovacs authored
Showing with 21 additions and 1 deletion.
  1. +20 −0 compare_results.m
  2. +1 −1  compare_results.sh
View
20 compare_results.m
@@ -0,0 +1,20 @@
+args = argv();
+
+if length(args) < 4
+ disp('usage: name1 filepath1 name2 filepath2')
+ exit(1)
+end
+
+string1 = args{1};
+file1 = args{2};
+string2 = args{3};
+file2 = args{4};
+
+table1 = dlmread(file1);
+table2 = dlmread(file2);
+
+[auc1, auc2] = roc_compare(string1, table1(:,3), table1(:,2), string2, table2(:,3), \
+ table2(:,2));
+name = [string1, string2, '.png'];
+print(name, '-dpng')
+disp(['output saved in: ', name])
View
2  compare_results.sh
@@ -8,5 +8,5 @@ file2=$4
tail -n +2 $file1 > $file1.tmp
tail -n +2 $file2 > $file2.tmp
-octave --silent compare_files.m $string1 $file1.tmp $string2 $file2.tmp
+octave --silent compare_results.m $string1 $file1.tmp $string2 $file2.tmp
eog $string1$string2.png
Please sign in to comment.
Something went wrong with that request. Please try again.