-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_InvRand.m
More file actions
36 lines (29 loc) · 1.27 KB
/
setup_InvRand.m
File metadata and controls
36 lines (29 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%% setup_InvRand Setup file
%
% Adds to path the files of the current folder
% And compiles the mex file libsvmread for use with the ridge regression problems
% problems
% Get root location of resultsSetup
root = fileparts(which(mfilename));
% ----------------------------------------------------------------------
% Add the appropriate subdirs to path.
% ----------------------------------------------------------------------
addpath(genpath(root));
fprintf('%s \n',root);
% ----------------------------------------------------------------------
% Add the appropriate paths for libsvm and UF matrices
% ----------------------------------------------------------------------
% LIBSVMpath = './tests/LIBSVM'; %% The local LIBSVM folder, contains libsvmread.c, libsvmread.mex and data files (e.g. liver-disorders)
%
% UFgetpath = './tests/UFget'; %% The local UFget folder, that should contain UFget.m
try
if exist('libsvmread','file')~=3, mex libsvmread.c; end
fprintf('Compilation of MEX files for libsvmread was successful!\n');
catch err
display(err);
cd(root);
error('Could not compile MEX files for libsvmread:');
end
fprintf(['\n The above directories and their subdirectories have been' ,...
' temporarily added to your path.\n']);
clear;