%%% preforms histogram analysis of inputs for class 0 and class 1 %%%% Milos Hauskrecht %%%% CS2750 Machine Learning, University of Pittsburgh %%%% input data for class0 and input data for class1 function res = analyze_input(class_0,class_1) n_features=size(class_0,2); for i=1:n_features figure subplot(1,2,1); hist(class_0(:,i),20); %its histogram with 20 bins title(['Feature: 'num2str(i),' Class 0']); subplot(1,2,2); hist(class_1(:,i),20); %its histogram with 20 bins title(['Feature: 'num2str(i),' Class 1']); end res=n_features; return;