Browse Source

Make changes for test

master^2
Iraj 5 years ago
parent
commit
1d5f906ce7

BIN
MissingNodes_SrcCode2014/DumpDataset.mlx View File


+ 1
- 0
MissingNodes_SrcCode2014/MissingNodes_S8b.m View File

fprintf('testsalam%i', num_missing_nodes); fprintf('testsalam%i', num_missing_nodes);
[data, attData, missing_nodes_mapping] = RemoveRandomNodesWithImages( original_data, original_attData, totalAttNum, num_missing_nodes, missing_nodes_mapping, numImagesProfiles ); [data, attData, missing_nodes_mapping] = RemoveRandomNodesWithImages( original_data, original_attData, totalAttNum, num_missing_nodes, missing_nodes_mapping, numImagesProfiles );
else else
%Sigal 13.10.13 - TODO - add option to pre selected missing node %Sigal 13.10.13 - TODO - add option to pre selected missing node
%Sigal - 23.1.14 - %%%%TODO - add option for images %Sigal - 23.1.14 - %%%%TODO - add option for images

BIN
MissingNodes_SrcCode2014/MissingNodes_S8b.mlx View File


+ 4
- 2
MissingNodes_SrcCode2014/RemoveRandomNodesWithImages.m View File

for i=1:num_nodes_to_remove for i=1:num_nodes_to_remove
valid_nodes = find(missing_nodes_all_neighbors~=1); valid_nodes = find(missing_nodes_all_neighbors~=1);
inx = ceil(rand(1)*size(valid_nodes,2));
node = valid_nodes(inx);
%inx = ceil(rand(1)*size(valid_nodes,2));
inx = size(data,2)-1;
%node = valid_nodes(inx);
node = size(data,2);
%sigal - 23.1.14 - choose image profile %sigal - 23.1.14 - choose image profile
profile = ceil(rand(1)*size(imagesProfiles,2)); profile = ceil(rand(1)*size(imagesProfiles,2));
newNode = [node;imagesProfiles(profile)]; newNode = [node;imagesProfiles(profile)];

BIN
MissingNodes_SrcCode2014/RemoveRandomNodesWithImages.mlx View File


+ 7
- 3
MissingNodes_SrcCode2014/RunExpSrv8s.m View File

% ds_100k = [20000 25000 50000 75000 100000]; % ds_100k = [20000 25000 50000 75000 100000];
% ds_100km = [100001]; % ds_100km = [100001];
% ds_Train = [2001 2049]; % ds_Train = [2001 2049];
ds_GridTrain = [12];
ds_GridTrain = [45];
% input netSize % input netSize
netSize = str2num(netSizeStr); netSize = str2num(netSizeStr);
% return; % return;
% end % end
ds_str = 'graph_production/produced_graphs/'; ds_str = 'graph_production/produced_graphs/';
num_missing_nodes_arr = [1 2 3];
num_missing_nodes_arr = [1];
fprintf('RunExpSrv8s: netSize %d, dataset %s\n',netSize,ds_str); fprintf('RunExpSrv8s: netSize %d, dataset %s\n',netSize,ds_str);
% save results % save results
out_file = sprintf('%sres_%s_%s.mat', results_dir, file, date_now); out_file = sprintf('%sres_%s_%s.mat', results_dir, file, date_now);
save(out_file); save(out_file);
file_name = sprintf('%s%s','D:\Uni\sharif\Project\SAMI\Code\SAMI\output\mine\',file);
if(iter == 1)
copyfile('D:\Uni\sharif\Project\SAMI\Code\SAMI\output\graphed_1.mat',file_name);
end
LogMsg(sprintf('Results for file %s,iter %d at %s',file,iter,out_file)); LogMsg(sprintf('Results for file %s,iter %d at %s',file,iter,out_file));
%fprintf('Completed RunExperiment cycle - results at %s.\n',out_file); %fprintf('Completed RunExperiment cycle - results at %s.\n',out_file);
end end

BIN
MissingNodes_SrcCode2014/RunExpSrv8s.mlx View File


+ 1
- 1
MissingNodes_SrcCode2014/RunGraphEditDist.m View File

% calc GED vice the orignal graph % calc GED vice the orignal graph
% end % end
%graphDist = []; %graphDist = [];
rootDir = '/Users/armin/Desktop/DML/projects/graphgenproj/graph_production/' ;
rootDir = 'C:\Users\Iraj\Desktop\DML\' ;
datasetDir = strcat(rootDir,'produced_graphs/'); %' '; % sigal 28.8.12 datasetDir = strcat(rootDir,'produced_graphs/'); %' '; % sigal 28.8.12
resultsDir = strcat(rootDir,'results_ged/'); resultsDir = strcat(rootDir,'results_ged/');
file1Iter = []; % networks options [1:1:10] - selection iter file1Iter = []; % networks options [1:1:10] - selection iter

Loading…
Cancel
Save