You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DumpResults.m 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. clear;
  2. clc;
  3. dataDir = 'D:/SocialNets/Steam/Results_Test/BFS_50Att/results_GED/Iter2/';
  4. files = dir(strcat(dataDir, 'res_Steam*.mat'));
  5. dateNow = clock;
  6. dateNow = strcat(num2str(dateNow(1)),'_',num2str(dateNow(2)),'_', num2str(dateNow(3)),'_', num2str(dateNow(4)), num2str(dateNow(5)),'_', num2str(dateNow(6)));
  7. outFile = sprintf('%sDumpResults_%s.txt',dataDir, dateNow);
  8. fileID = fopen(outFile,'w');
  9. for f = files'
  10. data = load(strcat(dataDir,f.name));
  11. for r = data.purity
  12. % fprintf(fileID,'\t%s',f.name);
  13. fprintf(fileID,'\t%s',data.file);
  14. fprintf(fileID,'\t%d\t',data.i);
  15. fprintf(fileID,'\t%d\t',data.iter);
  16. % fprintf(fileID,'\t%d',r.iteration);
  17. fprintf(fileID,'\t%d',r.graph_size);
  18. fprintf(fileID,'\t%d',r.graph_edges); %12.12.12
  19. fprintf(fileID,'\t%d',r.graph_attr_edges); % 12.12.12
  20. fprintf(fileID,'\t%d',r.num_missing_nodes_idx);
  21. fprintf(fileID,'\t%d\t',r.num_missing_nodes);
  22. fprintf(fileID,'\t%d',r.num_placeholders);
  23. fprintf(fileID,'\t%d\t',r.affinity_calculation_type);
  24. fprintf(fileID,'\t%d',r.withAttr);
  25. fprintf(fileID,'\t%d',r.num_attr_nodes);
  26. fprintf(fileID,'\t%d',r.num_clusters_known);
  27. fprintf(fileID,'\t%d\t',r.score);
  28. fprintf(fileID,'\t%d\t',r.edit_distance);
  29. % fprintf(fileID,'\t%d',r.affinity_calc_time);
  30. % fprintf(fileID,'\t%d',r.reduce_dim_time);
  31. % fprintf(fileID,'\t%d',r.graph_predict_time);
  32. % fprintf(fileID,'\t%d',r.missing_nodes_mapping(1,1));
  33. % fprintf(fileID,'\t%d',r.missing_nodes_mapping(1,2));
  34. % fprintf(fileID,'\t%d',r.missing_nodes_mapping(1,3));
  35. fprintf(fileID,'\n');
  36. end
  37. end
  38. fclose(fileID);
  39. LogMsg(sprintf('Completed DumpResults at%s',outFile));