Skip to content

Commit

Permalink
added new experiment for training without cross validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello Camoriano committed Oct 21, 2015
1 parent 87d57fd commit 0b10cf5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/justTrain.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
load breastcancer

% Customize configuration
config = config_set('filter.fixedIterations' , 100 , ... % Set a fixed number of iterations (no cross validation is performed in this case)
'kernel.m' , 200 , ... % Modify the subsampling level (default m = 100)
'kernel.kernelParameters' , 0.9 ); % Change gaussian kernel parameter (sigma)

% Perform default cross validation
[ training_output ] = nytro_train( Xtr , Ytr , config);

% Perform predictions on the test set and evaluate results
[ prediction_output ] = nytro_test( Xtr , Xte , Yte , training_output);

0 comments on commit 0b10cf5

Please sign in to comment.