function [rmse_value] = driver2_predict_RL_2_classSVR(indeces,training_indeces)
    label_vector = [.5400 .59469	.68878	.76927	.7766	.81082	.81626	.85489	.86609	.92489	.95595	.97208	.99995]*100;
%     load IMS_truncated_data.mat;    
    load simulated_data_13Levels.mat;
    indeces = indeces;
    data = simulated_data(:,indeces);
%     data = truncated_outer_bear1_exp2(:,indeces);
    c_value = 4;
    epsilon_value = 0.001;
    gamma_value = 0;
    kernel = 'rbf';
    training_indeces = training_indeces; %[1 13]
    n_level = 4; %Changed from '4'
    n_feat = ceil(0.4*2^n_level); %Changed from '9'
    speed = 500;
    rmse_value = predict_residual_life(data,training_indeces,label_vector(indeces),n_level,n_feat,c_value,epsilon_value,gamma_value,kernel,speed);
end

    

% function [rmse_value] = driver2_predict_RL_2_classSVR(indeces_lower,indeces_higher,c_value,epsilon_value,gamma_value,kernel,n_level,speed)
%     label_vector = [.5400 .59469	.68878	.76927	.7766	.81082	.81626	.85489	.86609	.92489	.95595	.97208	.99995]*100;
%     load IMS_truncated_data.mat;    
%     indeces = indeces_lower:1:indeces_higher;
%     data = truncated_outer_bear1_exp2(:,indeces);
%     i = 1;
%     index = 1
%     while(i <= 2^n_level)
%         n_feat = i;
%         dummy = predict_residual_life(data,[1 1+indeces_higher-indeces_lower],label_vector(indeces),n_level,n_feat,c_value,epsilon_value,gamma_value,kernel,speed);
%         rmse_value(index) = dummy(1);
%         index = index + 1
%         i = i + 2;
%     end
% end


% % function [rmse_value] = driver2_predict_RL_2_classSVR()
% function [rmse_value] = driver2_predict_RL_2_classSVR(indeces_lower,indeces_higher,c_value,epsilon_value,gamma_value,kernel,n_level,n_feat)
%     label_vector = [.5400 .59469	.68878	.76927	.7766	.81082	.81626	.85489	.86609	.92489	.95595	.97208	.99995]*100;
%     load IMS_truncated_data.mat;    
%     indeces = indeces_lower:1:indeces_higher;
%     data = truncated_outer_bear1_exp2(:,indeces);
%     rmse_value = predict_residual_life(data,[1 1+indeces_higher-indeces_lower],label_vector(indeces),n_level,n_feat,c_value,epsilon_value,gamma_value,kernel);
%     rmse_value = rmse_value(1);
% end
% 
%     t_level = 8;
%     index = 1;
%     i = 1
%     while(i <= t_level)
%         n_level = i;
%         j = 1;
%         while(j <= 2^n_level)
%             n_feat = j;
%             dummy = predict_residual_life(data,[1 1+indeces_higher-indeces_lower],label_vector(indeces),n_level,n_feat,c_value,epsilon_value,gamma_value,kernel);
%             rmse_value(index,:) = [dummy(1) i j];
%             index = index + 1;
%             j = j + 2;
%         end
%         i = i + 1
%     end            
% end