-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrainSURFQuad.m
88 lines (79 loc) · 47.1 KB
/
trainSURFQuad.m
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
function [trainedClassifier, validationAccuracy] = trainSURFQuad(trainingData)
% trainClassifier(trainingData)
% returns a trained classifier and its validation accuracy.
% This code recreates the classification model trained in
% Classification Learner app.
%
% Input:
% trainingData: the training data of same data type as imported
% in the app (table or matrix).
%
% Output:
% trainedClassifier: a struct containing the trained classifier.
% The struct contains various fields with information about the
% trained classifier.
%
% trainedClassifier.predictFcn: a function to make predictions
% on new data. It takes an input of the same form as this training
% code (table or matrix) and returns predictions for the response.
% If you supply a matrix, include only the predictors columns (or
% rows).
%
% validationAccuracy: a double containing the validation accuracy
% score in percent. In the app, the History list displays this
% overall accuracy score for each model.
%
% Use the code to train the model with new data.
% To retrain your classifier, call the function from the command line
% with your original data or new data as the input argument trainingData.
%
% For example, to retrain a classifier trained with the original data set
% T, enter:
% [trainedClassifier, validationAccuracy] = trainClassifier(T)
%
% To make predictions with the returned 'trainedClassifier' on new data T,
% use
% yfit = trainedClassifier.predictFcn(T)
%
% To automate training the same classifier with new data, or to learn how
% to programmatically train classifiers, examine the generated code.
% Auto-generated by MATLAB on 2016-02-24 14:25:22
inputTable = trainingData;
% Extract predictors and response
% This code processes the data into the right shape for training the
% classifier.
predictorNames = {'allSURFFeatures1', 'allSURFFeatures2', 'allSURFFeatures3', 'allSURFFeatures4', 'allSURFFeatures5', 'allSURFFeatures6', 'allSURFFeatures7', 'allSURFFeatures8', 'allSURFFeatures9', 'allSURFFeatures10', 'allSURFFeatures11', 'allSURFFeatures12', 'allSURFFeatures13', 'allSURFFeatures14', 'allSURFFeatures15', 'allSURFFeatures16', 'allSURFFeatures17', 'allSURFFeatures18', 'allSURFFeatures19', 'allSURFFeatures20', 'allSURFFeatures21', 'allSURFFeatures22', 'allSURFFeatures23', 'allSURFFeatures24', 'allSURFFeatures25', 'allSURFFeatures26', 'allSURFFeatures27', 'allSURFFeatures28', 'allSURFFeatures29', 'allSURFFeatures30', 'allSURFFeatures31', 'allSURFFeatures32', 'allSURFFeatures33', 'allSURFFeatures34', 'allSURFFeatures35', 'allSURFFeatures36', 'allSURFFeatures37', 'allSURFFeatures38', 'allSURFFeatures39', 'allSURFFeatures40', 'allSURFFeatures41', 'allSURFFeatures42', 'allSURFFeatures43', 'allSURFFeatures44', 'allSURFFeatures45', 'allSURFFeatures46', 'allSURFFeatures47', 'allSURFFeatures48', 'allSURFFeatures49', 'allSURFFeatures50', 'allSURFFeatures51', 'allSURFFeatures52', 'allSURFFeatures53', 'allSURFFeatures54', 'allSURFFeatures55', 'allSURFFeatures56', 'allSURFFeatures57', 'allSURFFeatures58', 'allSURFFeatures59', 'allSURFFeatures60', 'allSURFFeatures61', 'allSURFFeatures62', 'allSURFFeatures63', 'allSURFFeatures64', 'allSURFFeatures65', 'allSURFFeatures66', 'allSURFFeatures67', 'allSURFFeatures68', 'allSURFFeatures69', 'allSURFFeatures70', 'allSURFFeatures71', 'allSURFFeatures72', 'allSURFFeatures73', 'allSURFFeatures74', 'allSURFFeatures75', 'allSURFFeatures76', 'allSURFFeatures77', 'allSURFFeatures78', 'allSURFFeatures79', 'allSURFFeatures80', 'allSURFFeatures81', 'allSURFFeatures82', 'allSURFFeatures83', 'allSURFFeatures84', 'allSURFFeatures85', 'allSURFFeatures86', 'allSURFFeatures87', 'allSURFFeatures88', 'allSURFFeatures89', 'allSURFFeatures90', 'allSURFFeatures91', 'allSURFFeatures92', 'allSURFFeatures93', 'allSURFFeatures94', 'allSURFFeatures95', 'allSURFFeatures96', 'allSURFFeatures97', 'allSURFFeatures98', 'allSURFFeatures99', 'allSURFFeatures100', 'allSURFFeatures101', 'allSURFFeatures102', 'allSURFFeatures103', 'allSURFFeatures104', 'allSURFFeatures105', 'allSURFFeatures106', 'allSURFFeatures107', 'allSURFFeatures108', 'allSURFFeatures109', 'allSURFFeatures110', 'allSURFFeatures111', 'allSURFFeatures112', 'allSURFFeatures113', 'allSURFFeatures114', 'allSURFFeatures115', 'allSURFFeatures116', 'allSURFFeatures117', 'allSURFFeatures118', 'allSURFFeatures119', 'allSURFFeatures120', 'allSURFFeatures121', 'allSURFFeatures122', 'allSURFFeatures123', 'allSURFFeatures124', 'allSURFFeatures125', 'allSURFFeatures126', 'allSURFFeatures127', 'allSURFFeatures128', 'allSURFFeatures129', 'allSURFFeatures130', 'allSURFFeatures131', 'allSURFFeatures132', 'allSURFFeatures133', 'allSURFFeatures134', 'allSURFFeatures135', 'allSURFFeatures136', 'allSURFFeatures137', 'allSURFFeatures138', 'allSURFFeatures139', 'allSURFFeatures140', 'allSURFFeatures141', 'allSURFFeatures142', 'allSURFFeatures143', 'allSURFFeatures144', 'allSURFFeatures145', 'allSURFFeatures146', 'allSURFFeatures147', 'allSURFFeatures148', 'allSURFFeatures149', 'allSURFFeatures150', 'allSURFFeatures151', 'allSURFFeatures152', 'allSURFFeatures153', 'allSURFFeatures154', 'allSURFFeatures155', 'allSURFFeatures156', 'allSURFFeatures157', 'allSURFFeatures158', 'allSURFFeatures159', 'allSURFFeatures160', 'allSURFFeatures161', 'allSURFFeatures162', 'allSURFFeatures163', 'allSURFFeatures164', 'allSURFFeatures165', 'allSURFFeatures166', 'allSURFFeatures167', 'allSURFFeatures168', 'allSURFFeatures169', 'allSURFFeatures170', 'allSURFFeatures171', 'allSURFFeatures172', 'allSURFFeatures173', 'allSURFFeatures174', 'allSURFFeatures175', 'allSURFFeatures176', 'allSURFFeatures177', 'allSURFFeatures178', 'allSURFFeatures179', 'allSURFFeatures180', 'allSURFFeatures181', 'allSURFFeatures182', 'allSURFFeatures183', 'allSURFFeatures184', 'allSURFFeatures185', 'allSURFFeatures186', 'allSURFFeatures187', 'allSURFFeatures188', 'allSURFFeatures189', 'allSURFFeatures190', 'allSURFFeatures191', 'allSURFFeatures192', 'allSURFFeatures193', 'allSURFFeatures194', 'allSURFFeatures195', 'allSURFFeatures196', 'allSURFFeatures197', 'allSURFFeatures198', 'allSURFFeatures199', 'allSURFFeatures200', 'allSURFFeatures201', 'allSURFFeatures202', 'allSURFFeatures203', 'allSURFFeatures204', 'allSURFFeatures205', 'allSURFFeatures206', 'allSURFFeatures207', 'allSURFFeatures208', 'allSURFFeatures209', 'allSURFFeatures210', 'allSURFFeatures211', 'allSURFFeatures212', 'allSURFFeatures213', 'allSURFFeatures214', 'allSURFFeatures215', 'allSURFFeatures216', 'allSURFFeatures217', 'allSURFFeatures218', 'allSURFFeatures219', 'allSURFFeatures220', 'allSURFFeatures221', 'allSURFFeatures222', 'allSURFFeatures223', 'allSURFFeatures224', 'allSURFFeatures225', 'allSURFFeatures226', 'allSURFFeatures227', 'allSURFFeatures228', 'allSURFFeatures229', 'allSURFFeatures230', 'allSURFFeatures231', 'allSURFFeatures232', 'allSURFFeatures233', 'allSURFFeatures234', 'allSURFFeatures235', 'allSURFFeatures236', 'allSURFFeatures237', 'allSURFFeatures238', 'allSURFFeatures239', 'allSURFFeatures240', 'allSURFFeatures241', 'allSURFFeatures242', 'allSURFFeatures243', 'allSURFFeatures244', 'allSURFFeatures245', 'allSURFFeatures246', 'allSURFFeatures247', 'allSURFFeatures248', 'allSURFFeatures249', 'allSURFFeatures250', 'allSURFFeatures251', 'allSURFFeatures252', 'allSURFFeatures253', 'allSURFFeatures254', 'allSURFFeatures255', 'allSURFFeatures256', 'allSURFFeatures257', 'allSURFFeatures258', 'allSURFFeatures259', 'allSURFFeatures260', 'allSURFFeatures261', 'allSURFFeatures262', 'allSURFFeatures263', 'allSURFFeatures264', 'allSURFFeatures265', 'allSURFFeatures266', 'allSURFFeatures267', 'allSURFFeatures268', 'allSURFFeatures269', 'allSURFFeatures270', 'allSURFFeatures271', 'allSURFFeatures272', 'allSURFFeatures273', 'allSURFFeatures274', 'allSURFFeatures275', 'allSURFFeatures276', 'allSURFFeatures277', 'allSURFFeatures278', 'allSURFFeatures279', 'allSURFFeatures280', 'allSURFFeatures281', 'allSURFFeatures282', 'allSURFFeatures283', 'allSURFFeatures284', 'allSURFFeatures285', 'allSURFFeatures286', 'allSURFFeatures287', 'allSURFFeatures288', 'allSURFFeatures289', 'allSURFFeatures290', 'allSURFFeatures291', 'allSURFFeatures292', 'allSURFFeatures293', 'allSURFFeatures294', 'allSURFFeatures295', 'allSURFFeatures296', 'allSURFFeatures297', 'allSURFFeatures298', 'allSURFFeatures299', 'allSURFFeatures300', 'allSURFFeatures301', 'allSURFFeatures302', 'allSURFFeatures303', 'allSURFFeatures304', 'allSURFFeatures305', 'allSURFFeatures306', 'allSURFFeatures307', 'allSURFFeatures308', 'allSURFFeatures309', 'allSURFFeatures310', 'allSURFFeatures311', 'allSURFFeatures312', 'allSURFFeatures313', 'allSURFFeatures314', 'allSURFFeatures315', 'allSURFFeatures316', 'allSURFFeatures317', 'allSURFFeatures318', 'allSURFFeatures319', 'allSURFFeatures320', 'allSURFFeatures321', 'allSURFFeatures322', 'allSURFFeatures323', 'allSURFFeatures324', 'allSURFFeatures325', 'allSURFFeatures326', 'allSURFFeatures327', 'allSURFFeatures328', 'allSURFFeatures329', 'allSURFFeatures330', 'allSURFFeatures331', 'allSURFFeatures332', 'allSURFFeatures333', 'allSURFFeatures334', 'allSURFFeatures335', 'allSURFFeatures336', 'allSURFFeatures337', 'allSURFFeatures338', 'allSURFFeatures339', 'allSURFFeatures340', 'allSURFFeatures341', 'allSURFFeatures342', 'allSURFFeatures343', 'allSURFFeatures344', 'allSURFFeatures345', 'allSURFFeatures346', 'allSURFFeatures347', 'allSURFFeatures348', 'allSURFFeatures349', 'allSURFFeatures350', 'allSURFFeatures351', 'allSURFFeatures352', 'allSURFFeatures353', 'allSURFFeatures354', 'allSURFFeatures355', 'allSURFFeatures356', 'allSURFFeatures357', 'allSURFFeatures358', 'allSURFFeatures359', 'allSURFFeatures360', 'allSURFFeatures361', 'allSURFFeatures362', 'allSURFFeatures363', 'allSURFFeatures364', 'allSURFFeatures365', 'allSURFFeatures366', 'allSURFFeatures367', 'allSURFFeatures368', 'allSURFFeatures369', 'allSURFFeatures370', 'allSURFFeatures371', 'allSURFFeatures372', 'allSURFFeatures373', 'allSURFFeatures374', 'allSURFFeatures375', 'allSURFFeatures376', 'allSURFFeatures377', 'allSURFFeatures378', 'allSURFFeatures379', 'allSURFFeatures380', 'allSURFFeatures381', 'allSURFFeatures382', 'allSURFFeatures383', 'allSURFFeatures384', 'allSURFFeatures385', 'allSURFFeatures386', 'allSURFFeatures387', 'allSURFFeatures388', 'allSURFFeatures389', 'allSURFFeatures390', 'allSURFFeatures391', 'allSURFFeatures392', 'allSURFFeatures393', 'allSURFFeatures394', 'allSURFFeatures395', 'allSURFFeatures396', 'allSURFFeatures397', 'allSURFFeatures398', 'allSURFFeatures399', 'allSURFFeatures400', 'allSURFFeatures401', 'allSURFFeatures402', 'allSURFFeatures403', 'allSURFFeatures404', 'allSURFFeatures405', 'allSURFFeatures406', 'allSURFFeatures407', 'allSURFFeatures408', 'allSURFFeatures409', 'allSURFFeatures410', 'allSURFFeatures411', 'allSURFFeatures412', 'allSURFFeatures413', 'allSURFFeatures414', 'allSURFFeatures415', 'allSURFFeatures416', 'allSURFFeatures417', 'allSURFFeatures418', 'allSURFFeatures419', 'allSURFFeatures420', 'allSURFFeatures421', 'allSURFFeatures422', 'allSURFFeatures423', 'allSURFFeatures424', 'allSURFFeatures425', 'allSURFFeatures426', 'allSURFFeatures427', 'allSURFFeatures428', 'allSURFFeatures429', 'allSURFFeatures430', 'allSURFFeatures431', 'allSURFFeatures432', 'allSURFFeatures433', 'allSURFFeatures434', 'allSURFFeatures435', 'allSURFFeatures436', 'allSURFFeatures437', 'allSURFFeatures438', 'allSURFFeatures439', 'allSURFFeatures440', 'allSURFFeatures441', 'allSURFFeatures442', 'allSURFFeatures443', 'allSURFFeatures444', 'allSURFFeatures445', 'allSURFFeatures446', 'allSURFFeatures447', 'allSURFFeatures448', 'allSURFFeatures449', 'allSURFFeatures450', 'allSURFFeatures451', 'allSURFFeatures452', 'allSURFFeatures453', 'allSURFFeatures454', 'allSURFFeatures455', 'allSURFFeatures456', 'allSURFFeatures457', 'allSURFFeatures458', 'allSURFFeatures459', 'allSURFFeatures460', 'allSURFFeatures461', 'allSURFFeatures462', 'allSURFFeatures463', 'allSURFFeatures464', 'allSURFFeatures465', 'allSURFFeatures466', 'allSURFFeatures467', 'allSURFFeatures468', 'allSURFFeatures469', 'allSURFFeatures470', 'allSURFFeatures471', 'allSURFFeatures472', 'allSURFFeatures473', 'allSURFFeatures474', 'allSURFFeatures475', 'allSURFFeatures476', 'allSURFFeatures477', 'allSURFFeatures478', 'allSURFFeatures479', 'allSURFFeatures480', 'allSURFFeatures481', 'allSURFFeatures482', 'allSURFFeatures483', 'allSURFFeatures484', 'allSURFFeatures485', 'allSURFFeatures486', 'allSURFFeatures487', 'allSURFFeatures488', 'allSURFFeatures489', 'allSURFFeatures490', 'allSURFFeatures491', 'allSURFFeatures492', 'allSURFFeatures493', 'allSURFFeatures494', 'allSURFFeatures495', 'allSURFFeatures496', 'allSURFFeatures497', 'allSURFFeatures498', 'allSURFFeatures499', 'allSURFFeatures500', 'allSURFFeatures501', 'allSURFFeatures502', 'allSURFFeatures503', 'allSURFFeatures504', 'allSURFFeatures505', 'allSURFFeatures506', 'allSURFFeatures507', 'allSURFFeatures508', 'allSURFFeatures509', 'allSURFFeatures510', 'allSURFFeatures511', 'allSURFFeatures512', 'allSURFFeatures513', 'allSURFFeatures514', 'allSURFFeatures515', 'allSURFFeatures516', 'allSURFFeatures517', 'allSURFFeatures518', 'allSURFFeatures519', 'allSURFFeatures520', 'allSURFFeatures521', 'allSURFFeatures522', 'allSURFFeatures523', 'allSURFFeatures524', 'allSURFFeatures525', 'allSURFFeatures526', 'allSURFFeatures527', 'allSURFFeatures528', 'allSURFFeatures529', 'allSURFFeatures530', 'allSURFFeatures531', 'allSURFFeatures532', 'allSURFFeatures533', 'allSURFFeatures534', 'allSURFFeatures535', 'allSURFFeatures536', 'allSURFFeatures537', 'allSURFFeatures538', 'allSURFFeatures539', 'allSURFFeatures540', 'allSURFFeatures541', 'allSURFFeatures542', 'allSURFFeatures543', 'allSURFFeatures544', 'allSURFFeatures545', 'allSURFFeatures546', 'allSURFFeatures547', 'allSURFFeatures548', 'allSURFFeatures549', 'allSURFFeatures550', 'allSURFFeatures551', 'allSURFFeatures552', 'allSURFFeatures553', 'allSURFFeatures554', 'allSURFFeatures555', 'allSURFFeatures556', 'allSURFFeatures557', 'allSURFFeatures558', 'allSURFFeatures559', 'allSURFFeatures560', 'allSURFFeatures561', 'allSURFFeatures562', 'allSURFFeatures563', 'allSURFFeatures564', 'allSURFFeatures565', 'allSURFFeatures566', 'allSURFFeatures567', 'allSURFFeatures568', 'allSURFFeatures569', 'allSURFFeatures570', 'allSURFFeatures571', 'allSURFFeatures572', 'allSURFFeatures573', 'allSURFFeatures574', 'allSURFFeatures575', 'allSURFFeatures576', 'allSURFFeatures577', 'allSURFFeatures578', 'allSURFFeatures579', 'allSURFFeatures580', 'allSURFFeatures581', 'allSURFFeatures582', 'allSURFFeatures583', 'allSURFFeatures584', 'allSURFFeatures585', 'allSURFFeatures586', 'allSURFFeatures587', 'allSURFFeatures588', 'allSURFFeatures589', 'allSURFFeatures590', 'allSURFFeatures591', 'allSURFFeatures592', 'allSURFFeatures593', 'allSURFFeatures594', 'allSURFFeatures595', 'allSURFFeatures596', 'allSURFFeatures597', 'allSURFFeatures598', 'allSURFFeatures599', 'allSURFFeatures600', 'allSURFFeatures601', 'allSURFFeatures602', 'allSURFFeatures603', 'allSURFFeatures604', 'allSURFFeatures605', 'allSURFFeatures606', 'allSURFFeatures607', 'allSURFFeatures608', 'allSURFFeatures609', 'allSURFFeatures610', 'allSURFFeatures611', 'allSURFFeatures612', 'allSURFFeatures613', 'allSURFFeatures614', 'allSURFFeatures615', 'allSURFFeatures616', 'allSURFFeatures617', 'allSURFFeatures618', 'allSURFFeatures619', 'allSURFFeatures620', 'allSURFFeatures621', 'allSURFFeatures622', 'allSURFFeatures623', 'allSURFFeatures624', 'allSURFFeatures625', 'allSURFFeatures626', 'allSURFFeatures627', 'allSURFFeatures628', 'allSURFFeatures629', 'allSURFFeatures630', 'allSURFFeatures631', 'allSURFFeatures632', 'allSURFFeatures633', 'allSURFFeatures634', 'allSURFFeatures635', 'allSURFFeatures636', 'allSURFFeatures637', 'allSURFFeatures638', 'allSURFFeatures639', 'allSURFFeatures640', 'allSURFFeatures641', 'allSURFFeatures642', 'allSURFFeatures643', 'allSURFFeatures644', 'allSURFFeatures645', 'allSURFFeatures646', 'allSURFFeatures647', 'allSURFFeatures648', 'allSURFFeatures649', 'allSURFFeatures650', 'allSURFFeatures651', 'allSURFFeatures652', 'allSURFFeatures653', 'allSURFFeatures654', 'allSURFFeatures655', 'allSURFFeatures656', 'allSURFFeatures657', 'allSURFFeatures658', 'allSURFFeatures659', 'allSURFFeatures660', 'allSURFFeatures661', 'allSURFFeatures662', 'allSURFFeatures663', 'allSURFFeatures664', 'allSURFFeatures665', 'allSURFFeatures666', 'allSURFFeatures667', 'allSURFFeatures668', 'allSURFFeatures669', 'allSURFFeatures670', 'allSURFFeatures671', 'allSURFFeatures672', 'allSURFFeatures673', 'allSURFFeatures674', 'allSURFFeatures675', 'allSURFFeatures676', 'allSURFFeatures677', 'allSURFFeatures678', 'allSURFFeatures679', 'allSURFFeatures680', 'allSURFFeatures681', 'allSURFFeatures682', 'allSURFFeatures683', 'allSURFFeatures684', 'allSURFFeatures685', 'allSURFFeatures686', 'allSURFFeatures687', 'allSURFFeatures688', 'allSURFFeatures689', 'allSURFFeatures690', 'allSURFFeatures691', 'allSURFFeatures692', 'allSURFFeatures693', 'allSURFFeatures694', 'allSURFFeatures695', 'allSURFFeatures696', 'allSURFFeatures697', 'allSURFFeatures698', 'allSURFFeatures699', 'allSURFFeatures700', 'allSURFFeatures701', 'allSURFFeatures702', 'allSURFFeatures703', 'allSURFFeatures704', 'allSURFFeatures705', 'allSURFFeatures706', 'allSURFFeatures707', 'allSURFFeatures708', 'allSURFFeatures709', 'allSURFFeatures710', 'allSURFFeatures711', 'allSURFFeatures712', 'allSURFFeatures713', 'allSURFFeatures714', 'allSURFFeatures715', 'allSURFFeatures716', 'allSURFFeatures717', 'allSURFFeatures718', 'allSURFFeatures719', 'allSURFFeatures720', 'allSURFFeatures721', 'allSURFFeatures722', 'allSURFFeatures723', 'allSURFFeatures724', 'allSURFFeatures725', 'allSURFFeatures726', 'allSURFFeatures727', 'allSURFFeatures728', 'allSURFFeatures729', 'allSURFFeatures730', 'allSURFFeatures731', 'allSURFFeatures732', 'allSURFFeatures733', 'allSURFFeatures734', 'allSURFFeatures735', 'allSURFFeatures736', 'allSURFFeatures737', 'allSURFFeatures738', 'allSURFFeatures739', 'allSURFFeatures740', 'allSURFFeatures741', 'allSURFFeatures742', 'allSURFFeatures743', 'allSURFFeatures744', 'allSURFFeatures745', 'allSURFFeatures746', 'allSURFFeatures747', 'allSURFFeatures748', 'allSURFFeatures749', 'allSURFFeatures750', 'allSURFFeatures751', 'allSURFFeatures752', 'allSURFFeatures753', 'allSURFFeatures754', 'allSURFFeatures755', 'allSURFFeatures756', 'allSURFFeatures757', 'allSURFFeatures758', 'allSURFFeatures759', 'allSURFFeatures760', 'allSURFFeatures761', 'allSURFFeatures762', 'allSURFFeatures763', 'allSURFFeatures764', 'allSURFFeatures765', 'allSURFFeatures766', 'allSURFFeatures767', 'allSURFFeatures768', 'allSURFFeatures769', 'allSURFFeatures770', 'allSURFFeatures771', 'allSURFFeatures772', 'allSURFFeatures773', 'allSURFFeatures774', 'allSURFFeatures775', 'allSURFFeatures776', 'allSURFFeatures777', 'allSURFFeatures778', 'allSURFFeatures779', 'allSURFFeatures780', 'allSURFFeatures781', 'allSURFFeatures782', 'allSURFFeatures783', 'allSURFFeatures784', 'allSURFFeatures785', 'allSURFFeatures786', 'allSURFFeatures787', 'allSURFFeatures788', 'allSURFFeatures789', 'allSURFFeatures790', 'allSURFFeatures791', 'allSURFFeatures792', 'allSURFFeatures793', 'allSURFFeatures794', 'allSURFFeatures795', 'allSURFFeatures796', 'allSURFFeatures797', 'allSURFFeatures798', 'allSURFFeatures799', 'allSURFFeatures800', 'allSURFFeatures801', 'allSURFFeatures802', 'allSURFFeatures803', 'allSURFFeatures804', 'allSURFFeatures805', 'allSURFFeatures806', 'allSURFFeatures807', 'allSURFFeatures808', 'allSURFFeatures809', 'allSURFFeatures810', 'allSURFFeatures811', 'allSURFFeatures812', 'allSURFFeatures813', 'allSURFFeatures814', 'allSURFFeatures815', 'allSURFFeatures816', 'allSURFFeatures817', 'allSURFFeatures818', 'allSURFFeatures819', 'allSURFFeatures820', 'allSURFFeatures821', 'allSURFFeatures822', 'allSURFFeatures823', 'allSURFFeatures824', 'allSURFFeatures825', 'allSURFFeatures826', 'allSURFFeatures827', 'allSURFFeatures828', 'allSURFFeatures829', 'allSURFFeatures830', 'allSURFFeatures831', 'allSURFFeatures832', 'allSURFFeatures833', 'allSURFFeatures834', 'allSURFFeatures835', 'allSURFFeatures836', 'allSURFFeatures837', 'allSURFFeatures838', 'allSURFFeatures839', 'allSURFFeatures840', 'allSURFFeatures841', 'allSURFFeatures842', 'allSURFFeatures843', 'allSURFFeatures844', 'allSURFFeatures845', 'allSURFFeatures846', 'allSURFFeatures847', 'allSURFFeatures848', 'allSURFFeatures849', 'allSURFFeatures850', 'allSURFFeatures851', 'allSURFFeatures852', 'allSURFFeatures853', 'allSURFFeatures854', 'allSURFFeatures855', 'allSURFFeatures856', 'allSURFFeatures857', 'allSURFFeatures858', 'allSURFFeatures859', 'allSURFFeatures860', 'allSURFFeatures861', 'allSURFFeatures862', 'allSURFFeatures863', 'allSURFFeatures864', 'allSURFFeatures865', 'allSURFFeatures866', 'allSURFFeatures867', 'allSURFFeatures868', 'allSURFFeatures869', 'allSURFFeatures870', 'allSURFFeatures871', 'allSURFFeatures872', 'allSURFFeatures873', 'allSURFFeatures874', 'allSURFFeatures875', 'allSURFFeatures876', 'allSURFFeatures877', 'allSURFFeatures878', 'allSURFFeatures879', 'allSURFFeatures880', 'allSURFFeatures881', 'allSURFFeatures882', 'allSURFFeatures883', 'allSURFFeatures884', 'allSURFFeatures885', 'allSURFFeatures886', 'allSURFFeatures887', 'allSURFFeatures888', 'allSURFFeatures889', 'allSURFFeatures890', 'allSURFFeatures891', 'allSURFFeatures892', 'allSURFFeatures893', 'allSURFFeatures894', 'allSURFFeatures895', 'allSURFFeatures896', 'allSURFFeatures897', 'allSURFFeatures898', 'allSURFFeatures899', 'allSURFFeatures900', 'allSURFFeatures901', 'allSURFFeatures902', 'allSURFFeatures903', 'allSURFFeatures904', 'allSURFFeatures905', 'allSURFFeatures906', 'allSURFFeatures907', 'allSURFFeatures908', 'allSURFFeatures909', 'allSURFFeatures910', 'allSURFFeatures911', 'allSURFFeatures912', 'allSURFFeatures913', 'allSURFFeatures914', 'allSURFFeatures915', 'allSURFFeatures916', 'allSURFFeatures917', 'allSURFFeatures918', 'allSURFFeatures919', 'allSURFFeatures920', 'allSURFFeatures921', 'allSURFFeatures922', 'allSURFFeatures923', 'allSURFFeatures924', 'allSURFFeatures925', 'allSURFFeatures926', 'allSURFFeatures927', 'allSURFFeatures928', 'allSURFFeatures929', 'allSURFFeatures930', 'allSURFFeatures931', 'allSURFFeatures932', 'allSURFFeatures933', 'allSURFFeatures934', 'allSURFFeatures935', 'allSURFFeatures936', 'allSURFFeatures937', 'allSURFFeatures938', 'allSURFFeatures939', 'allSURFFeatures940', 'allSURFFeatures941', 'allSURFFeatures942', 'allSURFFeatures943', 'allSURFFeatures944', 'allSURFFeatures945', 'allSURFFeatures946', 'allSURFFeatures947', 'allSURFFeatures948', 'allSURFFeatures949', 'allSURFFeatures950', 'allSURFFeatures951', 'allSURFFeatures952', 'allSURFFeatures953', 'allSURFFeatures954', 'allSURFFeatures955', 'allSURFFeatures956', 'allSURFFeatures957', 'allSURFFeatures958', 'allSURFFeatures959', 'allSURFFeatures960', 'allSURFFeatures961', 'allSURFFeatures962', 'allSURFFeatures963', 'allSURFFeatures964', 'allSURFFeatures965', 'allSURFFeatures966', 'allSURFFeatures967', 'allSURFFeatures968', 'allSURFFeatures969', 'allSURFFeatures970', 'allSURFFeatures971', 'allSURFFeatures972', 'allSURFFeatures973', 'allSURFFeatures974', 'allSURFFeatures975', 'allSURFFeatures976', 'allSURFFeatures977', 'allSURFFeatures978', 'allSURFFeatures979', 'allSURFFeatures980', 'allSURFFeatures981', 'allSURFFeatures982', 'allSURFFeatures983', 'allSURFFeatures984', 'allSURFFeatures985', 'allSURFFeatures986', 'allSURFFeatures987', 'allSURFFeatures988', 'allSURFFeatures989', 'allSURFFeatures990', 'allSURFFeatures991', 'allSURFFeatures992', 'allSURFFeatures993', 'allSURFFeatures994', 'allSURFFeatures995', 'allSURFFeatures996', 'allSURFFeatures997', 'allSURFFeatures998', 'allSURFFeatures999', 'allSURFFeatures1000', 'allSURFFeatures1001', 'allSURFFeatures1002', 'allSURFFeatures1003', 'allSURFFeatures1004', 'allSURFFeatures1005', 'allSURFFeatures1006', 'allSURFFeatures1007', 'allSURFFeatures1008', 'allSURFFeatures1009', 'allSURFFeatures1010', 'allSURFFeatures1011', 'allSURFFeatures1012', 'allSURFFeatures1013', 'allSURFFeatures1014', 'allSURFFeatures1015', 'allSURFFeatures1016', 'allSURFFeatures1017', 'allSURFFeatures1018', 'allSURFFeatures1019', 'allSURFFeatures1020', 'allSURFFeatures1021', 'allSURFFeatures1022', 'allSURFFeatures1023', 'allSURFFeatures1024'};
predictors = inputTable(:, predictorNames);
response = inputTable.objectType;
% Train a classifier
% This code specifies all the classifier options and trains the classifier.
template = templateSVM(...
'KernelFunction', 'polynomial', ...
'PolynomialOrder', 2, ...
'KernelScale', 'auto', ...
'BoxConstraint', 1, ...
'Standardize', true);
classificationSVM = fitcecoc(...
predictors, ...
response, ...
'Learners', template, ...
'Coding', 'onevsone', ...
'ClassNames', categorical({'BallHighCut'; 'CubeHighCut'; 'GlassHighCut'}));
trainedClassifier.ClassificationSVM = classificationSVM;
extractPredictorsFromTableFcn = @(t) t(:, predictorNames);
predictorExtractionFcn = @(x) extractPredictorsFromTableFcn(x);
svmPredictFcn = @(x) predict(classificationSVM, x);
trainedClassifier.predictFcn = @(x) svmPredictFcn(predictorExtractionFcn(x));
inputTable = trainingData;
% Extract predictors and response
% This code processes the data into the right shape for training the
% classifier.
predictorNames = {'allSURFFeatures1', 'allSURFFeatures2', 'allSURFFeatures3', 'allSURFFeatures4', 'allSURFFeatures5', 'allSURFFeatures6', 'allSURFFeatures7', 'allSURFFeatures8', 'allSURFFeatures9', 'allSURFFeatures10', 'allSURFFeatures11', 'allSURFFeatures12', 'allSURFFeatures13', 'allSURFFeatures14', 'allSURFFeatures15', 'allSURFFeatures16', 'allSURFFeatures17', 'allSURFFeatures18', 'allSURFFeatures19', 'allSURFFeatures20', 'allSURFFeatures21', 'allSURFFeatures22', 'allSURFFeatures23', 'allSURFFeatures24', 'allSURFFeatures25', 'allSURFFeatures26', 'allSURFFeatures27', 'allSURFFeatures28', 'allSURFFeatures29', 'allSURFFeatures30', 'allSURFFeatures31', 'allSURFFeatures32', 'allSURFFeatures33', 'allSURFFeatures34', 'allSURFFeatures35', 'allSURFFeatures36', 'allSURFFeatures37', 'allSURFFeatures38', 'allSURFFeatures39', 'allSURFFeatures40', 'allSURFFeatures41', 'allSURFFeatures42', 'allSURFFeatures43', 'allSURFFeatures44', 'allSURFFeatures45', 'allSURFFeatures46', 'allSURFFeatures47', 'allSURFFeatures48', 'allSURFFeatures49', 'allSURFFeatures50', 'allSURFFeatures51', 'allSURFFeatures52', 'allSURFFeatures53', 'allSURFFeatures54', 'allSURFFeatures55', 'allSURFFeatures56', 'allSURFFeatures57', 'allSURFFeatures58', 'allSURFFeatures59', 'allSURFFeatures60', 'allSURFFeatures61', 'allSURFFeatures62', 'allSURFFeatures63', 'allSURFFeatures64', 'allSURFFeatures65', 'allSURFFeatures66', 'allSURFFeatures67', 'allSURFFeatures68', 'allSURFFeatures69', 'allSURFFeatures70', 'allSURFFeatures71', 'allSURFFeatures72', 'allSURFFeatures73', 'allSURFFeatures74', 'allSURFFeatures75', 'allSURFFeatures76', 'allSURFFeatures77', 'allSURFFeatures78', 'allSURFFeatures79', 'allSURFFeatures80', 'allSURFFeatures81', 'allSURFFeatures82', 'allSURFFeatures83', 'allSURFFeatures84', 'allSURFFeatures85', 'allSURFFeatures86', 'allSURFFeatures87', 'allSURFFeatures88', 'allSURFFeatures89', 'allSURFFeatures90', 'allSURFFeatures91', 'allSURFFeatures92', 'allSURFFeatures93', 'allSURFFeatures94', 'allSURFFeatures95', 'allSURFFeatures96', 'allSURFFeatures97', 'allSURFFeatures98', 'allSURFFeatures99', 'allSURFFeatures100', 'allSURFFeatures101', 'allSURFFeatures102', 'allSURFFeatures103', 'allSURFFeatures104', 'allSURFFeatures105', 'allSURFFeatures106', 'allSURFFeatures107', 'allSURFFeatures108', 'allSURFFeatures109', 'allSURFFeatures110', 'allSURFFeatures111', 'allSURFFeatures112', 'allSURFFeatures113', 'allSURFFeatures114', 'allSURFFeatures115', 'allSURFFeatures116', 'allSURFFeatures117', 'allSURFFeatures118', 'allSURFFeatures119', 'allSURFFeatures120', 'allSURFFeatures121', 'allSURFFeatures122', 'allSURFFeatures123', 'allSURFFeatures124', 'allSURFFeatures125', 'allSURFFeatures126', 'allSURFFeatures127', 'allSURFFeatures128', 'allSURFFeatures129', 'allSURFFeatures130', 'allSURFFeatures131', 'allSURFFeatures132', 'allSURFFeatures133', 'allSURFFeatures134', 'allSURFFeatures135', 'allSURFFeatures136', 'allSURFFeatures137', 'allSURFFeatures138', 'allSURFFeatures139', 'allSURFFeatures140', 'allSURFFeatures141', 'allSURFFeatures142', 'allSURFFeatures143', 'allSURFFeatures144', 'allSURFFeatures145', 'allSURFFeatures146', 'allSURFFeatures147', 'allSURFFeatures148', 'allSURFFeatures149', 'allSURFFeatures150', 'allSURFFeatures151', 'allSURFFeatures152', 'allSURFFeatures153', 'allSURFFeatures154', 'allSURFFeatures155', 'allSURFFeatures156', 'allSURFFeatures157', 'allSURFFeatures158', 'allSURFFeatures159', 'allSURFFeatures160', 'allSURFFeatures161', 'allSURFFeatures162', 'allSURFFeatures163', 'allSURFFeatures164', 'allSURFFeatures165', 'allSURFFeatures166', 'allSURFFeatures167', 'allSURFFeatures168', 'allSURFFeatures169', 'allSURFFeatures170', 'allSURFFeatures171', 'allSURFFeatures172', 'allSURFFeatures173', 'allSURFFeatures174', 'allSURFFeatures175', 'allSURFFeatures176', 'allSURFFeatures177', 'allSURFFeatures178', 'allSURFFeatures179', 'allSURFFeatures180', 'allSURFFeatures181', 'allSURFFeatures182', 'allSURFFeatures183', 'allSURFFeatures184', 'allSURFFeatures185', 'allSURFFeatures186', 'allSURFFeatures187', 'allSURFFeatures188', 'allSURFFeatures189', 'allSURFFeatures190', 'allSURFFeatures191', 'allSURFFeatures192', 'allSURFFeatures193', 'allSURFFeatures194', 'allSURFFeatures195', 'allSURFFeatures196', 'allSURFFeatures197', 'allSURFFeatures198', 'allSURFFeatures199', 'allSURFFeatures200', 'allSURFFeatures201', 'allSURFFeatures202', 'allSURFFeatures203', 'allSURFFeatures204', 'allSURFFeatures205', 'allSURFFeatures206', 'allSURFFeatures207', 'allSURFFeatures208', 'allSURFFeatures209', 'allSURFFeatures210', 'allSURFFeatures211', 'allSURFFeatures212', 'allSURFFeatures213', 'allSURFFeatures214', 'allSURFFeatures215', 'allSURFFeatures216', 'allSURFFeatures217', 'allSURFFeatures218', 'allSURFFeatures219', 'allSURFFeatures220', 'allSURFFeatures221', 'allSURFFeatures222', 'allSURFFeatures223', 'allSURFFeatures224', 'allSURFFeatures225', 'allSURFFeatures226', 'allSURFFeatures227', 'allSURFFeatures228', 'allSURFFeatures229', 'allSURFFeatures230', 'allSURFFeatures231', 'allSURFFeatures232', 'allSURFFeatures233', 'allSURFFeatures234', 'allSURFFeatures235', 'allSURFFeatures236', 'allSURFFeatures237', 'allSURFFeatures238', 'allSURFFeatures239', 'allSURFFeatures240', 'allSURFFeatures241', 'allSURFFeatures242', 'allSURFFeatures243', 'allSURFFeatures244', 'allSURFFeatures245', 'allSURFFeatures246', 'allSURFFeatures247', 'allSURFFeatures248', 'allSURFFeatures249', 'allSURFFeatures250', 'allSURFFeatures251', 'allSURFFeatures252', 'allSURFFeatures253', 'allSURFFeatures254', 'allSURFFeatures255', 'allSURFFeatures256', 'allSURFFeatures257', 'allSURFFeatures258', 'allSURFFeatures259', 'allSURFFeatures260', 'allSURFFeatures261', 'allSURFFeatures262', 'allSURFFeatures263', 'allSURFFeatures264', 'allSURFFeatures265', 'allSURFFeatures266', 'allSURFFeatures267', 'allSURFFeatures268', 'allSURFFeatures269', 'allSURFFeatures270', 'allSURFFeatures271', 'allSURFFeatures272', 'allSURFFeatures273', 'allSURFFeatures274', 'allSURFFeatures275', 'allSURFFeatures276', 'allSURFFeatures277', 'allSURFFeatures278', 'allSURFFeatures279', 'allSURFFeatures280', 'allSURFFeatures281', 'allSURFFeatures282', 'allSURFFeatures283', 'allSURFFeatures284', 'allSURFFeatures285', 'allSURFFeatures286', 'allSURFFeatures287', 'allSURFFeatures288', 'allSURFFeatures289', 'allSURFFeatures290', 'allSURFFeatures291', 'allSURFFeatures292', 'allSURFFeatures293', 'allSURFFeatures294', 'allSURFFeatures295', 'allSURFFeatures296', 'allSURFFeatures297', 'allSURFFeatures298', 'allSURFFeatures299', 'allSURFFeatures300', 'allSURFFeatures301', 'allSURFFeatures302', 'allSURFFeatures303', 'allSURFFeatures304', 'allSURFFeatures305', 'allSURFFeatures306', 'allSURFFeatures307', 'allSURFFeatures308', 'allSURFFeatures309', 'allSURFFeatures310', 'allSURFFeatures311', 'allSURFFeatures312', 'allSURFFeatures313', 'allSURFFeatures314', 'allSURFFeatures315', 'allSURFFeatures316', 'allSURFFeatures317', 'allSURFFeatures318', 'allSURFFeatures319', 'allSURFFeatures320', 'allSURFFeatures321', 'allSURFFeatures322', 'allSURFFeatures323', 'allSURFFeatures324', 'allSURFFeatures325', 'allSURFFeatures326', 'allSURFFeatures327', 'allSURFFeatures328', 'allSURFFeatures329', 'allSURFFeatures330', 'allSURFFeatures331', 'allSURFFeatures332', 'allSURFFeatures333', 'allSURFFeatures334', 'allSURFFeatures335', 'allSURFFeatures336', 'allSURFFeatures337', 'allSURFFeatures338', 'allSURFFeatures339', 'allSURFFeatures340', 'allSURFFeatures341', 'allSURFFeatures342', 'allSURFFeatures343', 'allSURFFeatures344', 'allSURFFeatures345', 'allSURFFeatures346', 'allSURFFeatures347', 'allSURFFeatures348', 'allSURFFeatures349', 'allSURFFeatures350', 'allSURFFeatures351', 'allSURFFeatures352', 'allSURFFeatures353', 'allSURFFeatures354', 'allSURFFeatures355', 'allSURFFeatures356', 'allSURFFeatures357', 'allSURFFeatures358', 'allSURFFeatures359', 'allSURFFeatures360', 'allSURFFeatures361', 'allSURFFeatures362', 'allSURFFeatures363', 'allSURFFeatures364', 'allSURFFeatures365', 'allSURFFeatures366', 'allSURFFeatures367', 'allSURFFeatures368', 'allSURFFeatures369', 'allSURFFeatures370', 'allSURFFeatures371', 'allSURFFeatures372', 'allSURFFeatures373', 'allSURFFeatures374', 'allSURFFeatures375', 'allSURFFeatures376', 'allSURFFeatures377', 'allSURFFeatures378', 'allSURFFeatures379', 'allSURFFeatures380', 'allSURFFeatures381', 'allSURFFeatures382', 'allSURFFeatures383', 'allSURFFeatures384', 'allSURFFeatures385', 'allSURFFeatures386', 'allSURFFeatures387', 'allSURFFeatures388', 'allSURFFeatures389', 'allSURFFeatures390', 'allSURFFeatures391', 'allSURFFeatures392', 'allSURFFeatures393', 'allSURFFeatures394', 'allSURFFeatures395', 'allSURFFeatures396', 'allSURFFeatures397', 'allSURFFeatures398', 'allSURFFeatures399', 'allSURFFeatures400', 'allSURFFeatures401', 'allSURFFeatures402', 'allSURFFeatures403', 'allSURFFeatures404', 'allSURFFeatures405', 'allSURFFeatures406', 'allSURFFeatures407', 'allSURFFeatures408', 'allSURFFeatures409', 'allSURFFeatures410', 'allSURFFeatures411', 'allSURFFeatures412', 'allSURFFeatures413', 'allSURFFeatures414', 'allSURFFeatures415', 'allSURFFeatures416', 'allSURFFeatures417', 'allSURFFeatures418', 'allSURFFeatures419', 'allSURFFeatures420', 'allSURFFeatures421', 'allSURFFeatures422', 'allSURFFeatures423', 'allSURFFeatures424', 'allSURFFeatures425', 'allSURFFeatures426', 'allSURFFeatures427', 'allSURFFeatures428', 'allSURFFeatures429', 'allSURFFeatures430', 'allSURFFeatures431', 'allSURFFeatures432', 'allSURFFeatures433', 'allSURFFeatures434', 'allSURFFeatures435', 'allSURFFeatures436', 'allSURFFeatures437', 'allSURFFeatures438', 'allSURFFeatures439', 'allSURFFeatures440', 'allSURFFeatures441', 'allSURFFeatures442', 'allSURFFeatures443', 'allSURFFeatures444', 'allSURFFeatures445', 'allSURFFeatures446', 'allSURFFeatures447', 'allSURFFeatures448', 'allSURFFeatures449', 'allSURFFeatures450', 'allSURFFeatures451', 'allSURFFeatures452', 'allSURFFeatures453', 'allSURFFeatures454', 'allSURFFeatures455', 'allSURFFeatures456', 'allSURFFeatures457', 'allSURFFeatures458', 'allSURFFeatures459', 'allSURFFeatures460', 'allSURFFeatures461', 'allSURFFeatures462', 'allSURFFeatures463', 'allSURFFeatures464', 'allSURFFeatures465', 'allSURFFeatures466', 'allSURFFeatures467', 'allSURFFeatures468', 'allSURFFeatures469', 'allSURFFeatures470', 'allSURFFeatures471', 'allSURFFeatures472', 'allSURFFeatures473', 'allSURFFeatures474', 'allSURFFeatures475', 'allSURFFeatures476', 'allSURFFeatures477', 'allSURFFeatures478', 'allSURFFeatures479', 'allSURFFeatures480', 'allSURFFeatures481', 'allSURFFeatures482', 'allSURFFeatures483', 'allSURFFeatures484', 'allSURFFeatures485', 'allSURFFeatures486', 'allSURFFeatures487', 'allSURFFeatures488', 'allSURFFeatures489', 'allSURFFeatures490', 'allSURFFeatures491', 'allSURFFeatures492', 'allSURFFeatures493', 'allSURFFeatures494', 'allSURFFeatures495', 'allSURFFeatures496', 'allSURFFeatures497', 'allSURFFeatures498', 'allSURFFeatures499', 'allSURFFeatures500', 'allSURFFeatures501', 'allSURFFeatures502', 'allSURFFeatures503', 'allSURFFeatures504', 'allSURFFeatures505', 'allSURFFeatures506', 'allSURFFeatures507', 'allSURFFeatures508', 'allSURFFeatures509', 'allSURFFeatures510', 'allSURFFeatures511', 'allSURFFeatures512', 'allSURFFeatures513', 'allSURFFeatures514', 'allSURFFeatures515', 'allSURFFeatures516', 'allSURFFeatures517', 'allSURFFeatures518', 'allSURFFeatures519', 'allSURFFeatures520', 'allSURFFeatures521', 'allSURFFeatures522', 'allSURFFeatures523', 'allSURFFeatures524', 'allSURFFeatures525', 'allSURFFeatures526', 'allSURFFeatures527', 'allSURFFeatures528', 'allSURFFeatures529', 'allSURFFeatures530', 'allSURFFeatures531', 'allSURFFeatures532', 'allSURFFeatures533', 'allSURFFeatures534', 'allSURFFeatures535', 'allSURFFeatures536', 'allSURFFeatures537', 'allSURFFeatures538', 'allSURFFeatures539', 'allSURFFeatures540', 'allSURFFeatures541', 'allSURFFeatures542', 'allSURFFeatures543', 'allSURFFeatures544', 'allSURFFeatures545', 'allSURFFeatures546', 'allSURFFeatures547', 'allSURFFeatures548', 'allSURFFeatures549', 'allSURFFeatures550', 'allSURFFeatures551', 'allSURFFeatures552', 'allSURFFeatures553', 'allSURFFeatures554', 'allSURFFeatures555', 'allSURFFeatures556', 'allSURFFeatures557', 'allSURFFeatures558', 'allSURFFeatures559', 'allSURFFeatures560', 'allSURFFeatures561', 'allSURFFeatures562', 'allSURFFeatures563', 'allSURFFeatures564', 'allSURFFeatures565', 'allSURFFeatures566', 'allSURFFeatures567', 'allSURFFeatures568', 'allSURFFeatures569', 'allSURFFeatures570', 'allSURFFeatures571', 'allSURFFeatures572', 'allSURFFeatures573', 'allSURFFeatures574', 'allSURFFeatures575', 'allSURFFeatures576', 'allSURFFeatures577', 'allSURFFeatures578', 'allSURFFeatures579', 'allSURFFeatures580', 'allSURFFeatures581', 'allSURFFeatures582', 'allSURFFeatures583', 'allSURFFeatures584', 'allSURFFeatures585', 'allSURFFeatures586', 'allSURFFeatures587', 'allSURFFeatures588', 'allSURFFeatures589', 'allSURFFeatures590', 'allSURFFeatures591', 'allSURFFeatures592', 'allSURFFeatures593', 'allSURFFeatures594', 'allSURFFeatures595', 'allSURFFeatures596', 'allSURFFeatures597', 'allSURFFeatures598', 'allSURFFeatures599', 'allSURFFeatures600', 'allSURFFeatures601', 'allSURFFeatures602', 'allSURFFeatures603', 'allSURFFeatures604', 'allSURFFeatures605', 'allSURFFeatures606', 'allSURFFeatures607', 'allSURFFeatures608', 'allSURFFeatures609', 'allSURFFeatures610', 'allSURFFeatures611', 'allSURFFeatures612', 'allSURFFeatures613', 'allSURFFeatures614', 'allSURFFeatures615', 'allSURFFeatures616', 'allSURFFeatures617', 'allSURFFeatures618', 'allSURFFeatures619', 'allSURFFeatures620', 'allSURFFeatures621', 'allSURFFeatures622', 'allSURFFeatures623', 'allSURFFeatures624', 'allSURFFeatures625', 'allSURFFeatures626', 'allSURFFeatures627', 'allSURFFeatures628', 'allSURFFeatures629', 'allSURFFeatures630', 'allSURFFeatures631', 'allSURFFeatures632', 'allSURFFeatures633', 'allSURFFeatures634', 'allSURFFeatures635', 'allSURFFeatures636', 'allSURFFeatures637', 'allSURFFeatures638', 'allSURFFeatures639', 'allSURFFeatures640', 'allSURFFeatures641', 'allSURFFeatures642', 'allSURFFeatures643', 'allSURFFeatures644', 'allSURFFeatures645', 'allSURFFeatures646', 'allSURFFeatures647', 'allSURFFeatures648', 'allSURFFeatures649', 'allSURFFeatures650', 'allSURFFeatures651', 'allSURFFeatures652', 'allSURFFeatures653', 'allSURFFeatures654', 'allSURFFeatures655', 'allSURFFeatures656', 'allSURFFeatures657', 'allSURFFeatures658', 'allSURFFeatures659', 'allSURFFeatures660', 'allSURFFeatures661', 'allSURFFeatures662', 'allSURFFeatures663', 'allSURFFeatures664', 'allSURFFeatures665', 'allSURFFeatures666', 'allSURFFeatures667', 'allSURFFeatures668', 'allSURFFeatures669', 'allSURFFeatures670', 'allSURFFeatures671', 'allSURFFeatures672', 'allSURFFeatures673', 'allSURFFeatures674', 'allSURFFeatures675', 'allSURFFeatures676', 'allSURFFeatures677', 'allSURFFeatures678', 'allSURFFeatures679', 'allSURFFeatures680', 'allSURFFeatures681', 'allSURFFeatures682', 'allSURFFeatures683', 'allSURFFeatures684', 'allSURFFeatures685', 'allSURFFeatures686', 'allSURFFeatures687', 'allSURFFeatures688', 'allSURFFeatures689', 'allSURFFeatures690', 'allSURFFeatures691', 'allSURFFeatures692', 'allSURFFeatures693', 'allSURFFeatures694', 'allSURFFeatures695', 'allSURFFeatures696', 'allSURFFeatures697', 'allSURFFeatures698', 'allSURFFeatures699', 'allSURFFeatures700', 'allSURFFeatures701', 'allSURFFeatures702', 'allSURFFeatures703', 'allSURFFeatures704', 'allSURFFeatures705', 'allSURFFeatures706', 'allSURFFeatures707', 'allSURFFeatures708', 'allSURFFeatures709', 'allSURFFeatures710', 'allSURFFeatures711', 'allSURFFeatures712', 'allSURFFeatures713', 'allSURFFeatures714', 'allSURFFeatures715', 'allSURFFeatures716', 'allSURFFeatures717', 'allSURFFeatures718', 'allSURFFeatures719', 'allSURFFeatures720', 'allSURFFeatures721', 'allSURFFeatures722', 'allSURFFeatures723', 'allSURFFeatures724', 'allSURFFeatures725', 'allSURFFeatures726', 'allSURFFeatures727', 'allSURFFeatures728', 'allSURFFeatures729', 'allSURFFeatures730', 'allSURFFeatures731', 'allSURFFeatures732', 'allSURFFeatures733', 'allSURFFeatures734', 'allSURFFeatures735', 'allSURFFeatures736', 'allSURFFeatures737', 'allSURFFeatures738', 'allSURFFeatures739', 'allSURFFeatures740', 'allSURFFeatures741', 'allSURFFeatures742', 'allSURFFeatures743', 'allSURFFeatures744', 'allSURFFeatures745', 'allSURFFeatures746', 'allSURFFeatures747', 'allSURFFeatures748', 'allSURFFeatures749', 'allSURFFeatures750', 'allSURFFeatures751', 'allSURFFeatures752', 'allSURFFeatures753', 'allSURFFeatures754', 'allSURFFeatures755', 'allSURFFeatures756', 'allSURFFeatures757', 'allSURFFeatures758', 'allSURFFeatures759', 'allSURFFeatures760', 'allSURFFeatures761', 'allSURFFeatures762', 'allSURFFeatures763', 'allSURFFeatures764', 'allSURFFeatures765', 'allSURFFeatures766', 'allSURFFeatures767', 'allSURFFeatures768', 'allSURFFeatures769', 'allSURFFeatures770', 'allSURFFeatures771', 'allSURFFeatures772', 'allSURFFeatures773', 'allSURFFeatures774', 'allSURFFeatures775', 'allSURFFeatures776', 'allSURFFeatures777', 'allSURFFeatures778', 'allSURFFeatures779', 'allSURFFeatures780', 'allSURFFeatures781', 'allSURFFeatures782', 'allSURFFeatures783', 'allSURFFeatures784', 'allSURFFeatures785', 'allSURFFeatures786', 'allSURFFeatures787', 'allSURFFeatures788', 'allSURFFeatures789', 'allSURFFeatures790', 'allSURFFeatures791', 'allSURFFeatures792', 'allSURFFeatures793', 'allSURFFeatures794', 'allSURFFeatures795', 'allSURFFeatures796', 'allSURFFeatures797', 'allSURFFeatures798', 'allSURFFeatures799', 'allSURFFeatures800', 'allSURFFeatures801', 'allSURFFeatures802', 'allSURFFeatures803', 'allSURFFeatures804', 'allSURFFeatures805', 'allSURFFeatures806', 'allSURFFeatures807', 'allSURFFeatures808', 'allSURFFeatures809', 'allSURFFeatures810', 'allSURFFeatures811', 'allSURFFeatures812', 'allSURFFeatures813', 'allSURFFeatures814', 'allSURFFeatures815', 'allSURFFeatures816', 'allSURFFeatures817', 'allSURFFeatures818', 'allSURFFeatures819', 'allSURFFeatures820', 'allSURFFeatures821', 'allSURFFeatures822', 'allSURFFeatures823', 'allSURFFeatures824', 'allSURFFeatures825', 'allSURFFeatures826', 'allSURFFeatures827', 'allSURFFeatures828', 'allSURFFeatures829', 'allSURFFeatures830', 'allSURFFeatures831', 'allSURFFeatures832', 'allSURFFeatures833', 'allSURFFeatures834', 'allSURFFeatures835', 'allSURFFeatures836', 'allSURFFeatures837', 'allSURFFeatures838', 'allSURFFeatures839', 'allSURFFeatures840', 'allSURFFeatures841', 'allSURFFeatures842', 'allSURFFeatures843', 'allSURFFeatures844', 'allSURFFeatures845', 'allSURFFeatures846', 'allSURFFeatures847', 'allSURFFeatures848', 'allSURFFeatures849', 'allSURFFeatures850', 'allSURFFeatures851', 'allSURFFeatures852', 'allSURFFeatures853', 'allSURFFeatures854', 'allSURFFeatures855', 'allSURFFeatures856', 'allSURFFeatures857', 'allSURFFeatures858', 'allSURFFeatures859', 'allSURFFeatures860', 'allSURFFeatures861', 'allSURFFeatures862', 'allSURFFeatures863', 'allSURFFeatures864', 'allSURFFeatures865', 'allSURFFeatures866', 'allSURFFeatures867', 'allSURFFeatures868', 'allSURFFeatures869', 'allSURFFeatures870', 'allSURFFeatures871', 'allSURFFeatures872', 'allSURFFeatures873', 'allSURFFeatures874', 'allSURFFeatures875', 'allSURFFeatures876', 'allSURFFeatures877', 'allSURFFeatures878', 'allSURFFeatures879', 'allSURFFeatures880', 'allSURFFeatures881', 'allSURFFeatures882', 'allSURFFeatures883', 'allSURFFeatures884', 'allSURFFeatures885', 'allSURFFeatures886', 'allSURFFeatures887', 'allSURFFeatures888', 'allSURFFeatures889', 'allSURFFeatures890', 'allSURFFeatures891', 'allSURFFeatures892', 'allSURFFeatures893', 'allSURFFeatures894', 'allSURFFeatures895', 'allSURFFeatures896', 'allSURFFeatures897', 'allSURFFeatures898', 'allSURFFeatures899', 'allSURFFeatures900', 'allSURFFeatures901', 'allSURFFeatures902', 'allSURFFeatures903', 'allSURFFeatures904', 'allSURFFeatures905', 'allSURFFeatures906', 'allSURFFeatures907', 'allSURFFeatures908', 'allSURFFeatures909', 'allSURFFeatures910', 'allSURFFeatures911', 'allSURFFeatures912', 'allSURFFeatures913', 'allSURFFeatures914', 'allSURFFeatures915', 'allSURFFeatures916', 'allSURFFeatures917', 'allSURFFeatures918', 'allSURFFeatures919', 'allSURFFeatures920', 'allSURFFeatures921', 'allSURFFeatures922', 'allSURFFeatures923', 'allSURFFeatures924', 'allSURFFeatures925', 'allSURFFeatures926', 'allSURFFeatures927', 'allSURFFeatures928', 'allSURFFeatures929', 'allSURFFeatures930', 'allSURFFeatures931', 'allSURFFeatures932', 'allSURFFeatures933', 'allSURFFeatures934', 'allSURFFeatures935', 'allSURFFeatures936', 'allSURFFeatures937', 'allSURFFeatures938', 'allSURFFeatures939', 'allSURFFeatures940', 'allSURFFeatures941', 'allSURFFeatures942', 'allSURFFeatures943', 'allSURFFeatures944', 'allSURFFeatures945', 'allSURFFeatures946', 'allSURFFeatures947', 'allSURFFeatures948', 'allSURFFeatures949', 'allSURFFeatures950', 'allSURFFeatures951', 'allSURFFeatures952', 'allSURFFeatures953', 'allSURFFeatures954', 'allSURFFeatures955', 'allSURFFeatures956', 'allSURFFeatures957', 'allSURFFeatures958', 'allSURFFeatures959', 'allSURFFeatures960', 'allSURFFeatures961', 'allSURFFeatures962', 'allSURFFeatures963', 'allSURFFeatures964', 'allSURFFeatures965', 'allSURFFeatures966', 'allSURFFeatures967', 'allSURFFeatures968', 'allSURFFeatures969', 'allSURFFeatures970', 'allSURFFeatures971', 'allSURFFeatures972', 'allSURFFeatures973', 'allSURFFeatures974', 'allSURFFeatures975', 'allSURFFeatures976', 'allSURFFeatures977', 'allSURFFeatures978', 'allSURFFeatures979', 'allSURFFeatures980', 'allSURFFeatures981', 'allSURFFeatures982', 'allSURFFeatures983', 'allSURFFeatures984', 'allSURFFeatures985', 'allSURFFeatures986', 'allSURFFeatures987', 'allSURFFeatures988', 'allSURFFeatures989', 'allSURFFeatures990', 'allSURFFeatures991', 'allSURFFeatures992', 'allSURFFeatures993', 'allSURFFeatures994', 'allSURFFeatures995', 'allSURFFeatures996', 'allSURFFeatures997', 'allSURFFeatures998', 'allSURFFeatures999', 'allSURFFeatures1000', 'allSURFFeatures1001', 'allSURFFeatures1002', 'allSURFFeatures1003', 'allSURFFeatures1004', 'allSURFFeatures1005', 'allSURFFeatures1006', 'allSURFFeatures1007', 'allSURFFeatures1008', 'allSURFFeatures1009', 'allSURFFeatures1010', 'allSURFFeatures1011', 'allSURFFeatures1012', 'allSURFFeatures1013', 'allSURFFeatures1014', 'allSURFFeatures1015', 'allSURFFeatures1016', 'allSURFFeatures1017', 'allSURFFeatures1018', 'allSURFFeatures1019', 'allSURFFeatures1020', 'allSURFFeatures1021', 'allSURFFeatures1022', 'allSURFFeatures1023', 'allSURFFeatures1024'};
predictors = inputTable(:, predictorNames);
response = inputTable.objectType;
% Perform cross-validation
partitionedModel = crossval(trainedClassifier.ClassificationSVM, 'KFold', 5);
% Compute validation accuracy
validationAccuracy = 1 - kfoldLoss(partitionedModel, 'LossFun', 'ClassifError');
% Compute validation predictions and scores
[validationPredictions, validationScores] = kfoldPredict(partitionedModel);