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.

DumpEditDistResults.m 1.2KB

1234567891011121314151617181920212223242526272829303132
  1. clear;
  2. clc;
  3. dataDir = 'Results_Ron/results_061012/';
  4. files = dir(strcat(dataDir, 'res_facebook_sparse_2048*.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('%sDumpGraphDist_%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',data.i);
  15. fprintf(fileID,'\t%d',data.iter);
  16. % fprintf(fileID,'\t%d',r.iteration);
  17. fprintf(fileID,'\t%d',r.num_missing_nodes_idx);
  18. fprintf(fileID,'\t%d',r.num_missing_nodes);
  19. fprintf(fileID,'\t%d',r.affinity_calculation_type);
  20. fprintf(fileID,'\t%d',r.edit_distance);
  21. fprintf(fileID,'\t%d',r.missing_nodes_mapping(1,1));
  22. fprintf(fileID,'\t%d',r.missing_nodes_mapping(1,2));
  23. fprintf(fileID,'\t%d',r.missing_nodes_mapping(1,3));
  24. fprintf(fileID,'\n');
  25. end
  26. end
  27. fclose(fileID);
  28. LogMsg(sprintf('Completed DumpGraphDist at%s',outFile));