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

@@ -172,6 +172,7 @@ function [ rand_score, purity, p_triads, missing_nodes_mapping, removed_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 );
else
%Sigal 13.10.13 - TODO - add option to pre selected missing node
%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

@@ -151,8 +151,10 @@ function [missing_nodes] = ChooseMissingNodes(num_nodes_to_remove, data, attData
for i=1:num_nodes_to_remove
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
profile = ceil(rand(1)*size(imagesProfiles,2));
newNode = [node;imagesProfiles(profile)];

BIN
MissingNodes_SrcCode2014/RemoveRandomNodesWithImages.mlx View File


+ 7
- 3
MissingNodes_SrcCode2014/RunExpSrv8s.m View File

@@ -51,7 +51,7 @@ percentKnownPHsVec = 1;
% ds_100k = [20000 25000 50000 75000 100000];
% ds_100km = [100001];
% ds_Train = [2001 2049];
ds_GridTrain = [12];
ds_GridTrain = [45];
% input netSize
netSize = str2num(netSizeStr);
@@ -84,7 +84,7 @@ netSize = str2num(netSizeStr);
% return;
% end
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);
@@ -203,7 +203,11 @@ for nodes = netSizes
% save results
out_file = sprintf('%sres_%s_%s.mat', results_dir, file, date_now);
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));
%fprintf('Completed RunExperiment cycle - results at %s.\n',out_file);
end

BIN
MissingNodes_SrcCode2014/RunExpSrv8s.mlx View File


+ 1
- 1
MissingNodes_SrcCode2014/RunGraphEditDist.m View File

@@ -8,7 +8,7 @@ clc;
% calc GED vice the orignal graph
% end
%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
resultsDir = strcat(rootDir,'results_ged/');
file1Iter = []; % networks options [1:1:10] - selection iter

Loading…
Cancel
Save