lamiastella

arguments to main

Sep 22nd, 2016
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.52 KB | None | 0 0
  1.  
  2. function = main_xls_input(file, m, sigma, gamma, thres, nei);
  3.  
  4. clc;clear;%close all;
  5.  
  6. [num txt raw] = xlsread('wrap.xls');
  7. s = size(num);
  8. feature = num(:,s(2)-1);
  9. N = s(1);
  10. f = num(:,s(2));
  11.  
  12. %% parameters
  13. m = ceil(N*.4);    % sampling size
  14. sigma = 0.01;
  15. gamma = 1; % regularizer for optimization
  16. thres = 0.1;
  17. nei = 3;
  18.  
  19. fprintf('Sample size: %d\n', m);
  20. fprintf('number of estimations: %d\n', N-m);
  21. fprintf('Thresholding edges less than: %f\n', thres);
  22. fprintf('Constructing %d - neighbor graph: %f\n', nei);
Advertisement