Commit 7ffd51f7 authored by Vaanathi Sundaresan's avatar Vaanathi Sundaresan
Browse files

double datatype corrected

parent 1ec03ef8
......@@ -218,7 +218,7 @@ for testsubj = 1:numel(xdir)
threshold_array = 0:0.05:0.95;
feature_selection_cols_exp = repmat(feature_selection_cols, [numel(threshold_array),1]);
feature_selection_cols_exp = feature_selection_cols_exp(:)';
voronoi_train_features = voronoi_train_features_all(:,feature_selection_cols_exp);
voronoi_train_features = voronoi_train_features_all(:,feature_selection_cols_exp>0);
% Training RF regression model using all the feataures except the test
% subject
......@@ -241,7 +241,7 @@ for testsubj = 1:numel(xdir)
end
feature_selection_cols_exp = repmat(feature_selection_cols, [numel(threshold_array),1]);
feature_selection_cols_exp = feature_selection_cols_exp(:)';
voronoi_test_features = voronoi_test_features_all(:,feature_selection_cols_exp);
voronoi_test_features = voronoi_test_features_all(:,feature_selection_cols_exp>0);
testmeanbestthrs = predict(RFmodel_LOSO,voronoi_test_features);
%Assigning the values to the final image
......
......@@ -203,7 +203,7 @@ for testsubj = 1:numel(xdir)
threshold_array = 0:0.05:0.95;
feature_selection_cols_exp = repmat(feature_selection_cols, [numel(threshold_array),1]);
feature_selection_cols_exp = feature_selection_cols_exp(:)';
voronoi_test_features = voronoi_test_features_all(:,feature_selection_cols_exp);
voronoi_test_features = voronoi_test_features_all(:,feature_selection_cols_exp>0);
testmeanbestthrs = predict(RFmodel,voronoi_test_features);
%Assigning the values to the final image
......
......@@ -193,7 +193,7 @@ end
threshold_array = 0:0.05:0.95;
feature_selection_cols_exp = repmat(feature_selection_cols, [numel(threshold_array),1]);
feature_selection_cols_exp = feature_selection_cols_exp(:)';
voronoi_train_features = voronoi_train_features_all(:,feature_selection_cols_exp);
voronoi_train_features = voronoi_train_features_all(:,feature_selection_cols_exp>0);
% Training RF regression model
RFmodel = TreeBagger(1000,voronoi_train_features,trainmaxbestthrs,'Method','Regression',...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment