fitcauto

利用优化的超参数自动选择分类模型

描述

给定预测器和响应数据,fitcauto自动尝试具有不同超参数值的分类模型类型。该函数使用贝叶斯优化来选择模型及其超参数值,并计算每个模型的交叉验证分类误差。优化完成后,fitcauto返回在整个数据集上训练的模型,该模型有望对新数据进行最佳分类。您可以使用预测而且损失返回模型的对象函数,分别对新数据进行分类和计算测试集分类误差。

使用fitcauto当你不确定哪种分类器类型最适合你的数据时。有关调优分类模型超参数的替代方法的信息,请参见选择功能

例子

Mdl= fitcauto (资源描述ResponseVarName返回一个分类模型Mdl使用调优的超参数。表资源描述包含预测变量和响应变量,其中ResponseVarName响应变量的名称。

Mdl= fitcauto (资源描述公式使用公式在变量中指定响应变量和要考虑的预测变量资源描述

Mdl= fitcauto (资源描述Y使用表中的预测变量资源描述类的标签是向量Y

例子

Mdl= fitcauto (XY使用矩阵中的预测变量X类的标签是向量Y

Mdl= fitcauto (___名称,值除以前语法中的任何输入参数组合外,还使用一个或多个名称-值对参数指定选项。例如,使用HyperparameterOptimizationOptions参数指定如何执行贝叶斯优化。

例子

MdlOptimizationResults= fitcauto(___此外回报OptimizationResults,一个BayesianOptimization对象,其中包含模型选择和超参数调优过程的结果。

例子

全部折叠

使用fitcauto自动选择具有优化超参数的分类模型,给定的预测器和响应数据存储在表中。

加载数据

加载carbig数据集,其中包含20世纪70年代和80年代初生产的汽车的测量数据。

负载carbig

根据是否是美国制造来对汽车进行分类。

Origin = categorical(cellstr(Origin));Origin = mergecats(Origin,{“法国”“日本”“德国”...“瑞典”“意大利”“英格兰”},“NotUSA”);

创建一个包含预测变量的表加速度位移,等等,以及响应变量起源

cars = table(加速度,位移,马力,...Model_Year MPG,体重,起源);

对数据进行分区

将数据划分为训练集和测试集。将大约80%的观测数据用于模型选择和超参数调优过程,20%的观测数据用于测试返回的最终模型的性能fitcauto.使用cvpartition对数据进行分区。

rng (“默认”用于数据分区的再现性c = cvpartition(原点,“坚持”, 0.2);trainingIdx = training(c);训练集指数%carsTrain = cars(trainingIdx,:);testdx =测试(c);测试集指数carsTest = cars(testdx,:);

运行fitcauto

将训练数据传递给fitcauto.默认情况下,fitcauto确定合适的模型类型进行尝试,使用贝叶斯优化找到好的超参数值,并返回训练好的模型Mdl用最好的预期表现。

预计这个过程需要一些时间。若要加快优化过程,请考虑指定并行运行优化(如果您拥有并行计算工具箱™许可证)。要这样做,请通过“HyperparameterOptimizationOptions”、结构(UseParallel,真的)fitcauto作为名称-值对参数。

Mdl = fitcauto(carsTrain,“起源”);
警告:建议在优化朴素贝叶斯'Width'参数时,首先标准化所有数值预测器。如果您已经这样做了,请忽略此警告。
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 最好1 | | 0.12923 | 12.533 | 0.12923 | 0.12923 |合奏|方法:袋子| | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 7 |
| 2 | Accept | 0.18269 | 0.6441 | 0.12923 | 0.12923 | knn | NumNeighbors: 3 |
| 3 | Accept | 0.23397 | 0.12905 | 0.12923 | 0.20782 | knn | NumNeighbors: 91 |
| 4 | Accept | 0.16308 | 12.228 | 0.12923 | 0.14852 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 274 | | | | | | | | | MinLeafSize: 15 |
| 5 | Accept | 0.20833 | 0.13612 | 0.12923 | 0.14852 | knn | NumNeighbors: 4 |
| 6 | Accept | 0.22115 | 0.13461 | 0.12923 | 0.14852 | knn | NumNeighbors: 28 |
| 7 | Accept | 0.16923 | 0.25707 | 0.12923 | 0.14852 | tree | MinLeafSize: 105 |
| 8 | Accept | 0.37179 | 0.64601 | 0.12923 | 0.14852 | svm | BoxConstraint: 0.022186 | | | | | | | | | KernelScale: 0.085527 |
| 9 | Accept | 0.37179 | 0.12828 | 0.12923 | 0.14852 | svm | BoxConstraint: 0.045899 | | | | | | | | | KernelScale: 0.0024758 |
| 10 | Accept | 0.24615 | 0.99945 | 0.12923 | 0.14852 | nb | DistributionNames: kernel | | | | | | | | | Width: 1.1327 |
| 11 | Accept | 0.16923 | 0.098106 | 0.12923 | 0.14852 | tree | MinLeafSize: 78 |
| 12 | Accept | 0.26923 | 0.11213 | 0.12923 | 0.14852 | svm | BoxConstraint: 11.063 | | | | | | | | | KernelScale: 15.114 |
| 13 | Best | 0.12615 | 0.10159 | 0.12615 | 0.14852 | tree | MinLeafSize: 3 |
| 14 | Accept | 0.21154 | 0.096928 | 0.12615 | 0.14852 | knn | NumNeighbors: 2 |
| 15 | Accept | 0.13538 | 0.10336 | 0.12615 | 0.15014 | tree | MinLeafSize: 1 |
| 16 | Accept | 0.13538 | 0.096076 | 0.12615 | 0.1482 | tree | MinLeafSize: 2 |
| 17 |最佳| 0.12308 | 10.115 | 0.12308 | 0.13678 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 208 | | | | | | | | | MinLeafSize: 10 |
| 18 | Accept | 0.37179 | 0.13789 | 0.12308 | 0.13678 | svm | BoxConstraint: 116.46 | | | | | | | | | KernelScale: 0.52908 |
| 19 | Accept | 0.22769 | 0.16645 | 0.12308 | 0.13678 | nb | DistributionNames: normal | | | | | | | | | Width: NaN |
| 20 | Accept | 0.22115 | 0.087468 | 0.12308 | 0.13678 | knn | NumNeighbors: 8 |
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 21日|接受| 0.37179 | 0.13455 | 0.12308 | 0.13678 |支持向量机| BoxConstraint:45.341 | | | | | | | | | KernelScale: 0.76949 |
| 22 | Accept | 0.12615 | 0.10641 | 0.12308 | 0.13678 | tree | MinLeafSize: 3 |
| 23 | Best | 0.10769 | 0.075704 | 0.10769 | 0.13678 | tree | MinLeafSize: 5 |
| 24 | Accept | 0.22769 | 0.28513 | 0.10769 | 0.13678 | nb | DistributionNames: kernel | | | | | | | | | Width: 0.42571 |
| 25 | Accept | 0.12615 | 0.072307 | 0.10769 | 0.13846 | tree | MinLeafSize: 11 |
| 26 | Accept | 0.13782 | 0.084552 | 0.10769 | 0.13846 | svm | BoxConstraint: 9.7286 | | | | | | | | | KernelScale: 293.41 |
| 27 | Accept | 0.22769 | 0.098663 | 0.10769 | 0.13846 | nb | DistributionNames: normal | | | | | | | | | Width: NaN |
| 28 | Accept | 0.21795 | 0.087931 | 0.10769 | 0.13846 | knn | NumNeighbors: 42 |
| 29 | Accept | 0.24308 | 0.26915 | 0.10769 | 0.13846 | nb | DistributionNames: kernel | | | | | | | | | Width: 4.4662 |
| 30 | Accept | 0.16308 | 11.221 | 0.10769 | 0.13846 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 267 | | | | | | | | | MinLeafSize: 131 |
| 31 | Accept | 0.24308 | 0.26485 | 0.10769 | 0.13846 | nb | DistributionNames: kernel | | | | | | | | | Width: 0.66296 |
| 32 | Accept | 0.22115 | 0.067784 | 0.10769 | 0.13846 | knn | NumNeighbors: 28 |
| 33 | Accept | 0.13846 | 0.11902 | 0.10769 | 0.13714 | tree | MinLeafSize: 25 |
| 34 | Accept | 0.21474 | 0.07273 | 0.10769 | 0.13714 | knn | NumNeighbors: 14 |
| 35 |接受| 0.16615 | 9.2855 | 0.10769 | 0.13714 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 215 | | | | | | | | | MinLeafSize: 13 |
| 36 |接受| 0.15077 | 11.786 | 0.10769 | 0.13714 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 254 | | | | | | | | | MinLeafSize: 31 |
| 37 | Accept | 0.22769 | 0.081882 | 0.10769 | 0.13714 | nb | DistributionNames: normal | | | | | | | | | Width: NaN |
| 38 | Accept | 0.37179 | 0.07709 | 0.10769 | 0.13714 | svm | BoxConstraint: 0.0073633 | | | | | | | | | KernelScale: 774.33 |
| 39 | Accept | 0.16923 | 0.077139 | 0.10769 | 0.1325 | tree | MinLeafSize: 82 |
| 40 | Accept | 0.20833 | 0.087004 | 0.10769 | 0.1325 | knn | NumNeighbors: 4 |
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 41 |接受| 0.16308 | 12.164 | 0.10769 | 0.1325 |合奏|方法:LogitBoost | | | | | | | | | NumLearningCycles: 274 | | | | | | | | | MinLeafSize: 150 |
| 42 | Accept | 0.22462 | 0.28662 | 0.10769 | 0.1325 | nb | DistributionNames: kernel | | | | | | | | | Width: 121.64 |
| 43 | Accept | 0.17846 | 10.427 | 0.10769 | 0.1325 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 229 | | | | | | | | | MinLeafSize: 117 |
| 44 | Accept | 0.16923 | 0.088318 | 0.10769 | 0.12874 | tree | MinLeafSize: 84 |
| 45 | Accept | 0.22769 | 0.079169 | 0.10769 | 0.12874 | nb | DistributionNames: normal | | | | | | | | | Width: NaN |
| 46 | Accept | 0.22769 | 0.065898 | 0.10769 | 0.12874 | nb | DistributionNames: normal | | | | | | | | | Width: NaN |
| 47 |接受| 0.16615 | 9.3444 | 0.10769 | 0.12874 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 212 | | | | | | | | | MinLeafSize: 49 |
| 48 |接受| 0.14154 | 13.721 | 0.10769 | 0.12874 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 288 | | | | | | | | | MinLeafSize: 25 |
| 49 | Accept | 0.23077 | 0.2725 | 0.10769 | 0.12874 | nb | DistributionNames: kernel | | | | | | | | | Width: 73.249 |
| 50 | Accept | 0.37179 | 0.11629 | 0.10769 | 0.12874 | svm | BoxConstraint: 0.0036501 | | | | | | | | | KernelScale: 1.0504 |
| 51 | Accept | 0.21474 | 0.14443 | 0.10769 | 0.12874 | svm | BoxConstraint: 64.859 | | | | | | | | | KernelScale: 23.779 |
| 52 | Accept | 0.37179 | 0.11504 | 0.10769 | 0.12874 | svm | BoxConstraint: 0.16622 | | | | | | | | | KernelScale: 4.4901 |
| 53 | Accept | 0.25846 | 0.26577 | 0.10769 | 0.12874 | nb | DistributionNames: kernel | | | | | | | | | Width: 0.079498 |
| 54 | Accept | 0.21154 | 0.07558 | 0.10769 | 0.12874 | knn | NumNeighbors: 2 |
| 55 | Accept | 0.12308 | 11.525 | 0.10769 | 0.12874 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 234 | | | | | | | | | MinLeafSize: 8 |
| 56 | Accept | 0.36538 | 0.11498 | 0.10769 | 0.12874 | svm | BoxConstraint: 271.6 | | | | | | | | | KernelScale: 2.743 |
| 57 | Accept | 0.16615 | 9.9644 | 0.10769 | 0.12874 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 248 | | | | | | | | | MinLeafSize: 117 |
| 58 | Accept | 0.37179 | 0.10707 | 0.10769 | 0.12874 | svm | BoxConstraint: 7.5785 | | | | | | | | | KernelScale: 0.0066815 |
| 59 | Accept | 0.37179 | 0.10387 | 0.10769 | 0.12874 | svm | BoxConstraint: 0.0017765 | | | | | | | | | KernelScale: 0.86786 |
| 60 | Accept | 0.37179 | 0.11451 | 0.10769 | 0.12874 | svm | BoxConstraint: 0.011465 | | | | | | | | | KernelScale: 0.02747 |
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 61 |接受| 0.12308 | 0.075995 | 0.10769 | 0.12862 | |树MinLeafSize: 12 |
| 62 | Accept | 0.29167 | 0.12678 | 0.10769 | 0.12862 | svm | BoxConstraint: 11.939 | | | | | | | | | KernelScale: 11.002 |
| 63 | Accept | 0.21795 | 0.085439 | 0.10769 | 0.12862 | knn | NumNeighbors: 6 |
| 64 | Accept | 0.18269 | 0.075299 | 0.10769 | 0.12862 | knn | NumNeighbors: 3 |
| 65 | Accept | 0.12615 | 0.09094 | 0.10769 | 0.1273 | tree | MinLeafSize: 3 |
| 66 | Accept | 0.16923 | 0.074034 | 0.10769 | 0.12662 | tree | MinLeafSize: 56 |
| 67 | Accept | 0.1891 | 0.068062 | 0.10769 | 0.12662 | knn | NumNeighbors: 1 |
| 68 |接受| 0.11692 | 12.685 | 0.10769 | 0.12662 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 270 | | | | | | | | | MinLeafSize: 4 |
| 69 | Accept | 0.22769 | 0.08331 | 0.10769 | 0.12662 | nb | DistributionNames: normal | | | | | | | | | Width: NaN |
| 70 | Accept | 0.37231 | 0.23243 | 0.10769 | 0.12662 | nb | DistributionNames: kernel | | | | | | | | | Width: 1629.5 |
| 71 | Accept | 0.16923 | 0.07617 | 0.10769 | 0.12684 | tree | MinLeafSize: 61 |
| 72 | Accept | 0.22769 | 0.076927 | 0.10769 | 0.12684 | nb | DistributionNames: normal | | | | | | | | | Width: NaN |
| 73 | Accept | 0.16308 | 9.7631 | 0.10769 | 0.12684 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 217 | | | | | | | | | MinLeafSize: 70 |
| 74 |接受| 0.10769 | 12.552 | 0.10769 | 0.12684 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 2 |
| 75 | Accept | 0.21474 | 0.091663 | 0.10769 | 0.12684 | knn | NumNeighbors: 49 |
| 76 |接受| 0.11077 | 10.027 | 0.10769 | 0.12684 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 221 | | | | | | | | | MinLeafSize: 5 |
| 77 |接受| 0.16 | 8.1869 | 0.10769 | 0.12684 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 203 | | | | | | | | | MinLeafSize: 1 |
| 78 |接受| 0.11385 | 10.992 | 0.10769 | 0.12684 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 228 | | | | | | | | | MinLeafSize: 2 |
| 79 |接受| 0.15692 | 12.232 | 0.10769 | 0.12684 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 293 | | | | | | | | | MinLeafSize: 1 |
| 80 |接受| 0.12923 | 10.523 | 0.10769 | 0.12684 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 222 | | | | | | | | | MinLeafSize: 5 |
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 81 |接受| 0.12308 | 11.281 | 0.10769 | 0.12684 |合奏|方法:袋子| | | | | | | | | NumLearningCycles: 233 | | | | | | | | | MinLeafSize: 11 |
| 82 |接受| 0.11385 | 14.304 | 0.10769 | 0.12684 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 290 | | | | | | | | | MinLeafSize: 3 |
| 83 |接受| 0.10769 | 12.236 | 0.10769 | 0.11724 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 260 | | | | | | | | | MinLeafSize: 1 |
| 84 |最佳| 0.10154 | 12.57 | 0.10154 | 0.11441 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | MinLeafSize: 1 |
| 85 | Accept | 0.16308 | 11.827 | 0.10154 | 0.11544 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 2 |
| 86 | Accept | 0.10769 | 14.658 | 0.10154 | 0.11317 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 295 | | | | | | | | | MinLeafSize: 2 |
| 87 | Accept | 0.10769 | 12.049 | 0.10154 | 0.1209 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 255 | | | | | | | | | MinLeafSize: 2 |
| 88 |接受| 0.10462 | 12.346 | 0.10154 | 0.11125 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 261 | | | | | | | | | MinLeafSize: 1 |
| 89 |接受| 0.11077 | 12.551 | 0.10154 | 0.10964 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 263 | | | | | | | | | MinLeafSize: 1 |
| 90 | Accept | 0.10769 | 12.461 | 0.10154 | 0.10895 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 91 |接受| 0.10769 | 12.168 | 0.10154 | 0.10907 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 254 | | | | | | | | | MinLeafSize: 1 |
| 92 |接受| 0.10462 | 12.397 | 0.10154 | 0.10811 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 93 | Accept | 0.16308 | 11.293 | 0.10154 | 0.10882 | ensemble | Method: LogitBoost | | | | | | | | | NumLearningCycles: 255 | | | | | | | | | MinLeafSize: 1 |
| 94 | Accept | 0.10769 | 12.364 | 0.10154 | 0.10734 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 255 | | | | | | | | | MinLeafSize: 1 |
| 95 | Accept | 0.11385 | 12.225 | 0.10154 | 0.10821 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 255 | | | | | | | | | MinLeafSize: 1 |
| 96 |接受| 0.10769 | 12.369 | 0.10154 | 0.10809 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 97 | Accept | 0.11077 | 12.488 | 0.10154 | 0.10714 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 258 | | | | | | | | | MinLeafSize: 1 |
| 98 | Accept | 0.10769 | 12.439 | 0.10154 | 0.10802 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 2 |
| 99 |接受| 0.10769 | 12.361 | 0.10154 | 0.1069 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 2 |
| 100 |接受| 0.11692 | 12.373 | 0.10154 | 0.10736 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | MinLeafSize: 2 |
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 101 |接受| 0.16308 | 10.816 | 0.10154 | 0.10799 |合奏|方法:LogitBoost | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 102 | Accept | 0.11385 | 9.9363 | 0.10154 | 0.10789 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 210 | | | | | | | | | MinLeafSize: 1 |
| 103 | Accept | 0.11385 | 10.353 | 0.10154 | 0.11056 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | MinLeafSize: 1 |
| 104 | Accept | 0.12 | 10.401 | 0.10154 | 0.11008 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 105 |接受| 0.11077 | 11.72 | 0.10154 | 0.10913 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 293 | | | | | | | | | MinLeafSize: 1 |
| 106 | Accept | 0.10769 | 10.452 | 0.10154 | 0.10878 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | MinLeafSize: 1 |
| 107 | Accept | 0.10769 | 10.517 | 0.10154 | 0.10934 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 108 |接受| 0.11077 | 8.3766 | 0.10154 | 0.10939 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 207 | | | | | | | | | MinLeafSize: 1 |
| 109 |接受| 0.10769 | 10.549 | 0.10154 | 0.10883 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 261 | | | | | | | | | MinLeafSize: 1 |
| 110 |接受| 0.11692 | 10.478 | 0.10154 | 0.10961 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 259 | | | | | | | | | MinLeafSize: 4 |
| 111 |接受| 0.11385 | 12.05 | 0.10154 | 0.10869 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 295 | | | | | | | | | MinLeafSize: 2 |
| 112 |接受| 0.12 | 11.95 | 0.10154 | 0.1083 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 294 | | | | | | | | | MinLeafSize: 1 |
| 113 | Accept | 0.11385 | 10.329 | 0.10154 | 0.10891 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 255 | | | | | | | | | MinLeafSize: 1 |
| 114 |接受| 0.11077 | 11.196 | 0.10154 | 0.10922 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 260 | | | | | | | | | MinLeafSize: 2 |
| 115 |接受| 0.10462 | 12.305 | 0.10154 | 0.10804 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 116 | Accept | 0.11385 | 12.352 | 0.10154 | 0.10886 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 4 |
| 117 |最佳| 0.098462 | 9.241 | 0.098462 | 0.10878 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 1 |
| 118 |接受| 0.10769 | 9.6282 | 0.098462 | 0.10917 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 1 |
| 119 |接受| 0.11077 | 8.5028 | 0.098462 | 0.10922 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 1 |
| 120 |接受| 0.12615 | 9.0029 | 0.098462 | 0.10942 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 1 |
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 121 |接受| 0.11385 | 10.752 | 0.098462 | 0.10963 |合奏|方法:袋子| | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 2 |
| 122 |接受| 0.10769 | 10.986 | 0.098462 | 0.1089 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | MinLeafSize: 1 |
| 123 |接受| 0.10462 | 10.936 | 0.098462 | 0.10864 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 124 |接受| 0.11077 | 10.384 | 0.098462 | 0.10889 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 125 |接受| 0.10769 | 10.391 | 0.098462 | 0.10903 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 126 |接受| 0.11385 | 8.3687 | 0.098462 | 0.10863 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 202 | | | | | | | | | MinLeafSize: 1 |
| 127 |接受| 0.11385 | 10.703 | 0.098462 | 0.10838 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 261 | | | | | | | | | MinLeafSize: 1 |
| 128 |接受| 0.11077 | 9.8426 | 0.098462 | 0.10872 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 243 | | | | | | | | | MinLeafSize: 1 |
| 129 |接受| 0.11077 | 8.1229 | 0.098462 | 0.10861 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 202 | | | | | | | | | MinLeafSize: 1 |
| 130 | Accept | 0.11385 | 10.625 | 0.098462 | 0.10918 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | MinLeafSize: 1 |
| 131 |接受| 0.11077 | 10.54 | 0.098462 | 0.10936 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 254 | | | | | | | | | MinLeafSize: 1 |
| 132 |接受| 0.11077 | 10.936 | 0.098462 | 0.10902 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 133 | Accept | 0.12923 | 10.934 | 0.098462 | 0.1098 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 1 |
| 134 |接受| 0.11077 | 10.599 | 0.098462 | 0.10985 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | MinLeafSize: 1 |
| 135 | Accept | 0.10769 | 8.3652 | 0.098462 | 0.10981 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 200 | | | | | | | | | MinLeafSize: 1 |
| 136 |接受| 0.10769 | 8.6695 | 0.098462 | 0.1097 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 2 |
| 137 |接受| 0.11385 | 8.1568 | 0.098462 | 0.10997 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 200 | | | | | | | | | MinLeafSize: 1 |
| 138 |接受| 0.10769 | 8.1314 | 0.098462 | 0.10951 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 200 | | | | | | | | | MinLeafSize: 2 |
| 139 |接受| 0.11385 | 8.1919 | 0.098462 | 0.11039 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 200 | | | | | | | | | MinLeafSize: 1 |
| 140 |接受| 0.11385 | 11.537 | 0.098462 | 0.10919 |集成|方法:包| | | | | | | | | NumLearningCycles: 261 | | | | | | | | | MinLeafSize: 2 |
|====================================================================================================================| | Iter | Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |结果| |运行时| | (estim(观察) .) | | | |====================================================================================================================| | 141 |接受| 0.10769 | 8.5051 | 0.098462 | 0.10985 |合奏|方法:袋子| | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 2 |
| 142 |接受| 0.11692 | 9.7003 | 0.098462 | 0.10953 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 236 | | | | | | | | | MinLeafSize: 2 |
| 143 |接受| 0.10462 | 11.018 | 0.098462 | 0.10932 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 262 | | | | | | | | | MinLeafSize: 1 |
| 144 | Accept | 0.12308 | 11.197 | 0.098462 | 0.10945 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 262 | | | | | | | | | MinLeafSize: 1 |
| 145 |接受| 0.11692 | 8.3426 | 0.098462 | 0.11056 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 2 |
| 146 |接受| 0.11692 | 8.728 | 0.098462 | 0.10939 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 4 |
| 147 |接受| 0.11692 | 10.952 | 0.098462 | 0.11014 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 259 | | | | | | | | | MinLeafSize: 1 |
| 148 |接受| 0.12 | 8.5123 | 0.098462 | 0.10999 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 201 | | | | | | | | | MinLeafSize: 1 |
| 149 |接受| 0.11077 | 10.694 | 0.098462 | 0.11039 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | MinLeafSize: 2 |
| 150 |接受| 0.10769 | 10.999 | 0.098462 | 0.10991 | ensemble | Method: Bag | | | | | | | | | NumLearningCycles: 260 | | | | | | | | | MinLeafSize: 1 |

__________________________________________________________ 优化完成。达到了150个目标。总函数计算:150总运行时间:1758.9912秒。方法:Bag NumLearningCycles: 201 MinLeafSize: 1观测目标函数值= 0.098462估计目标函数值= 0.11265函数评估时间= 9.241最佳估计可行点(根据模型)是一个集合模型,方法:Bag NumLearningCycles: 256 MinLeafSize: 1估计目标函数值= 0.10991估计函数评估时间= 11.0259

返回的最终模型fitcauto对应于最佳估计可行点。在返回模型之前,函数使用整个训练数据(carsTrain),列出的学习者(或模型)类型,以及显示的超参数值。

评估测试集性能

评估模型在测试集上的性能。

testAccuracy = 1 - loss(Mdl,carsTest,“起源”
testAccuracy = 0.9520
喀斯特岩溶confusionchart (carsTest.Origin,预测(Mdl))

使用fitcauto为了自动选择具有优化超参数的分类模型,给定的预测器和响应数据存储在单独的变量中。

加载数据

加载humanactivity数据集。该数据集包含24075个对人类五种物理活动的观察:坐(1)、站(2)、走(3)、跑(4)和跳舞(5)。每个观察都有60个特征,这些特征是从智能手机加速度计传感器测量的加速度数据中提取出来的。的变量的壮举包含24075个观测值的60个特征的预测器数据矩阵和响应变量actid以整数形式包含观察的活动id。

负载humanactivity

对数据进行分区

将数据划分为训练集和测试集。使用90%的观测值来选择模型,使用10%的观测值来验证返回的最终模型fitcauto.使用cvpartition保留10%的观测值用于测试。

rng (“默认”用于分区的再现性C = cvpartition(actid,“坚持”, 0.10);trainingIndices = training(c);%训练集的指数XTrain = feat(trainingIndices,:);YTrain = actid(trainingIndices);testIndices =测试(c);%测试集的索引XTest = feat(testindexes,:);YTest = actid(testIndices);

运行fitcauto

将训练数据传递给fitcauto.默认情况下,fitcauto确定要尝试的合适模型(或学习器)类型,使用贝叶斯优化为这些模型找到良好的超参数值,并返回具有最佳预期性能的训练模型。指定以并行方式运行优化(需要并行计算工具箱™)。返回第二个输出OptimizationResults其中包含贝叶斯优化的细节。

预计这个模型选择过程需要一些时间。

选项= struct(“UseParallel”,真正的);[Mdl,OptimizationResults] = fitcauto(XTrain,YTrain,“HyperparameterOptimizationOptions”、选择);
警告:建议在优化朴素贝叶斯'Width'参数时,首先标准化所有数值预测器。如果您已经这样做了,请忽略此警告。
使用“本地”配置文件启动并行池(parpool)…连接到并行池(worker数量:6)。将目标函数复制到worker…将目标函数复制给工人。
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 最好1 | 6 | | 0.28088 | 51.451 | 0.28088 | 0.28088 |支持向量机|编码:onevsone | | | | | | | | | | BoxConstraint: 0.22686 | | | | | | | | | | KernelScale: 330.4 |
| 2 | 5 |接受| 0.036413 | 60.195 | 0.025845 | 0.11438 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 254 | | | | | | | | | | MinLeafSize: 1786 | | | | | | | | | | MaxNumSplits: 12 | | 3 | 5 | Best | 0.025845 | 5.5008 | 0.025845 | 0.11438 | tree | MinLeafSize: 59 |
| 4 | 6 | Best | 0.017722 | 6.6481 | 0.017722 | 0.021702 | tree | MinLeafSize: 9 |
| 5 | 6 | Accept | 0.017722 | 6.4868 | 0.017722 | 0.020592 | tree | MinLeafSize: 9 |
| 6 | 6 | Best | 0.0064611 | 79.739 | 0.0064611 | 0.020592 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 214 | | | | | | | | | | MinLeafSize: 5 | | | | | | | | | | MaxNumSplits: 23 |
| 7 | 6 | Accept | 0.050212 | 1.278 | 0.0064611 | 0.020592 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 8 | 6 | Accept | 0.050212 | 1.2476 | 0.0064611 | 0.020592 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 9 | 6 |接受| 0.02266 | 189.95 | 0.0064611 | 0.020592 | ensemble | Method: Bag | | | | | | | | | | NumLearningCycles: 218 | | | | | | | | | | MinLeafSize: 2 | | | | | | | | | | MaxNumSplits: 63 |
| 10 | 6 |接受| 0.033598 | 203.62 | 0.0064611 | 0.020592 | ensemble | Method: Bag | | | | | | | | | | NumLearningCycles: 264 | | | | | | | | | | MinLeafSize: 7 | | | | | | | | | | MaxNumSplits: 36 |
| 11 | 6 | Accept | 0.59166 | 28.752 | 0.0064611 | 0.020592 | nb | DistributionNames: kernel | | | | | | | | | | Width: 4.7212e-14 |
| 12 | 6 | Accept | 0.04389 | 155.77 | 0.0064611 | 0.020592 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 0.068467 | | | | | | | | | | KernelScale: 117.01 |
| 13 | 6 | Accept | 0.021599 | 60.254 | 0.0064611 | 0.020592 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 243 | | | | | | | | | | MinLeafSize: 1247 | | | | | | | | | | MaxNumSplits: 45 |
| 14 | 6 | Accept | 0.043567 | 23.25 | 0.0064611 | 0.020592 | knn | NumNeighbors: 144 |
| 15 | 6 | Accept | 0.028844 | 22.102 | 0.0064611 | 0.020592 | knn | NumNeighbors: 18 |
| 16 | 6 | Accept | 0.024598 | 22.408 | 0.0064611 | 0.020592 | knn | NumNeighbors: 7 |
| 17 | 6 | Accept | 0.03009 | 21.623 | 0.0064611 | 0.020592 | knn | NumNeighbors: 27 |
| 18 | 6 | Accept | 0.016891 | 7.2949 | 0.0064611 | 0.019464 | tree | MinLeafSize: 2 |
| 19 | 6 | Accept | 0.040059 | 4.3418 | 0.0064611 | 0.022968 | tree | MinLeafSize: 166 |
| 20 | 6 | Accept | 0.060319 | 2.5459 | 0.0064611 | 0.023364 | tree | MinLeafSize: 1881 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 21 | 6 |接受| 0.050212 | 1.1819 | 0.0064611 | 0.023364 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南|
| 22 | 6 | Accept | 0.036552 | 21.442 | 0.0064611 | 0.023364 | knn | NumNeighbors: 67 |
| 23 | 6 | Accept | 0.050212 | 0.69192 | 0.0064611 | 0.023364 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 24 | 6 | Accept | 0.11076 | 37.67 | 0.0064611 | 0.023364 | knn | NumNeighbors: 2637 |
| 25 | 6 |接受| 0.28711 | 69.473 | 0.0064611 | 0.030365 |集成|方法:包| | | | | | | | | | NumLearningCycles: 287 | | | | | | | | | | MinLeafSize: 4344 | | | | | | | | | | MaxNumSplits: 48 |
| 26 | 6 | Accept | 0.58127 | 32.81 | 0.0064611 | 0.030365 | nb | DistributionNames: kernel | | | | | | | | | | Width: 1.6293e-06 |
| 27 | 6 | Accept | 0.015784 | 7.406 | 0.0064611 | 0.027375 | tree | MinLeafSize: 1 |
| 28 | 6 |接受| 0.59166 | 383.03 | 0.0064611 | 0.027375 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 790.4 | | | | | | | | | | KernelScale: 0.014348 |
| 29 | 6 | Accept | 0.069319 | 1.9964 | 0.0064611 | 0.034633 | tree | MinLeafSize: 2284 |
| 30 | 6 | Accept | 0.043336 | 3.5634 | 0.0064611 | 0.033826 | tree | MinLeafSize: 432 |
| 31 | 6 | Accept | 0.10555 | 35.914 | 0.0064611 | 0.033826 | knn | NumNeighbors: 2430 |
| 32 | 6 | Accept | 0.021183 | 6.3954 | 0.0064611 | 0.021851 | tree | MinLeafSize: 17 |
| 33 | 6 | Accept | 0.050212 | 1.098 | 0.0064611 | 0.021851 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 34 | 6 | Accept | 0.014353 | 62.709 | 0.0064611 | 0.021851 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 234 | | | | | | | | | | MinLeafSize: 587 | | | | | | | | | | MaxNumSplits: 11 |
| 35 | 6 |接受| 0.043428 | 191.69 | 0.0064611 | 0.021851 | ensemble | Method: Bag | | | | | | | | | | NumLearningCycles: 288 | | | | | | | | | | MinLeafSize: 45 | | | | | | | | | | MaxNumSplits: 23 |
| 36 | 6 | Accept | 0.4226 | 559.17 | 0.0064611 | 0.021851 | | DistributionNames: kernel | | | | | | | | | | Width: 72.906 |
| 37 | 6 | Accept | 0.74165 | 25.64 | 0.0064611 | 0.021851 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 217 | | | | | | | | | | MinLeafSize: 8856 | | | | | | | | | | MaxNumSplits: 36 |
| 38 | 6 | Accept | 0.59166 | 27.996 | 0.0064611 | 0.021851 | | DistributionNames: kernel | | | | | | | | | | Width: 1.191e-07 |
| 39 | 6 |最佳| 0.0041074 | 91.985 | 0.0041074 | 0.021851 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 210 | | | | | | | | | | MinLeafSize: 129 | | | | | | | | | | MaxNumSplits: 100 |
| 40 | 6 | Accept | 0.73985 | 542.35 | 0.0041074 | 0.021851 | | DistributionNames: kernel | | | | | | | | | | Width: 1055.8 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 41 | 5 |接受| 0.57615 | 353.08 | 0.0041074 | 0.021851 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 2.2347  | | | | | | | | | | 42 KernelScale: 0.16176 | | | 5 |接受| 0.087087 | 32.51 | 0.0041074 | 0.021851 |资讯| NumNeighbors: 1634 |
| 43 | 6 | Accept | 0.050212 | 0.85611 | 0.0041074 | 0.021851 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 44 | 6 | Accept | 0.050212 | 0.75838 | 0.0041074 | 0.021851 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 45 | 6 | Accept | 0.025891 | 21.86 | 0.0041074 | 0.021851 | knn | NumNeighbors: 6 |
| 46 | 6 |接受| 0.030414 | 162.3 | 0.0041074 | 0.021851 |集成|方法:包| | | | | | | | | | NumLearningCycles: 206 | | | | | | | | | | MinLeafSize: 5 | | | | | | | | | | maxnum拆分:39 |
| 47 | 6 |接受| 0.03286 | 178.49 | 0.0041074 | 0.021851 |集成|方法:包| | | | | | | | | | NumLearningCycles: 234 | | | | | | | | | | MinLeafSize: 73 | | | | | | | | | | maxnum拆分:43 |
| 48 | 6 | Accept | 0.037244 | 156.66 | 0.0041074 | 0.021851 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 5.9571 | | | | | | | | | | KernelScale: 840.87 |
| 49 | 6 | Accept | 0.01703 | 7.0967 | 0.0041074 | 0.020426 | tree | MinLeafSize: 4 |
| 50 | 6 | Accept | 0.017168 | 6.8667 | 0.0041074 | 0.0183 | tree | MinLeafSize: 5 |
| 51 | 6 |接受| 0.039321 | 221.28 | 0.0041074 | 0.0183 |集成|方法:包| | | | | | | | | | NumLearningCycles: 299 | | | | | | | | | | MinLeafSize: 31 | | | | | | | | | | MaxNumSplits: 25 |
| 52 | 6 | Accept | 0.046474 | 199.35 | 0.0041074 | 0.0183 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 2.9119 | | | | | | | | | | KernelScale: 12.771 |
| 53 | 6 |接受| 0.59166 | 433.93 | 0.0041074 | 0.0183 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 92.735 | | | | | | | | | | KernelScale: 0.0010711 |
| 54 | 6 | Accept | 0.054135 | 3.7916 | 0.0041074 | 0.018419 | tree | MinLeafSize: 783 |
| 55 | 6 | Accept | 0.049797 | 27.695 | 0.0041074 | 0.018419 | knn | NumNeighbors: 331 |
| 56 | 6 | Accept | 0.046566 | 26.856 | 0.0041074 | 0.018419 | knn | NumNeighbors: 193 |
| 57 | 6 |接受| 0.049197 | 188.34 | 0.0041074 | 0.018419 |集成|方法:包| | | | | | | | | | NumLearningCycles: 253 | | | | | | | | | | MinLeafSize: 14 | | | | | | | | | | maxnum拆分:22 |
| 58 | 6 |接受| 0.022706 | 25.765 | 0.0041074 | 0.018419 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 1.3505 | | | | | | | | | | KernelScale: 127.55 |
| 59 | 6 | Accept | 0.028798 | 5.7904 | 0.0041074 | 0.018856 | tree | MinLeafSize: 84 |
| 60 | 6 | Accept | 0.041351 | 29.766 | 0.0041074 | 0.018856 | knn | NumNeighbors: 124 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 61 | 6 |接受| 0.030044 | 28.239 | 0.0041074 | 0.018856 |资讯| NumNeighbors: 26 |
| 62 | 6 |接受| 0.11838 | 295.65 | 0.0041074 | 0.018856 | svm |编码:onevsall | | | | | | | | | | BoxConstraint: 0.0027874 | | | | | | | | | | KernelScale: 33.944 |
| 63 | 6 | Accept | 0.47116 | 55.67 | 0.0041074 | 0.018856 | nb | DistributionNames: kernel | | | | | | | | | | Width: 4.7553e-05 |
| 64 | 6 | Accept | 0.26574 | 104.02 | 0.0041074 | 0.018856 | nb | DistributionNames: kernel | | | | | | | | | | Width: 0.0011441 |
| 65 | 6 | Accept | 0.050212 | 0.69002 | 0.0041074 | 0.018856 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 66 | 6 | Accept | 0.017168 | 6.7802 | 0.0041074 | 0.018674 | tree | MinLeafSize: 5 |
| 67 | 6 | Accept | 0.077072 | 281.55 | 0.0041074 | 0.018674 | nb | DistributionNames: kernel | | | | | | | | | | Width: 0.026902 |
| 68 | 6 | Accept | 0.031613 | 26.638 | 0.0041074 | 0.018674 | knn | NumNeighbors: 33 |
| 69 | 6 | Accept | 0.02003 | 108.02 | 0.0041074 | 0.018674 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 609.47 | | | | | | | | | | KernelScale: 39.88 |
| 70 | 6 |接受| 0.14141 | 92.623 | 0.0041074 | 0.018674 | ensemble | Method: Bag | | | | | | | | | | NumLearningCycles: 292 | | | | | | | | | | MinLeafSize: 3870 | | | | | | | | | | MaxNumSplits: 33 |
| 71 | 6 | Accept | 0.01103 | 74.107 | 0.0041074 | 0.018674 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 214 | | | | | | | | | | MinLeafSize: 203 | | | | | | | | | | MaxNumSplits: 14 |
| 72 | 6 | Accept | 0.0093225 | 78.987 | 0.0041074 | 0.018674 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 225 | | | | | | | | | | MinLeafSize: 461 | | | | | | | | | | MaxNumSplits: 45 |
| 73 | 6 | Accept | 0.0081226 | 75.993 | 0.0041074 | 0.018674 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 212 | | | | | | | | | | MinLeafSize: 224 | | | | | | | | | | MaxNumSplits: 19 |
| 74 | 6 |接受| 0.0086302 | 75.677 | 0.0041074 | 0.011486 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 206 | | | | | | | | | | MinLeafSize: 372 | | | | | | | | | | MaxNumSplits: 66 |
| 75 | 6 |接受| 0.012461 | 69.727 | 0.0041074 | 0.0099707 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 219 | | | | | | | | | | MinLeafSize: 602 | | | | | | | | | | MaxNumSplits: 16 |
| 76 | 6 | Accept | 0.011907 | 66.364 | 0.0041074 | 0.018674 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 206 | | | | | | | | | | MinLeafSize: 535 | | | | | | | | | | MaxNumSplits: 17 |
| 77 | 6 |接受| 0.066227 | 125.89 | 0.0041074 | 0.0096155 |集成|方法:包| | | | | | | | | | NumLearningCycles: 210 | | | | | | | | | | MinLeafSize: 579 | | | | | | | | | | maxnum拆分:44 |
| 78 | 6 | Accept | 0.014168 | 64.533 | 0.0041074 | 0.018674 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 207 | | | | | | | | | | MinLeafSize: 670 | | | | | | | | | | MaxNumSplits: 21 |
| 79 | 6 | Accept | 0.012276 | 73.034 | 0.0041074 | 0.0096795 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 228 | | | | | | | | | | MinLeafSize: 614 | | | | | | | | | | MaxNumSplits: 94 |
| 80 | 6 | Accept | 0.017353 | 61.294 | 0.0041074 | 0.0094804 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 204 | | | | | | | | | | MinLeafSize: 772 | | | | | | | | | | MaxNumSplits: 13 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 81 | 6 |接受| 0.01846 | 61.652 | 0.0041074 | 0.0084959 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 211  | | | | | | | | | | MinLeafSize: 879  | | | | | | | | | | MaxNumSplits: 79 |
| 82 | 6 | Accept | 0.016937 | 67.027 | 0.0041074 | 0.0092617 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 227 | | | | | | | | | | MinLeafSize: 805 | | | | | | | | | | MaxNumSplits: 20 |
| 83 | 6 | Accept | 0.012876 | 256.48 | 0.0041074 | 0.0092617 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 501.55 | | | | | | | | | | KernelScale: 190.02 |
| 84 | 6 | Accept | 0.017537 | 61.538 | 0.0041074 | 0.0091728 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 207 | | | | | | | | | | MinLeafSize: 836 | | | | | | | | | | MaxNumSplits: 40 |
| 85 | 6 |接受| 0.01463 | 43.6 | 0.0041074 | 0.0091728 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 397.97 | | | | | | | | | | KernelScale: 310.04 |
| 86 | 6 |接受| 0.025522 | 24.217 | 0.0041074 | 0.0091728 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 36.55 | | | | | | | | | | KernelScale: 658.03 |
| 87 | 6 | Accept | 0.01703 | 68.966 | 0.0041074 | 0.0092732 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 230 | | | | | | | | | | MinLeafSize: 822 | | | | | | | | | | MaxNumSplits: 22 |
| 88 | 6 | Accept | 0.021137 | 114.19 | 0.0041074 | 0.0092732 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 593.64 | | | | | | | | | | KernelScale: 37.983 |
| 89 | 6 |接受| 0.59166 | 2089.7 | 0.0041074 | 0.0092732 |支持|编码:onevsall | | | | | | | | | | BoxConstraint: 0.045413 | | | | | | | | | | KernelScale: 0.0034709 |
| 90 | 6 | Accept | 0.019799 | 57.157 | 0.0041074 | 0.0089505 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 202 | | | | | | | | | | MinLeafSize: 962 | | | | | | | | | | MaxNumSplits: 81 |
| 91 | 6 |接受| 0.085472 | 118.41 | 0.0041074 | 0.0089505 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 855.69 | | | | | | | | | | KernelScale: 6.5486 |
| 92 | 6 |接受| 0.02003 | 59.729 | 0.0041074 | 0.0095371 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 216 | | | | | | | | | | MinLeafSize: 1004 | | | | | | | | | | MaxNumSplits: 12 |
| 93 | 6 | Accept | 0.019845 | 58.677 | 0.0041074 | 0.0095584 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 208 | | | | | | | | | | MinLeafSize: 926 | | | | | | | | | | MaxNumSplits: 32 |
| 94 | 6 | Accept | 0.021506 | 59.315 | 0.0041074 | 0.011473 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 216 | | | | | | | | | | MinLeafSize: 1063 | | | | | | | | | | MaxNumSplits: 82 |
| 95 | 6 | Accept | 0.022383 | 55.893 | 0.0041074 | 0.0091004 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 205 | | | | | | | | | | MinLeafSize: 1150 | | | | | | | | | | MaxNumSplits: 11 |
| 96 | 6 | Accept | 0.054966 | 273.69 | 0.0041074 | 0.0091004 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 550 | | | | | | | | | | KernelScale: 10.56 |
| 97 | 6 | Accept | 0.021322 | 64.607 | 0.0041074 | 0.0089091 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 229 | | | | | | | | | | MinLeafSize: 1111 | | | | | | | | | | MaxNumSplits: 52 |
| 98 | 6 | Accept | 0.021691 | 60.128 | 0.0041074 | 0.0083855 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 213 | | | | | | | | | | MinLeafSize: 1112 | | | | | | | | | | MaxNumSplits: 14 |
| 99 | 6 |接受| 0.59166 | 2658.6 | 0.0041074 | 0.0083855 |支持|编码:onevsall | | | | | | | | | | BoxConstraint: 0.98129 | | | | | | | | | | KernelScale: 0.0054937 |
| 100 | 6 |接受| 0.22499 | 820.13 | 0.0041074 | 0.0083855 |支持|编码:onevsall | | | | | | | | | | BoxConstraint: 869.37 | | | | | | | | | | KernelScale: 1.5553 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 101 | 6 |接受| 0.021691 | 63.07 | 0.0041074 | 0.008821 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 228  | | | | | | | | | | MinLeafSize: 1180  | | | | | | | | | | MaxNumSplits: 83 |
| 102 | 6 |接受| 0.02206 | 57.161 | 0.0041074 | 0.0095876 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 207 | | | | | | | | | | MinLeafSize: 1208 | | | | | | | | | | MaxNumSplits: 17 |
| 103 | 6 |接受| 0.022014 | 59.267 | 0.0041074 | 0.0094147 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 217 | | | | | | | | | | MinLeafSize: 1187 | | | | | | | | | | MaxNumSplits: 61 |
| 104 | 6 |接受| 0.23763 | 216.82 | 0.0041074 | 0.0094147 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 512.6 | | | | | | | | | | KernelScale: 1.2736 |
| 105 | 6 |接受| 0.050212 | 0.76452 | 0.0041074 | 0.0094147 | nb | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 106 | 6 | Accept | 0.023352 | 259.58 | 0.0041074 | 0.010382 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 220 | | | | | | | | | | MinLeafSize: 1372 | | | | | | | | | | MaxNumSplits: 96 |
| 107 | 6 | Accept | 0.022983 | 60.428 | 0.0041074 | 0.0092473 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 219 | | | | | | | | | | MinLeafSize: 1293 | | | | | | | | | | MaxNumSplits: 25 |
| 108 | 6 | Accept | 0.022568 | 62.238 | 0.0041074 | 0.0094314 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 231 | | | | | | | | | | MinLeafSize: 1344 | | | | | | | | | | MaxNumSplits: 19 |
| 109 | 6 | Accept | 0.025383 | 59.558 | 0.0041074 | 0.0091873 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 222 | | | | | | | | | | MinLeafSize: 1404 | | | | | | | | | | MaxNumSplits: 12 |
| 110 | 6 | Accept | 0.022522 | 65.564 | 0.0041074 | 0.009405 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 243 | | | | | | | | | | MinLeafSize: 1360 | | | | | | | | | | MaxNumSplits: 14 |
| 111 | 6 | Accept | 0.022799 | 61.264 | 0.0041074 | 0.0091171 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 226 | | | | | | | | | | MinLeafSize: 1356 | | | | | | | | | | MaxNumSplits: 90 |
| 112 | 6 | Accept | 0.058935 | 45.569 | 0.0041074 | 0.0096787 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 207 | | | | | | | | | | MinLeafSize: 2521 | | | | | | | | | | MaxNumSplits: 33 |
| 113 | 6 | Accept | 0.022937 | 64.08 | 0.0041074 | 0.0087354 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 231 | | | | | | | | | | MinLeafSize: 1383 | | | | | | | | | | MaxNumSplits: 88 |
| 114 | 6 | Accept | 0.027783 | 59.671 | 0.0041074 | 0.012899 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 224 | | | | | | | | | | MinLeafSize: 1551 | | | | | | | | | | MaxNumSplits: 20 |
| 115 | 6 | Accept | 0.027737 | 53.366 | 0.0041074 | 0.0096795 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 203 | | | | | | | | | | MinLeafSize: 1548 | | | | | | | | | | MaxNumSplits: 11 |
| 116 | 6 | Accept | 0.027137 | 62.9 | 0.0041074 | 0.009529 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 227 | | | | | | | | | | MinLeafSize: 1479 | | | | | | | | | | MaxNumSplits: 10 |
| 117 | 6 |接受| 0.59166 | 3642 | 0.0041074 | 0.009529 |支持|编码:onevsall | | | | | | | | | | BoxConstraint: 658.37 | | | | | | | | | | KernelScale: 0.0016161 |
| 118 | 6 |接受| 0.23163 | 1370.3 | 0.0041074 | 0.009529 |支持|编码:onevsall | | | | | | | | | | BoxConstraint: 720.53 | | | | | | | | | | KernelScale: 1.1039 |
| 119 | 6 | Accept | 0.027183 | 58.796 | 0.0041074 | 0.0097206 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 223 | | | | | | | | | | MinLeafSize: 1544 | | | | | | | | | | MaxNumSplits: 25 |
| 120 | 6 | Accept | 0.027091 | 62.912 | 0.0041074 | 0.0086543 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 238 | | | | | | | | | | MinLeafSize: 1499 | | | | | | | | | | MaxNumSplits: 42 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 121 | 6 |接受| 0.59166 | 3676.1 | 0.0041074 | 0.0086543 |支持向量机|编码:onevsall  | | | | | | | | | | BoxConstraint: 17.982  | | | | | | | | | | KernelScale: 0.0043756 |
| 122 | 6 | Accept | 0.027783 | 56.988 | 0.0041074 | 0.0095236 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 225 | | | | | | | | | | MinLeafSize: 1551 | | | | | | | | | | MaxNumSplits: 38 |
| 123 | 6 |接受| 0.22896 | 1222.6 | 0.0041074 | 0.0095236 |支持|编码:onevsall | | | | | | | | | | BoxConstraint: 30.726 | | | | | | | | | | KernelScale: 1.2194 |
| 124 | 6 |接受| 0.028706 | 53.614 | 0.0041074 | 0.0094105 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 213 | | | | | | | | | | MinLeafSize: 1571 | | | | | | | | | | MaxNumSplits: 64 |
| 125 | 6 | Accept | 0.026906 | 68.419 | 0.0041074 | 0.0096214 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 256 | | | | | | | | | | MinLeafSize: 1548 | | | | | | | | | | MaxNumSplits: 72 |
| 126 | 6 |接受| 0.040705 | 51.812 | 0.0041074 | 0.0096155 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 206 | | | | | | | | | | MinLeafSize: 2028 | | | | | | | | | | MaxNumSplits: 12 |
| 127 | 6 |接受| 0.10901 | 491.59 | 0.0041074 | 0.0096155 |支持|编码:onevsall | | | | | | | | | | BoxConstraint: 317.07 | | | | | | | | | | KernelScale: 3.345 |
| 128 | 6 | Accept | 0.038813 | 50.737 | 0.0041074 | 0.0094473 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 215 | | | | | | | | | | MinLeafSize: 1857 | | | | | | | | | | MaxNumSplits: 77 |
| 129 | 6 | Accept | 0.04269 | 56.006 | 0.0041074 | 0.01155 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 250 | | | | | | | | | | MinLeafSize: 2192 | | | | | | | | | | MaxNumSplits: 17 |
| 130 | 6 |最佳| 0.0040151 | 144.99 | 0.0040151 | 0.0076249 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 286 | | | | | | | | | | MinLeafSize: 133 | | | | | | | | | | MaxNumSplits: 91 |
| 131 | 6 |接受| 0.039505 | 54.552 | 0.0040151 | 0.0093087 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 234 | | | | | | | | | | MinLeafSize: 2016 | | | | | | | | | | MaxNumSplits: 15 |
| 132 | 6 |接受| 0.039921 | 49.255 | 0.0040151 | 0.0077926 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 215 | | | | | | | | | | MinLeafSize: 1997 | | | | | | | | | | MaxNumSplits: 77 |
| 133 | 6 |接受| 0.048182 | 48.846 | 0.0040151 | 0.0086785 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 213 | | | | | | | | | | MinLeafSize: 2243 | | | | | | | | | | MaxNumSplits: 13 |
| 134 | 6 |接受| 0.041859 | 66.081 | 0.0040151 | 0.0079912 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 263 | | | | | | | | | | MinLeafSize: 2099 | | | | | | | | | | MaxNumSplits: 32 |
| 135 | 6 | Accept | 0.046105 | 68.865 | 0.0040151 | 0.0078968 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 287 | | | | | | | | | | MinLeafSize: 2342 | | | | | | | | | | MaxNumSplits: 12 |
| 136 | 6 |接受| 0.0042459 | 150.03 | 0.0040151 | 0.008766 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 297 | | | | | | | | | | MinLeafSize: 163 | | | | | | | | | | maxnum拆分:92 |
| 137 | 6 |接受| 0.046289 | 62.375 | 0.0040151 | 0.012639 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 273 | | | | | | | | | | MinLeafSize: 2260 | | | | | | | | | | MaxNumSplits: 67 |
| 138 | 6 | Accept | 0.044028 | 53.269 | 0.0040151 | 0.0092674 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 224 | | | | | | | | | | MinLeafSize: 2190 | | | | | | | | | | MaxNumSplits: 12 |
| 139 | 6 | Accept | 0.04892 | 45.442 | 0.0040151 | 0.006892 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 207 | | | | | | | | | | MinLeafSize: 2354 | | | | | | | | | | MaxNumSplits: 17 |
| 140 | 6 |接受| 0.11515 | 99.696 | 0.0040151 | 0.0093722 |集成|方法:包| | | | | | | | | | NumLearningCycles: 281 | | | | | | | | | | MinLeafSize: 2297 | | | | | | | | | | maxnum拆分:30 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 141 | 6 |接受| 0.10845 | 91.18 | 0.0040151 | 0.0065827 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 254  | | | | | | | | | | MinLeafSize: 2275  | | | | | | | | | | MaxNumSplits: 37 |
| 142 | 6 |接受| 0.74165 | 34.944 | 0.0040151 | 0.0072537 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 253 | | | | | | | | | | MinLeafSize: 8804 | | | | | | | | | | MaxNumSplits: 11 |
| 143 | 6 |最佳| 0.0038767 | 158.75 | 0.0038767 | 0.0057394 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 294 | | | | | | | | | | MinLeafSize: 106 | | | | | | | | | | maxnum拆分:94 |
| 144 | 6 |接受| 0.04592 | 64.846 | 0.0038767 | 0.0062301 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 290 | | | | | | | | | | MinLeafSize: 2326 | | | | | | | | | | MaxNumSplits: 34 |
| 145 | 6 | Accept | 0.047074 | 55.822 | 0.0038767 | 0.0062084 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 257 | | | | | | | | | | MinLeafSize: 2345 | | | | | | | | | | MaxNumSplits: 60 |
| 146 | 6 |接受| 0.04832 | 50.283 | 0.0038767 | 0.0092604 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 227 | | | | | | | | | | MinLeafSize: 2350 | | | | | | | | | | MaxNumSplits: 19 |
| 147 | 6 |接受| 0.016107 | 26.377 | 0.0038767 | 0.0092604 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 94.982 | | | | | | | | | | KernelScale: 222.61 |
| 148 | 6 |接受| 0.050166 | 53.779 | 0.0038767 | 0.0068092 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 233 | | | | | | | | | | MinLeafSize: 2407 | | | | | | | | | | MaxNumSplits: 20 |
| 149 | 6 |接受| 0.058196 | 46.596 | 0.0038767 | 0.0063746 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 210 | | | | | | | | | | MinLeafSize: 2469 | | | | | | | | | | MaxNumSplits: 17 |
| 150 | 6 |接受| 0.067519 | 48.158 | 0.0038767 | 0.0065889 |集成|方法:AdaBoostM2 | | | | | | | | | | NumLearningCycles: 233 | | | | | | | | | | MinLeafSize: 3054 | | | | | | | | | | maxnum拆分:68 |

__________________________________________________________ 优化完成。达到了150个目标。总函数计算:150总运行时间:5515.7636秒。方法:AdaBoostM2 NumLearningCycles: 294 MinLeafSize: 106 MaxNumSplits: 94观测目标函数值= 0.0038767估计目标函数值= 0.006912函数评估时间= 158.7495最佳估计可行点(根据模型)是一个集成模型,方法:AdaBoostM2 NumLearningCycles: 210 MinLeafSize: 129 MaxNumSplits:100估计目标函数值= 0.0065889估计函数评估时间= 129.4444

返回的最终模型fitcauto对应于最佳估计可行点。在返回模型之前,函数使用整个训练数据(XTrain而且YTrain),列出的学习者(或模型)类型,以及显示的超参数值。

评估测试集性能

评估最终模型在测试数据集上的性能。

testAccuracy = 1 -损失(Mdl,XTest,YTest)
testAccuracy = 0.9963

最终的模型正确地分类了超过99%的观测数据。

使用fitcauto自动选择具有优化超参数的分类模型,给定的预测器和响应数据存储在表中。在将数据传递给fitcauto,执行特征选择以从数据集中移除不重要的预测因子。

加载和分区数据

阅读示例文件CreditRating_Historical.dat变成一个表。预测数据包括公司客户列表的财务比率和行业部门信息。响应变量由评级机构指定的信用评级组成。预览数据集的前几行。

信用评级=可读(“CreditRating_Historical.dat”);头(creditrating)
ans =8×8表ID WC_TA RE_TA EBIT_TA MVE_BVTD S_TA行业评级  _____ ______ ______ _______ ________ _____ ________ _______ 62394 0.013 0.104 0.036 0.447 0.142 3{“BB”}48608 0.232 0.335 0.062 1.969 0.281 8 {A} 42444 0.311 0.367 0.074 1.935 0.366 1 {A} 48631 0.194 0.263 0.062 1.017 0.228 - 4 {BBB的}43768 0.121 0.413 0.057 3.647 0.466 12 {' AAA '} 39255 -0.117 -0.799 0.01 0.179 0.082 - 4{“CCC”}62236 0.087 0.158 0.049 0.816 0.324 - 2 {BBB的}39354 0.005 0.181 0.034 2.597 0.388 7{“AA”}

的每一个值ID变量是唯一的客户ID,即长度(独特(creditrating.ID))等于在creditrating,ID变量是一个糟糕的预测器。删除ID变量,并将行业变量到a分类变量。

信用评级= removevars(信用评级,“ID”);creditrating。行业= categorical(creditrating.Industry);

将数据划分为训练集和测试集。将大约85%的观测数据用于模型选择和超参数调优过程,15%的观测数据用于测试返回的最终模型的性能fitcauto在新数据上。使用cvpartition对数据进行分区。

rng (“默认”用于分区的再现性C = cvpartition(信用评级。评级,“坚持”, 0.15);trainingIndices = training(c);%训练集的指数testIndices =测试(c);%测试集的索引creditTrain =信用评级(trainingIndices,:);creditTest = creditrating(testIndices,:);

执行特征选择

然后将训练数据传递给fitcauto,找到重要的预测因子fscchi2函数。可视化预测分数使用酒吧函数。因为有些分数可以,酒吧丢弃值,首先绘制有限的分数,然后绘制有限的表示分数用不同的颜色表示。

[idx,scores] = fscchi2(creditTrain,“评级”);栏(分数(idx))%表示有限分数持有veryImportant = isinf(分数);finiteMax = max(分数(~veryImportant));酒吧(finiteMax *重要(idx))%表示Inf分数持有xticklabels (strrep (creditTrain.Properties.VariableNames (idx),“_”“\ _”xtickangle(45) legend({“有限的分数”“正分数”})

注意行业Predictor的分数低,对应ap-value大于0.05,表示行业可能不是一个重要的特性。删除行业训练和测试数据集的特征。

creditTrain = removevars(creditTrain,“行业”);creditTest = removevars(creditTest,“行业”);

运行fitcauto

fitcauto不支持线性或内核分万博1manbetx类模型的表。为了包含这些模型(或学习器)类型,在将训练数据传递给之前,将预测器数据转换为矩阵形式fitcauto.还要转换测试数据。这种转换是可能的,因为所有剩余的预测器都是数字的。

predictorTrain = removevars(creditTrain,“评级”);XTrain = table2array(predictorTrain);YTrain = creditTrain.Rating;predictorTest = removevars(creditTest,“评级”);XTest = table2array(predictorTest);YTest = credittest .评级;

将训练数据传递给fitcauto.该函数使用贝叶斯优化来选择模型及其超参数值,并返回经过训练的模型Mdl用最好的预期表现。指定尝试所有可用的学习器类型并并行运行优化(需要并行计算工具箱™)。返回第二个输出结果其中包含贝叶斯优化的细节。

预计这个过程需要一些时间。

选项= struct(“UseParallel”,真正的);[Mdl,Results] = fitcauto(XTrain,YTrain,...“学习者”“所有”“HyperparameterOptimizationOptions”、选择);
警告:建议在优化朴素贝叶斯'Width'参数时,首先标准化所有数值预测器。如果您已经这样做了,请忽略此警告。
使用“本地”配置文件启动并行池(parpool)…连接到并行池(worker数量:6)。将目标函数复制到worker…将目标函数复制给工人。
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 最好1 | 6 | | 0.42716 | 2.8649 | 0.42716 | 0.42716 | discr |三角洲:0.00046441 | | | | | | | | | | Gamma: 0.2485 |
| 2 | 4 |接受| 0.74185 | 5.0967 | 0.24948 | 0.42911 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.48455  | | | | | | | | | | 最好KernelScale: 354.44 | | 3 | 4 | | 0.24948 | 4.9586 | 0.24948 | 0.42911 | |线性编码:onevsone  | | | | | | | | | | λ:6.3551 e-08  | | | | | | | | | | 学习者:物流| | 4 | 4 |接受| 0.29794 | 3.246 | 0.24948 | 0.42911 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 12  | | | | | | | | | | LearnRate:0.063776 | | | | | | | | | | MinLeafSize: 277 |
| 5 | 3 | Best | 0.24708 | 9.215 | 0.24708 | 0.36903 | kernel | Coding: onevsone | | | | | | | | | | KernelScale: 7.8433 | | | | | | | | | | Lambda: 1.4468e-06 | | 6 | 3 b| Accept | 0.25067 | 0.65429 | 0.24708 | 0.36903 | knn | NumNeighbors: 105 | | | | | | | | | | Distance: minkowski |
| 7 | 6 | Accept | 0.52917 | 2.9984 | 0.24708 | 0.63551 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 0.002417 | | | | | | | | | | KernelScale: 356.9 |
| 8 | 3 |接受| 0.55818 | 0.61959 | 0.24708 | 0.58763 | discr |三角洲:0.98612  | | | | | | | | | | γ:0.86519 | | 9 | 3 |接受| 0.3781 | 1.7268 | 0.24708 | 0.58763 | |线性编码:onevsall  | | | | | | | | | | λ:1.0412 e-06  | | | | | | | | | | 学习者:物流| | 10 | 3 |接受| 0.43225 | 0.73455 | 0.24708 | 0.58763 | discr |三角洲:0.00013711  | | | | | | | | | | γ:0.60585 | | 11 | 3 |接受| 0.47712 | 4.1471 | 0.24708 | 0.58763 |支持向量机|编码:onevsall | | | | | | | | | | BoxConstraint: 2.7347 | | | | | | | | | | KernelScale: 24.465 |
| 12 | 6 | Accept | 0.25695 | 2.4614 | 0.24708 | 0.58763 | nb | DistributionNames: kernel | | | | | | | | | | Width: 0.057566 |
| | 3 | 13日接受| 0.26383 | 0.54745 | 0.24379 | 0.58763 | |树MinLeafSize: 30 | | 14 | 3 |接受| 0.42327 | 0.84715 | 0.24379 | 0.58763 |资讯| NumNeighbors: 56  | | | | | | | | | | 距离:余弦| |最好15 | 3 | | 0.24379 | 2.0052 | 0.24379 | 0.58763 | |线性编码:onevsone  | | | | | | | | | | λ:5.9172 e-05  | | | | | | | | | | 学习者:支持向量机| | 16 | 3 |接受| 0.82112 | 5.0159 | 0.24379 | 0.58763 | |内核编码:onevsall  | | | | | | | | | | KernelScale:0.0043375 | | | | | | | | | | Lambda: 0.0023789 |
| 17 | 6 |接受| 0.45169 | 1.0941 | 0.24379 | 0.32154 |线性|编码:onevsall | | | | | | | | | | Lambda: 0.0028505 | | | | | | | | | |学习者:支持|
18岁| | 3 |接受| 0.53365 | 2.9722 | 0.24379 | 0.31096 |支持向量机|编码:onevsall  | | | | | | | | | | BoxConstraint: 0.0022255  | | | | | | | | | | 19 KernelScale: 206.47 | | | 3 |接受| 0.74185 | 0.69997 | 0.24379 | 0.31096 | discr |三角洲:788.29  | | | | | | | | | | γ:0.096315 | | 20 | 3 |接受| 0.39186 | 3.7201 | 0.24379 | 0.31096 | |内核编码:onevsall  | | | | | | | | | | KernelScale: 22.787  | | | | | | | | | | λ:4.7789 e-05  | |==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 21日| 3 |接受| 0.24439 | 1.7527 | 0.24379 | 0.31096 | |线性编码:onevsone  | | | | | | | | | | λ:1.9056 e-08  | | | | | | | | | | 学习者:支持向量机|
| 22 | 6 | Accept | 0.4834 | 0.42353 | 0.24379 | 0.31096 | knn | NumNeighbors: 72 | | | | | | | | | | Distance: correlation |
| | 3 | 23日接受| 0.74185 | 0.12006 | 0.24379 | 0.31096 | |树MinLeafSize: 1558 | | 24 | 3 |接受| 0.27042 | 0.67315 | 0.24379 | 0.31096 | |树MinLeafSize: 76 | | 25 | 3 |接受| 0.45887 | 4.6976 | 0.24379 | 0.31096 |支持向量机|编码:onevsall  | | | | | | | | | | BoxConstraint: 7.1247  | | | | | | | | | | KernelScale: 0.9781 | | | 3 | 26日接受| 0.28208 | 0.88675 | 0.24379 | 0.31096 |资讯| NumNeighbors: 291  | | | | | | | | | | 闵可夫斯基距离:|
| 27 | 6 | Accept | 0.43255 | 0.13008 | 0.24379 | 0.31096 | discr | Delta: 0.016844 | | | | | | | | | | Gamma: 0.64466 |
| | 4 | 28日接受| 0.66796 | 0.25188 | 0.24379 | 0.31096 |资讯| NumNeighbors: 77  | | | | | | | | | | 距离:jaccard | | | 4 | 29日接受| 0.28059 | 0.44707 | 0.24379 | 0.31096 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南| | 30 | 4 |接受| 0.65869 | 0.38657 | 0.24379 | 0.31096 |资讯| NumNeighbors: 61  | | | | | | | | | | 距离:jaccard |
| 31 | 3 | Accept | 0.74185 | 6.6038 | 0.24379 | 0.31096 | kernel | Coding: onevsone | | | | | | | | | | KernelScale: 0.0010962 | | | | | | | | | | Lambda: 0.035691 | | 32 | 3 b| Accept | 0.27789 | 0.11562 | 0.24379 | 0.31096 | tree | MinLeafSize: 94 |
| 33 | 6 | Accept | 0.74185 | 0.096361 | 0.24379 | 0.31096 | discr | Delta: 244.12 | | | | | | | | | | Gamma: 0.23748 |
| | 3 | 34接受| 0.32456 | 0.18499 | 0.24349 | 0.31096 | |树MinLeafSize: 3 | | 35 | 3 |接受| 0.63506 | 2.4392 | 0.24349 | 0.31096 |资讯| NumNeighbors: 1563  | | | | | | | | | | 距离:mahalanobis | | 36最好| 3 | | 0.24349 | 2.1919 | 0.24349 | 0.31096 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.044076  | | | | | | | | | | 37 KernelScale: 0.035497 | | | 3 |接受| 0.6216 | 2.1779 | 0.24349 | 0.31096 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint:0.055096 | | | | | | | | | | KernelScale: 6.2342 |
| 38 | 6 |接受| 0.42208 | 0.1616 | 0.24349 | 0.31096 | discr | Delta: 0.0090118 | | | | | | | | | | Gamma: 0.062207 |
39 | | 4 |接受| 0.47173 | 3.2018 | 0.24349 | 0.31096 |支持向量机|编码:onevsall  | | | | | | | | | | BoxConstraint: 3.7197  | | | | | | | | | | 40 KernelScale: 2.9509 | | | 4 |接受| 0.74185 | 2.4165 | 0.24349 | 0.31096 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.019393  | | | | | | | | | | KernelScale:332.27  | |==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 41 | 4 |接受| 0.53126 | 2.5238 | 0.24349 | 0.31096 |资讯| NumNeighbors: 372  | | | | | | | | | | 距离:mahalanobis |
| 42 | 4 | Accept | 0.25965 | 15.125 | 0.24349 | 0.27803 | ensemble | Method: AdaBoostM2 | | | | | | | | | | NumLearningCycles: 150 | | | | | | | | | | LearnRate: 0.014842 | | | | | | | | | | MinLeafSize: 21 |
| 43 | 6 |接受| 0.74185 | 4.4109 | 0.24349 | 0.27803 |内核|编码:onevsone | | | | | | | | | | KernelScale: 24.681 | | | | | | | | | | Lambda: 0.092669 |
44 | | 3 |接受| 0.26413 | 22.354 | 0.24349 | 0.27803 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 304  | | | | | | | | | | LearnRate:南  | | | | | | | | | | 45 MinLeafSize: 100 | | | 3 |接受| 0.24499 | 14.917 | 0.24349 | 0.27803 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.019387  | | | | | | | | | | 46 KernelScale: 0.0047515 | | | 3 |接受| 0.74185 | 4.3649 | 0.24349 | 0.27803 | |内核编码:onevsone  | | | | | | | | | | KernelScale:24.681 | | | | | | | | | | Lambda: 0.092669 | | 47 | 3 | Accept | 0.74185 | 7.1585 | 0.24349 | 0.27803 |内核|编码:onevsone | | | | | | | | | | KernelScale: 24.681 | | | | | | | | | | Lambda: 0.092669 |
| 48 | 6 | Accept | 0.28059 | 0.18491 | 0.24349 | 0.27255 | | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 49 | 3 |接受| 0.60754 | 3.9106 | 0.24349 | 0.27255 | |内核编码:onevsall  | | | | | | | | | | KernelScale: 176.2  | | | | | | | | | | 50λ:2.3903 e-06 | | | 3 |接受| 0.42507 | 0.11067 | 0.24349 | 0.27255 | discr |三角洲:0.25925  | | | | | | | | | | 51伽马:0.82918 | | | 3 |接受| 0.28806 | 4.3596 | 0.24349 | 0.27255 |合奏|方法:RUSBoost  | | | | | | | | | | NumLearningCycles: 42  | | | | | | | | | | LearnRate: 0.0031729  | | | | | | | | | | MinLeafSize:33 | | 52 | 3 | Accept | 0.47024 | 3.0918 | 0.24349 | 0.27255 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 0.0028932 | | | | | | | | | | KernelScale: 0.47789 |
| 53 | 6 |接受| 0.49477 | 3.6628 | 0.24349 | 0.27255 |内核|编码:onevsall | | | | | | | | | | KernelScale: 0.093586 | | | | | | | | | | Lambda: 0.0050756 |
54 | | 4 |接受| 0.27131 | 0.15291 | 0.24349 | 0.27548 | |树MinLeafSize: 20 | | | 4 |接受55 | 0.28059 | 0.46186 | 0.24349 | 0.27548 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南| | 56 | 4 |接受| 0.28059 | 0.45079 | 0.24349 | 0.27548 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南|
| 57 | 4 | Accept | 0.32456 | 0.17695 | 0.24349 | 0.27548 | tree | MinLeafSize: 3 |
| 58 | 4 | Accept | 0.33144 | 1.2562 | 0.24349 | 0.2843 | nb | DistributionNames: kernel | | | | | | | | | | Width: 0.0020049 |
59 | | 3 |接受| 0.43314 | 23.917 | 0.24349 | 0.28235 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 357  | | | | | | | | | | LearnRate: 0.035928  | | | | | | | | | | 60 MinLeafSize: 799 | | | 3 |接受| 0.28059 | 0.13198 | 0.24349 | 0.28235 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南|
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 61 | 6 |接受| 0.26234 | 0.55057 | 0.24349 | 0.28235 |资讯| NumNeighbors: 157  | | | | | | | | | | 距离:欧几里得|
| 62 | 4 |接受| 0.31917 | 10.817 | 0.24349 | 0.28235 |合奏|方法:RUSBoost  | | | | | | | | | | NumLearningCycles: 132  | | | | | | | | | | LearnRate: 0.0014516  | | | | | | | | | | MinLeafSize: 104 | | 63 | |接受| 0.24529 | 5.709 | 0.24349 | 0.28235 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 4.6933  | | | | | | | | | | λ:9.8945 e-07 | | 64 | |接受| 0.43255 | 0.74626 | 0.24349 | 0.28235 | |线性编码:onevsall  | | | | | | | | | | λ:2.7304e-07 | | | | | | | | | |学习者:支持向量机|
| 65 | 4 | Accept | 0.57972 | 2.8035 | 0.24349 | 0.28235 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 0.12255 | | | | | | | | | | KernelScale: 81.172 |
| 66 | 4 | Accept | 0.26383 | 0.13419 | 0.24349 | 0.28235 | knn | NumNeighbors: 13 | | | | | | | | | |距离:chebychev |
| 67 | 3 | Accept | 0.24469 | 17.277 | 0.24349 | 0.28235 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.062223 | | | | | | | | | | KernelScale: 0.0077043 | | 68 | 3 b| Accept | 0.42596 | 0.095102 | 0.24349 | 0.28235 | discr | Delta: 9.4222e-06 | | | | | | | | | | Gamma: 0.15603 |
| 69 | 6 |接受| 0.67783 | 0.67221 | 0.24349 | 0.28235 |线性|编码:onevsall | | | | | | | | | | Lambda: 2.4732 | | | | | | | | | |学习者:logistic |
| 70 | 5 |接受| 0.25695 | 0.16748 | 0.24349 | 0.28235 | knn | NumNeighbors: 14 | | | | | | | | | |距离:cityblock | | 71 | 5 b|接受| 0.46276 | 0.7837 | 0.24349 | 0.28235 |线性|编码:onevsall | | | | | | | | | | Lambda: 0.0033674 | | | | | | | | | | Learner: svm |
| 72 | 4 |接受| 0.28448 | 6.0063 | 0.24349 | 0.27803 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 78  | | | | | | | | | | LearnRate:南  | | | | | | | | | | MinLeafSize: 168 | | 73 | |接受| 0.6548 | 2.4452 | 0.24349 | 0.27803 | nb | DistributionNames:内核  | | | | | | | | | | 宽度:2.6013 |
| 74 | 4 | Accept | 0.42926 | 0.1085 | 0.24349 | 0.27803 | discr | Delta: 0.041145 | | | | | | | | | | Gamma: 0.34864 |
| 75 | 2 |接受| 0.24529 | 222.53 | 0.24349 | 0.27803 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.25488  | | | | | | | | | | KernelScale: 0.0037823 | | 76 | |接受| 0.25217 | 21.217 | 0.24349 | 0.27803 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 257  | | | | | | | | | | LearnRate:南  | | | | | | | | | | MinLeafSize: 19 | | 77 | |接受| 0.32516 | 0.19708 | 0.24349 | 0.27803 | |树MinLeafSize: 5 |
| 78 | 6 |接受| 0.43703 | 0.87585 | 0.24349 | 0.27803 |线性|编码:onevsall | | | | | | | | | | Lambda: 0.013265 | | | | | | | | | |学习者:logistic |
| 79 | 3 |接受| 0.25695 | 2.1197 | 0.24349 | 0.27803 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 712.17  | | | | | | | | | | KernelScale: 79.244 | | 80 | |接受| 0.25456 | 2.276 | 0.24349 | 0.27803 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 22  | | | | | | | | | | LearnRate: 0.28501  | | | | | | | | | | MinLeafSize:104年  | |==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 81 | 3 |接受| 0.31529 | 3.001 | 0.24349 | 0.27803 |合奏|方法:RUSBoost  | | | | | | | | | | NumLearningCycles: 22  | | | | | | | | | | LearnRate: 0.10996  | | | | | | | | | | MinLeafSize: 104 | | 82 | |接受| 0.42596 | 0.19157 | 0.24349 | 0.27803 | discr |三角洲:0.00034456 | | | | | | | | | | Gamma: 0.08223 |
| 83 | 5 | Accept | 0.25456 | 7.1816 | 0.24349 | 0.27803 | kernel | Coding: onevsone | | | | | | | | | | KernelScale: 0.78697 | | | | | | | | | | Lambda: 4.1197e-06 | | 84 | 5 b| Accept | 0.43015 | 0.092979 | 0.24349 | 0.27803 | discr | Delta: 0.0069822 | | | | | | | | | | Gamma: 0.49526 |
| 85 | 3 |接受| 0.32905 | 0.3807 | 0.24349 | 0.27803 |资讯| NumNeighbors: 65  | | | | | | | | | | 距离:seuclidean | | 86 | |接受| 0.50194 | 0.58497 | 0.24349 | 0.27803 | |线性编码:onevsall  | | | | | | | | | | λ:22.21  | | | | | | | | | | 学习者:支持向量机| | 87 | |接受| 0.30242 | 0.2907 | 0.24349 | 0.27803 | |树MinLeafSize: 219 |
| 88 | 5 |接受| 0.28328 | 11.457 | 0.24349 | 0.27803 | |内核编码:onevsall  | | | | | | | | | | KernelScale: 0.24613  | | | | | | | | | | λ:6.5582 e-06 | | 89 | |接受| 0.67903 | 3.2891 | 0.24349 | 0.27803 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 66.432  | | | | | | | | | | λ:0.00097982 |
| 90 | 3 |接受| 0.28059 | 0.15967 | 0.24349 | 0.27803 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南| | 91 | |接受| 0.74185 | 0.1332 | 0.24349 | 0.27803 | discr |三角洲:89.479  | | | | | | | | | | γ:0.11568 | | 92 | |接受| 0.29704 | 1.6362 | 0.24349 | 0.27803 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.90434  | | | | | | | | | | KernelScale: 5.1972 |
| 93 | 4 |接受| 0.75232 | 6.2607 | 0.24349 | 0.27803 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 0.0025204  | | | | | | | | | | λ:0.0017056 | | 94 | |接受| 0.61203 | 2.7767 | 0.24349 | 0.27803 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 53  | | | | | | | | | | LearnRate:南  | | | | | | | | | | MinLeafSize: 926 | | 95 | |接受| 0.42926 | 0.1032 | 0.24349 | 0.27803 | discr |三角洲:0.00083172  | | | | | | | | | | γ:0.41309 |
| 96 | 2 |接受| 0.24619 | 3.3793 | 0.24349 | 0.2819 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 305.08  | | | | | | | | | | KernelScale: 1.4567 | | 97 | |接受| 0.71911 | 0.67791 | 0.24349 | 0.2819 |资讯| NumNeighbors: 659  | | | | | | | | | | 距离:jaccard | | 98 | |接受| 0.37212 | 1.5638 | 0.24349 | 0.2819 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 15  | | | | | | | | | | LearnRate: 0.010706  | | | | | | | | | | MinLeafSize: 366 |
| 99 | 5 | Accept | 0.28059 | 0.1674 | 0.24349 | 0.2819 | nb | DistributionNames: normal | | | | | | | | | | Width: NaN | | 100 | 5 | Accept | 0.30093 | 0.10739 | 0.24349 | 0.2819 | tree | MinLeafSize: 135 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 101 | 3 |接受| 0.2767 | 5.3033 | 0.24349 | 0.2819 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 53  | | | | | | | | | | LearnRate: 0.012335  | | | | | | | | | | MinLeafSize: 5 | | 102 | |接受| 0.28597 | 2.062 | 0.24349 | 0.2819 |合奏|方法:RUSBoost | | | | | | | | | | NumLearningCycles: 23 | | | | | | | | | | LearnRate: 0.018926 | | | | | | | | | | MinLeafSize: 1 | | 103 | 3 | Accept | 0.61771 | 0.24182 | 0.24349 | 0.2819 | tree | MinLeafSize: 1200 |
| 104 | 6 | Accept | 0.25576 | 3.0306 | 0.24349 | 0.27907 | ensemble | Method: Bag | | | | | | | | | | NumLearningCycles: 38 | | | | | | | | | | LearnRate: NaN | | | | | | | | | | MinLeafSize: 28 |
| 105 | 3 |接受| 0.31977 | 1.4678 | 0.24349 | 0.27907 | |线性编码:onevsone  | | | | | | | | | | λ:0.040102  | | | | | | | | | | 学习者:物流| | 106 | |接受| 0.28059 | 0.15767 | 0.24349 | 0.27907 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南| | 107 | |接受| 0.52976 | 3.7522 | 0.24349 | 0.27907 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 52  | | | | | | | | | | LearnRate: 0.0051271  | | | | | | | | | | MinLeafSize:854 | | 108 | 3 |接受| 0.3781 | 1.876 | 0.24349 | 0.27907 |线性|编码:onevsall | | | | | | | | | | Lambda: 9.0139e-07 | | | | | | | | | |学习者:logistic |
| 109 | 6 |最佳| 0.2429 | 2.1357 | 0.2429 | 0.27907 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.10541 | | | | | | | | | | KernelScale: 0.061524 |
| 110 | 3 |接受| 0.30212 | 15.324 | 0.2429 | 0.27907 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 249  | | | | | | | | | | LearnRate:南  | | | | | | | | | | MinLeafSize: 292 | | 111 | |接受| 0.25905 | 6.4685 | 0.2429 | 0.27907 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 61  | | | | | | | | | | LearnRate:南  | | | | | | | | | | MinLeafSize: 3 | | 112 | |接受| 0.4819 | 3.2352 | 0.2429 | 0.27907 |支持向量机|编码:onevsall | | | | | | | | | | BoxConstraint: 239.8 | | | | | | | | | | KernelScale: 51.105 | | 113 | 3 | Accept | 0.72241 | 3.0692 | 0.2429 | 0.27907 | nb | DistributionNames: kernel | | | | | | | | | | Width: 7.4433 |
| 114 | 6 |接受| 0.45947 | 0.55863 | 0.2429 | 0.27907 |线性|编码:onevsall | | | | | | | | | | Lambda: 0.028513 | | | | | | | | | |学习者:支持|
| 115 | 3 |接受| 0.74185 | 2.3519 | 0.2429 | 0.27907 | nb | DistributionNames:内核  | | | | | | | | | | 宽度:74.975 | | 116 | |接受| 0.29794 | 1.7602 | 0.2429 | 0.27907 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 14  | | | | | | | | | | LearnRate: 0.0011077  | | | | | | | | | | MinLeafSize: 2 | | 117 | |接受| 0.48549 | 14.081 | 0.2429 | 0.27907 |支持向量机|编码:onevsall  | | | | | | | | | | BoxConstraint: 0.36208  | | | | | | | | | | KernelScale:0.061675 | | 118 | 3 | Accept | 0.38169 | 3.4566 | 0.2429 | 0.27907 |内核|编码:onevsall | | | | | | | | | | KernelScale: 6.0043 | | | | | | | | | | Lambda: 0.0033315 |
| 119 | 6 |接受| 0.24559 | 5.4474 | 0.2429 | 0.27907 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0059499 | | | | | | | | | | KernelScale: 0.0045622 |
最好| 120 | 4 | | 0.2408 | 1.6297 | 0.2408 | 0.27907 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.011671  | | | | | | | | | | KernelScale: 0.050076  | |==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 121 | 4 |接受| 0.25725 | 15.492 | 0.2408 | 0.27907 |合奏|方法:AdaBoostM2  | | | | | | | | | | NumLearningCycles: 149  | | | | | | | | | | LearnRate: 0.10812  | | | | | | | | | | MinLeafSize: 1 | | 122 | |接受| 0.47831 | 0.088834 | 0.2408 | 0.27907 | |树MinLeafSize: 833 |
| 123 | 4 |最佳| 0.2405 | 1.4439 | 0.2405 | 0.24636 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.015035 | | | | | | | | | | KernelScale: 0.057715 |
| 124 | 4 |接受| 0.2417 | 1.5135 | 0.2405 | 0.24498 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0095934 | | | | | | | | | | KernelScale: 0.058685 |
| 125 | 4 | Best | 0.2399 | 1.4853 | 0.2399 | 0.24443 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.035844 | | | | | | | | | | KernelScale: 0.08166 |
| 126 | 4 |接受| 0.24529 | 63.489 | 0.2399 | 0.24408 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 405.36 | | | | | | | | | | KernelScale: 0.3059 |
| 127 | 4 |接受| 0.2417 | 1.4706 | 0.2399 | 0.24465 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.016665 | | | | | | | | | | KernelScale: 0.083583 |
| 128 | 4 |接受| 0.25546 | 1.4908 | 0.2399 | 0.24411 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.038736 | | | | | | | | | | KernelScale: 0.55267 |
| 129 | 4 |接受| 0.30841 | 1.885 | 0.2399 | 0.24408 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0015949 | | | | | | | | | | KernelScale: 0.34759 |
| 130 | 4 | Accept | 0.36494 | 1.9172 | 0.2399 | 0.24384 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.017084 | | | | | | | | | | KernelScale: 1.9122 |
| 131 | 4 | Accept | 0.30242 | 1.6419 | 0.2399 | 0.24389 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.033156 | | | | | | | | | | KernelScale: 1.1823 |
| 132 | 5 |接受| 0.40203 | 1.8764 | 0.2399 | 0.24422 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.022866 | | | | | | | | | | KernelScale: 2.5154 |
| 133 | 5 |接受| 0.24349 | 2.287 | 0.2399 | 0.24422 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.14375 | | | | | | | | | | KernelScale: 0.063056 |
| 134 | 5 |接受| 0.2402 | 1.598 | 0.2399 | 0.24365 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.012787 | | | | | | | | | | KernelScale: 0.061711 |
| 135 | 4 |接受| 0.4843 | 135.72 | 0.2399 | 0.24365 |支持向量机|编码:onevsall  | | | | | | | | | | BoxConstraint: 0.0016902  | | | | | | | | | | KernelScale: 0.031528 | | 136 | |接受| 0.78193 | 10.536 | 0.2399 | 0.24365 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 0.0024164  | | | | | | | | | | λ:3.0566 e-07 |
| 137 | 4 | Accept | 0.4499 | 4.2514 | 0.2399 | 0.24207 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 0.020039 | | | | | | | | | | KernelScale: 0.05327 |
| 138 | 4 |接受| 0.79061 | 10.427 | 0.2399 | 0.24207 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.0012217 | | | | | | | | | | Lambda: 1.8732e-06 |
| 139 | 4 |接受| 0.24379 | 1.5859 | 0.2399 | 0.2419 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0026657 | | | | | | | | | | KernelScale: 0.058261 |
| 140 | 4 |接受| 0.24379 | 1.7337 | 0.2399 | 0.24721 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.02367 | | | | | | | | | | KernelScale: 0.037805 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 141 | 4 |接受| 0.74604 | 9.898 | 0.2399 | 0.24721 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 0.03064  | | | | | | | | | | λ:4.6992 e-06 |
| 142 | 4 |接受| 0.24619 | 4.1003 | 0.2399 | 0.24822 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.40789 | | | | | | | | | | KernelScale: 0.047603 |
| 143 | 4 | Accept | 0.24499 | 9.2411 | 0.2399 | 0.24541 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.80115 | | | | | | | | | | KernelScale: 0.038152 |
| 144 | 4 |接受| 0.2405 | 1.389 | 0.2399 | 0.24287 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.018782 | | | | | | | | | | KernelScale: 0.06909 |
| 145 | 4 |接受| 0.26234 | 4.1253 | 0.2399 | 0.24287 |内核|编码:onevsone | | | | | | | | | | KernelScale: 3.0021 | | | | | | | | | | Lambda: 0.002498 |
| 146 | 4 |接受| 0.24559 | 1.3591 | 0.2399 | 0.24345 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0015537 | | | | | | | | | | KernelScale: 0.061601 |
| 147 | 4 |接受| 0.39426 | 2.1758 | 0.2399 | 0.24345 |内核|编码:onevsall | | | | | | | | | | KernelScale: 2.7611 | | | | | | | | | | Lambda: 0.058785 |
| 148 | 4 |接受| 0.44032 | 9.2619 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.10145 | | | | | | | | | | Lambda: 1.247e-06 |
| 149 | 4 |接受| 0.26114 | 5.2181 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 12.896 | | | | | | | | | | Lambda: 5.2477e-07 |
| 150 | 4 |接受| 0.50374 | 10.004 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.073856 | | | | | | | | | | Lambda: 1.1532e-06 |
| 151 | 4 |接受| 0.27939 | 5.1821 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 16.882 | | | | | | | | | | Lambda: 3.1205e-07 |
| 152 | 4 |接受| 0.27819 | 4.5003 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 18.796 | | | | | | | | | | Lambda: 1.2989e-05 |
| 153 | 4 |接受| 0.27819 | 4.7288 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 20.531 | | | | | | | | | | Lambda: 7.0733e-07 |
| 154 | 4 |接受| 0.0.64792 | 3.5128 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 13.339 | | | | | | | | | | Lambda: 0.015595 |
| 155 | 4 |接受| 0.36135 | 4.5167 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 23.171 | | | | | | | | | | Lambda: 8.9366e-07 |
| 156 | 4 |接受| 0.31947 | 4.9979 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 23.387 | | | | | | | | | | Lambda: 3.5105e-07 |
| 157 | 4 |接受| 0.25935 | 4.7775 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 9.5518 | | | | | | | | | | Lambda: 4.9153e-06 |
| 158 | 4 |接受| 0.30093 | 3.849 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 7.3599 | | | | | | | | | | Lambda: 0.0025979 |
| 159 | 4 |接受| 0.35028 | 4.1896 | 0.2399 | 0.24345 |内核|编码:onevsone | | | | | | | | | | KernelScale: 23.149 | | | | | | | | | | Lambda: 8.8313e-06 |
| 160 | 4 |接受| 0.24559 | 1.3885 | 0.2399 | 0.24519 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0027832 | | | | | | | | | | KernelScale: 0.069321 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 161 | 4 |接受| 0.26324 | 4.97 | 0.2399 | 0.24519 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 11.576  | | | | | | | | | | λ:5.1587 e-06 |
| 162 | 3 |接受| 0.24379 | 430.57 | 0.2399 | 0.24519 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 314.58  | | | | | | | | | | KernelScale: 0.055576 | | 163 | |接受| 0.26742 | 4.2066 | 0.2399 | 0.24519 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 9.9599  | | | | | | | | | | λ:0.0002376 |
| 164 | 6 |接受| 0.25546 | 7.3897 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.66256 | | | | | | | | | | Lambda: 4.9136e-06 |
| 165 | 3 |接受| 0.29165 | 4.0149 | 0.2399 | 0.24519 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 8.7912  | | | | | | | | | | λ:0.00065247 | | 166 | |接受| 0.28059 | 0.16557 | 0.2399 | 0.24519 | nb | DistributionNames:正常  | | | | | | | | | | 宽度:南| | 167 | |接受| 0.242 | 1.5393 | 0.2399 | 0.24519 | |线性编码:onevsone  | | | | | | | | | | λ:4.114 e-07  | | | | | | | | | | 学习者:支持向量机| | 168 | 3 |接受| 0.66437 | 1.3826 | 0.2399 | 0.24519 |线性|编码:onevsone | | | | | | | | | | Lambda: 1.5345 | | | | | | | | | |学习者:logistic |
| 169 | 6 |接受| 0.30302 | 3.6462 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 10.456 | | | | | | | | | | Lambda: 0.0012729 |
| 170 | 3 |接受| 0.36584 | 9.8828 | 0.2399 | 0.24519 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 0.12329  | | | | | | | | | | λ:5.7761 e-06 | | 171 | |接受| 0.2767 | 2.2185 | 0.2399 | 0.24519 | nb | DistributionNames:内核  | | | | | | | | | | 宽度:0.013013 | | 172 | |接受| 0.29016 | 10.253 | 0.2399 | 0.24519 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 161  | | | | | | | | | | LearnRate:南  | | | | | | | | | | MinLeafSize:233 | | 173 | 3 | Accept | 0.30212 | 0.17493 | 0.2399 | 0.24519 | tree | MinLeafSize: 125 |
| 174 | 6 |接受| 0.36853 | 3.9359 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 14.54 | | | | | | | | | | Lambda: 0.0018156 |
| 175 | 3 |接受| 0.2399 | 1.5716 | 0.2399 | 0.24519 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.018425  | | | | | | | | | | KernelScale: 0.05816 | | 176 | |接受| 0.25426 | 2.1785 | 0.2399 | 0.24519 |合奏|方法:袋  | | | | | | | | | | NumLearningCycles: 21  | | | | | | | | | | LearnRate:南  | | | | | | | | | | MinLeafSize: 10 | | 177 | |接受| 0.44421 | 0.69127 | 0.2399 | 0.24519 | |线性编码:onevsall  | | | | | | | | | | λ:9.8986e-08 | | | | | | | | | | Learner: svm | | 178 | 3 | Accept | 0.24349 | 4.7623 | 0.2399 | 0.24519 | kernel | Coding: onevsone | | | | | | | | | | KernelScale: 7.5839 | | | | | | | | | | Lambda: 6.1706e-06 |
| 179 | 6 |接受| 0.32546 | 3.8654 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 11.818 | | | | | | | | | | Lambda: 0.0021157 |
| 180 | 3 |接受| 0.25396 | 4.8254 | 0.2399 | 0.24519 | |内核编码:onevsall  | | | | | | | | | | KernelScale: 3.2686  | | | | | | | | | | λ:1.4612 e-06  | |==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 181 | 3 |接受| 0.51391 | 3.1699 | 0.2399 | 0.24519 |支持向量机|编码:onevsall  | | | | | | | | | | BoxConstraint: 0.11591  | | | | | | | | | | KernelScale: 495.17 | | 182 | |接受| 0.2417 | 1.6756 | 0.2399 | 0.24519 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint:7.202 | | | | | | | | | | KernelScale: 1.5776 | | 183 | 3 | Accept | 0.28059 | 0.59112 | 0.2399 | 0.24519 | nb | DistributionNames: normal | | | | | | | | | | Width: NaN |
| 184 | 6 |接受| 0.31259 | 3.7378 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 12.684 | | | | | | | | | | Lambda: 0.0015075 |
| 185 | 4 |接受| 0.25277 | 12.458 | 0.2399 | 0.24519 | |内核编码:onevsall  | | | | | | | | | | KernelScale: 0.66323  | | | | | | | | | | λ:3.1391 e-06 | | 186 | |接受| 0.74185 | 4.433 | 0.2399 | 0.24519 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 513.67  | | | | | | | | | | λ:0.013813 | | 187 | |接受| 0.29165 | 9.8216 | 0.2399 | 0.24519 | |内核编码:onevsall  | | | | | | | | | | KernelScale: 0.1806  | | | | | | | | | | λ:5.7403 e-05 |
| 188 | 4 |接受| 0.24589 | 5.2677 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 4.5409 | | | | | | | | | | Lambda: 1.6179e-06 |
| 189 | 4 |接受| 0.25875 | 4.9459 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 13.189 | | | | | | | | | | Lambda: 1.0438e-06 |
| 190 | 4 |接受| 0.29794 | 9.4099 | 0.2399 | 0.24519 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.24389 | | | | | | | | | | Lambda: 1.5305e-06 |
| 191 | 4 |接受| 0.2399 | 1.4613 | 0.2399 | 0.24482 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.017676 | | | | | | | | | | KernelScale: 0.05684 |
| 192 | 4 | Accept | 0.6198 | 2.1987 | 0.2399 | 0.24188 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.037629 | | | | | | | | | | KernelScale: 4.6813 |
| 193 | 4 | Accept | 0.24589 | 3.6814 | 0.2399 | 0.24395 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.48718 | | | | | | | | | | KernelScale: 0.071987 |
| 194 | 4 | Accept | 0.30362 | 1.6935 | 0.2399 | 0.24179 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.036257 | | | | | | | | | | KernelScale: 1.496 |
| 195 | 4 |接受| 0.24828 | 5.6169 | 0.2399 | 0.24179 |内核|编码:onevsall | | | | | | | | | | KernelScale: 2.0998 | | | | | | | | | | Lambda: 1.7852e-06 |
| 196 | 4 |接受| 0.2405 | 1.4008 | 0.2399 | 0.2416 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.025005 | | | | | | | | | | KernelScale: 0.079623 |
| 197 | 4 | Accept | 0.25695 | 10.376 | 0.2399 | 0.2416 | kernel | Coding: onevsall | | | | | | | | | | KernelScale: 0.54744 | | | | | | | | | | Lambda: 2.181e-06 |
| 198 | 4 | Accept | 0.2429 | 1.8889 | 0.2399 | 0.25253 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.090859 | | | | | | | | | | KernelScale: 0.066231 |
| 199 | 4 |接受| 0.24858 | 4.1934 | 0.2399 | 0.25163 |内核|编码:onevsone | | | | | | | | | | KernelScale: 2.5004 | | | | | | | | | | Lambda: 0.0016318 |
| 200 | 4 |接受| 0.2408 | 1.4334 | 0.2399 | 0.24216 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 0.029253 | | | | | | | | | | KernelScale: 0.063477 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 201 | 4 |接受| 0.25067 | 1.4766 | 0.2399 | 0.24186 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.01517  | | | | | | | | | | KernelScale: 0.27169 |
| 202 | 4 | Accept | 0.29794 | 1.8479 | 0.2399 | 0.24143 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.20149 | | | | | | | | | | KernelScale: 2.5463 |
| 203 | 4 | Accept | 0.24589 | 6.5027 | 0.2399 | 0.24148 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.30831 | | | | | | | | | | KernelScale: 0.028787 |
| 204 | 4 |接受| 0.24678 | 4.2346 | 0.2399 | 0.24148 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.5999 | | | | | | | | | | Lambda: 0.0022599 |
| 205 | 5 |接受| 0.28148 | 4.267 | 0.2399 | 0.24148 |内核|编码:onevsone | | | | | | | | | | KernelScale: 3.1926 | | | | | | | | | | Lambda: 0.0039213 |
| 206 | 5 |接受| 0.25366 | 4.6995 | 0.2399 | 0.24148 |内核|编码:onevsone | | | | | | | | | | KernelScale: 2.2861 | | | | | | | | | | Lambda: 0.0023336 |
| 207 | 6 |接受| 0.28986 | 4.6245 | 0.2399 | 0.24148 |内核|编码:onevsone | | | | | | | | | | KernelScale: 2.8603 | | | | | | | | | | Lambda: 0.0072539 |
| 208 | 6 |接受| 0.25067 | 4.9866 | 0.2399 | 0.24148 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.0901 | | | | | | | | | | Lambda: 0.0099896 |
| 209 | 6 |接受| 0.26802 | 4.837 | 0.2399 | 0.24148 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.6265 | | | | | | | | | | Lambda: 0.01081 |
| 210 | 6 |接受| 0.24499 | 56.624 | 0.2399 | 0.24154 | svm |编码:onevsone | | | | | | | | | | BoxConstraint: 8.7909 | | | | | | | | | | KernelScale: 0.05728 |
| 211 | 6 |接受| 0.25097 | 5.1646 | 0.2399 | 0.24154 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.94502 | | | | | | | | | | Lambda: 0.012321 |
| 212 | 6 |接受| 0.27879 | 4.737 | 0.2399 | 0.24154 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.5962 | | | | | | | | | | Lambda: 0.014927 |
| 213 | 6 |接受| 0.28537 | 4.6966 | 0.2399 | 0.24154 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.858 | | | | | | | | | | Lambda: 0.012473 |
| 214 | 5 |接受| 0.24529 | 172.16 | 0.2399 | 0.24154 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 32.749  | | | | | | | | | | KernelScale: 0.061248 | | 215 | |接受| 0.25127 | 4.7942 | 0.2399 | 0.24154 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 0.91593  | | | | | | | | | | λ:0.013134 |
| 216 | 5 |接受| 0.277 | 4.1458 | 0.2399 | 0.24154 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.4949 | | | | | | | | | | Lambda: 0.015008 |
| 217 | 5 |接受| 0.30123 | 3.9237 | 0.2399 | 0.24154 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.2069 | | | | | | | | | | Lambda: 0.071401 |
| 218 | 5 |接受| 0.30691 | 2.555 | 0.2399 | 0.24154 |内核|编码:onevsall | | | | | | | | | | KernelScale: 1.0328 | | | | | | | | | | Lambda: 0.013653 |
| 219 | 5 |接受| 0.29106 | 4.1175 | 0.2399 | 0.24154 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.9718 | | | | | | | | | | Lambda: 0.014791 |
| 220 | 5 |接受| 0.27341 | 4.054 | 0.2399 | 0.24154 |内核|编码:onevsone | | | | | | | | | | KernelScale: 1.0948 | | | | | | | | | | Lambda: 0.029433 |
|==============================================================================================================================| | Iter | |活跃Eval客观客观| | | BestSoFar | BestSoFar |学生| Hyperparameter:值| | |工人结果| | |运行时| | (estim(观察) .) | | | |==============================================================================================================================| | 221 | 5 |接受| 0.24499 | 1.7385 | 0.2399 | 0.24325 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 0.019711  | | | | | | | | | | KernelScale: 0.20418 |
| 222 | 5 |接受| 0.32576 | 3.5611 | 0.2399 | 0.24325 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.96406 | | | | | | | | | | Lambda: 0.19447 |
| 223 | 5 |接受| 0.33084 | 4.3505 | 0.2399 | 0.24325 |内核|编码:onevsall | | | | | | | | | | KernelScale: 23.853 | | | | | | | | | | Lambda: 4.1268e-07 |
| 224 | 5 |接受| 0.25187 | 1.6516 | 0.2399 | 0.24139 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0019286 | | | | | | | | | | KernelScale: 0.10433 |
| 225 | 5 |接受| 0.25037 | 4.822 | 0.2399 | 0.24139 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.71239 | | | | | | | | | | Lambda: 0.015711 |
| 226 | 5 |接受| 0.3452 | 10.241 | 0.2399 | 0.24139 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.14973 | | | | | | | | | | Lambda: 1.4037e-06 |
| 227 | 5 |接受| 0.26204 | 9.4337 | 0.2399 | 0.24139 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.41479 | | | | | | | | | | Lambda: 3.5263e-06 |
| 228 | 5 | Accept | 0.25097 | 1.604 | 0.2399 | 0.24158 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.018254 | | | | | | | | | | KernelScale: 0.2875 |
| 229 | 5 |接受| 0.36075 | 4.6692 | 0.2399 | 0.24158 |内核|编码:onevsone | | | | | | | | | | KernelScale: 24.105 | | | | | | | | | | Lambda: 3.803e-07 |
| 230 | 4 |接受| 0.24559 | 465.69 | 0.2399 | 0.24158 |支持向量机|编码:onevsone  | | | | | | | | | | BoxConstraint: 318.11  | | | | | | | | | | KernelScale: 0.061933 | | 231 | |接受| 0.29016 | 4.7925 | 0.2399 | 0.24158 | |内核编码:onevsone  | | | | | | | | | | KernelScale: 1.3656  | | | | | | | | | | λ:0.035821 |
| 232 | 4 |接受| 0.24649 | 1.5588 | 0.2399 | 0.24083 |支持|编码:onevsone | | | | | | | | | | BoxConstraint: 0.0013393 | | | | | | | | | | KernelScale: 0.068648 |
| 233 | 4 | Accept | 0.25426 | 1.4221 | 0.2399 | 0.24157 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.080107 | | | | | | | | | | KernelScale: 0.72702 |
| 234 | 4 | Accept | 0.31558 | 1.8074 | 0.2399 | 0.24166 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.067209 | | | | | | | | | | KernelScale: 2.6645 |
| 235 | 4 |接受| 0.3443 | 3.9888 | 0.2399 | 0.24166 |内核|编码:onevsall | | | | | | | | | | KernelScale: 24.211 | | | | | | | | | | Lambda: 5.9888e-07 |
| 236 | 4 | Accept | 0.24619 | 3.3676 | 0.2399 | 0.24171 | svm | Coding: onevsone | | | | | | | | | | BoxConstraint: 0.64044 | | | | | | | | | | KernelScale: 0.072822 |
| 237 | 4 |接受| 0.24948 | 4.0124 | 0.2399 | 0.24171 |内核|编码:onevsone | | | | | | | | | | KernelScale: 0.72883 | | | | | | | | | | Lambda: 0.020466 |
| 238 | 4 | Accept | 0.44601 | 3.6883 | 0.2399 | 0.2408 | svm | Coding: onevsall | | | | | | | | | | BoxConstraint: 0.016081 | | | | | | | | | | KernelScale: 0.065807 |
| 239 | 4 |接受| 0.25636 | 4.1374 | 0.2399 | 0.2408 |内核|编码:onevsall | | | | | | | | | | KernelScale: 4.6533 | | | | | | | | | | Lambda: 9.4081e-07 |
| 240 | 4 |接受| 0.26114 | 5.0408 | 0.2399 | 0.2408 |内核|编码:onevsone | | | | | | | | | | KernelScale: 12.554 | | | | | | | | | | Lambda: 1.5929e-06 |

__________________________________________________________ 优化完成。最大目标达到240。总函数计算:240总运行时间:1954.7195秒。总的目标函数评估时间:2414.1608最佳观测可行点是一个多类支持向量机模型,其中:编码(ECOC): onevsone BoxConstraint: 0.035844 KernelScale: 0.08166观测目标函数值= 0.2399估计目标函数值= 0.24266函数评估时间= 1.4853最佳估计可行点(根据模型)是一个多类支持向量机模型,其中:编码(ECOC): onevsone BoxConstraint: 0.018425 KernelScale:0.05816估计目标函数值= 0.2408估计函数评估时间= 1.6217

返回的最终模型fitcauto对应于最佳估计可行点。在返回模型之前,函数使用整个训练数据(XTrain而且YTrain),列出的学习者(或模型)类型,以及显示的超参数值。

评估测试集性能

该模型Mdl对应于贝叶斯优化中的最佳点“min-visited-mean”标准。要衡量模型在新数据上的表现,请查看模型的交叉验证精度(cvAccuracy)及其基于贝叶斯优化的一般性能估计(estimatedAccuracy).

[x,~,iteration] = bestPoint(Results,“标准”“min-visited-mean”);cvError = Results.ObjectiveTrace(迭代);cvAccuracy = 1 - cvError
cvAccuracy = 0.7601
estimatedError = predictobobjective (Results,x);estimatedAccuracy = 1 - estimatedError
estimatedAccuracy = 0.7592

评估模型在测试集上的性能。根据结果创建一个混淆矩阵,并指定混淆矩阵中类的顺序。

testAccuracy = 1 -损失(Mdl,XTest,YTest)
testAccuracy = 0.7438
cm =混淆图(YTest,predict(Mdl,XTest));sortClasses(厘米,{“AAA”“AA”“一个”“BBB”“BB”“B”“CCC”})

输入参数

全部折叠

示例数据,指定为表。每行资源描述对应一个观测值,每一列对应一个预测值。可选地,资源描述可以为响应变量包含一个额外的列。不接受多列变量和字符向量单元格数组以外的单元格数组。

如果资源描述包含响应变量,您希望在中使用所有剩余变量资源描述作为预测器,然后使用指定响应变量ResponseVarName

如果资源描述包含响应变量,并且您希望仅在中使用其余变量的子集资源描述作为预测器,指定使用的公式公式

如果资源描述不包含响应变量,指定响应变量使用Y.响应变量的长度和其中的行数资源描述必须是相等的。

请注意

fitcauto不支持线性或内核分万博1manbetx类模型的表。如果你愿意的话学习者包括“线性”“内核”型号,你不能提供资源描述ResponseVarName,或公式.提供预测数据矩阵(X)和一个响应数组(Y)。

数据类型:表格

响应变量名,指定为中的变量名资源描述

您必须指定ResponseVarName作为字符向量或字符串标量。例如,如果响应变量Y存储为资源描述。Y,然后指定为“Y”.否则,软件处理的所有列资源描述,包括Y,作为训练模型时的预测因子。

响应变量必须是类别、字符或字符串数组、逻辑或数字向量或字符向量的单元格数组。如果Y是字符数组,则响应变量的每个元素必须对应于数组中的一行。

类指定类的顺序是一个很好的实践一会名称-值对参数。

数据类型:字符|字符串

响应变量和预测变量子集的解释模型,在表单中指定为字符向量或字符串标量“Y ~ X1 + X2 + X3”.在这种形式下,Y表示响应变量,和X1X2,X3表示预测变量。

中指定变量的子集资源描述使用公式作为训练模型的预测因子。如果您指定了一个公式,那么该软件不使用任何变量资源描述没有出现在公式

公式中的变量名必须同时为资源描述Tbl.Properties.VariableNames)和有效的MATLAB®标识符。

中的变量名可以验证资源描述通过使用isvarname函数。下面的代码返回逻辑1真正的)用于每个具有有效变量名的变量。

cellfun (@isvarname Tbl.Properties.VariableNames)
如果变量名称在资源描述无效的,然后使用matlab.lang.makeValidName函数。
Tbl.Properties.VariableNames = matlab.lang.makeValidName(Tbl.Properties.VariableNames);

数据类型:字符|字符串

类标签,指定为数字、类别或逻辑向量、字符或字符串数组或字符向量的单元格数组。

  • 如果Y是字符数组,则类标签的每个元素必须对应于数组中的一行。

  • 的长度Y和进去的行数资源描述X必须是相等的。

  • 类指定类顺序是一种良好的实践一会名称-值对参数。

数据类型:||分类|逻辑|字符|字符串|细胞

预测器数据,指定为数值矩阵。

每行X对应一个观测值,每一列对应一个预测值。

的长度Y和进去的行数X必须是相等的。

中出现的顺序指定预测符的名称X,使用PredictorNames名称-值对参数。

数据类型:|

请注意

软件处理,空字符向量('',空字符串(”“),< >失踪,<定义>元素作为缺失的数据。该软件删除对应于响应变量中缺失值的数据行。然而,对预测数据中缺失值的处理X资源描述不同的模型(或学习器)有所不同。

名称-值对参数

的可选逗号分隔对名称,值参数。的名字参数名称和价值对应的值。的名字必须出现在引号内。您可以以任意顺序指定多个名称和值对参数Name1, Value1,…,的家

例子:“HyperparameterOptimizationOptions”、结构(“MaxObjectiveEvaluations”,200年,“详细”,2)指定运行优化过程的200次迭代(即尝试200个模型超参数组合),并在命令窗口中显示关于要评估的下一个模型超参数组合的信息。

优化选项

全部折叠

优化期间要尝试的分类模型类型,指定为由逗号分隔的对组成“学习者”下面第一个表中的值或第二个表中的一个或多个学习者名称。指定多个学习器名称为字符串或单元格数组。

价值 描述
“汽车” fitcauto自动选择一个子集的学习器,适合给定的预测器和响应数据。学习器可以有不同于默认值的模型超参数值。有关更多信息,请参见学习者的自动选择
“所有” fitcauto选择所有可能的学习器。
所有的线性的 fitcauto选择所有线性学习器:“discr”(线性判别类型),“线性”,“支持向量机”(线性核)。
“all-nonlinear” fitcauto选择所有非线性学习器:“discr”(具有二次判别类型),“合奏”“内核”“资讯”“注”“支持向量机”(具有高斯或多项式核),和“树”

学习者的名字 描述
“discr” 判别分析分类器
“合奏” 集成分类模型
“内核” 核分类模型
“资讯” k-最近邻模型
“线性” 线性分类模型
“注” 朴素贝叶斯分类器
“支持向量机” 万博1manbetx支持向量机分类器
“树” 二叉决策分类树

例子:“学习者”,“所有”

例子:“学习者”,“合奏”

例子:“学习者”,{“支持向量机”,“树”}

数据类型:字符|字符串|细胞

要优化的超参数,指定为逗号分隔的对,由“OptimizeHyperparameters”而且“汽车”“所有”.可优化的超参数取决于模型(或学习器),如表中所述。

学习者的名字 Hyperparameters为“汽车” 附加超参数“所有” 笔记
“discr” δγ DiscrimType

  • 学习者值是所有的线性的,fitcauto函数在DiscrimType的值“线性”“diaglinear”,“pseudolinear”,不管OptimizeHyperparameters价值。

  • 学习者值是“all-nonlinear”,fitcauto函数在DiscrimType的值“二次”“diagquadratic”,“pseudoquadratic”,不管OptimizeHyperparameters价值。

有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters

“合奏” 方法NumLearningCyclesLearnRateMinLeafSize MaxNumSplitsNumVariablesToSampleSplitCriterion

  • 当整个乐团方法值是一种提升方法,集合NumBins值是50

有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters

“内核” KernelScaleλ编码(只适用于三个或以上课程) 学习者NumExpansionDimensions 有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters而且OptimizeHyperparameters(只适用于三个或以上课程)。
“资讯” 距离NumNeighbors DistanceWeight指数标准化 有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters
“线性” λ学习者编码(只适用于三个或以上课程) 正则化 有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters而且OptimizeHyperparameters(只适用于三个或以上课程)。
“注” DistributionNames宽度 内核 有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters
“支持向量机” BoxConstraintKernelScale编码(只适用于三个或以上课程) KernelFunctionPolynomialOrder标准化

  • 学习者值是所有的线性的,fitcauto函数不优化KernelFunctionPolynomialOrderOptimizeHyperparameters值是“所有”

  • 学习者值是“all-nonlinear”,fitcauto函数在KernelFunction的值“高斯”而且多项式的,不管OptimizeHyperparameters价值。

有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters而且OptimizeHyperparameters(只适用于三个或以上课程)。

“树” MinLeafSize MaxNumSplitsNumVariablesToSampleSplitCriterion 有关包括超参数搜索范围在内的详细信息,请参见OptimizeHyperparameters

请注意

学习者是否设置为其他值“汽车”,未被优化的模型超参数的默认值与默认拟合函数值匹配,除非表注释中另有说明。当学习者设置为“汽车”,根据训练数据的特征,优化的超参数搜索范围和非优化的超参数值都可以变化。

例子:“OptimizeHyperparameters”、“所有”

选项的优化,指定为由逗号分隔的对组成“HyperparameterOptimizationOptions”还有一个结构。结构中的所有字段都是可选的。

字段名 默认的
MaxObjectiveEvaluations 目标函数求值的最大个数 30 * L,在那里l学习者的数量是多少
MaxTime

时间限制,指定为正实数。时间限制以秒为单位,由抽搐而且toc.运行时可能超过MaxTime因为MaxTime不中断函数求值。

ShowPlots 指示是否显示图的逻辑值。如果真正的,该字段根据迭代次数绘制最佳观测和估计的目标函数值(到目前为止)。 真正的
SaveIntermediateResults 指示是否保存结果的逻辑值。如果真正的,此字段将覆盖名为“BayesoptResults”在每次迭代中。变量是aBayesianOptimization对象。
详细的

在命令行显示:

  • 0-无迭代显示

  • 1-迭代显示

  • 2-迭代显示下一个要评估的点的附加信息

1
UseParallel 指示是否并行运行贝叶斯优化的逻辑值,这需要并行计算工具箱™。由于并行计时的不可再现性,并行贝叶斯优化不一定产生可再现的结果。
重新分区

指示是否在每次迭代中重新划分交叉验证的逻辑值。如果,优化器使用单个分区进行优化。

真正的通常会给出最健壮的结果,因为此设置考虑了分区噪声。然而,为了获得好的结果,真正的需要至少两倍的函数求值。

只指定以下三个选项中的一个。
CVPartition cvpartition对象,由cvpartition “Kfold”,5如果您没有指定任何交叉验证字段
坚持 范围内的标量(0,1)表示抵抗分数
Kfold 大于1的整数

例子:“HyperparameterOptimizationOptions”、结构(UseParallel,真的)

数据类型:结构体

分类选项

全部折叠

类别预测符列表,指定为逗号分隔的对,由“CategoricalPredictors”这个表中的一个值。

价值 描述
正整数向量 向量中的每个条目都是对应于预测器数据列(X资源描述),其中包含一个分类变量。
逻辑向量 一个真正的Entry表示预测器数据的对应列(X资源描述)是分类变量。
字符矩阵 矩阵的每一行都是一个预测变量的名称。名称必须与中的条目匹配PredictorNames.用额外的空格填充名字,这样字符矩阵的每一行都有相同的长度。
字符向量的字符串数组或单元格数组 数组中的每个元素都是一个预测变量的名称。名称必须与中的条目匹配PredictorNames
“所有” 所有预测因素都是绝对的。

默认情况下,如果预测器数据在表(资源描述),fitcauto如果一个变量是逻辑向量、分类向量、字符数组、字符串数组或字符向量的单元格数组,则假定该变量是分类的。然而,使用决策树的学习者假设数学上有序的分类向量是连续变量。如果预测器数据为矩阵(X),fitcauto假设所有预测因子都是连续的。要将任何其他预测符标识为类别预测符,请使用“CategoricalPredictors”名称-值对参数。

有关拟合函数如何处理分类预测器的详细信息,请参见自动创建虚拟变量

例子:“CategoricalPredictors”、“所有”

数据类型:||逻辑|字符|字符串|细胞

用于训练的类名,指定为逗号分隔的对,由“类名”以及类别、字符或字符串数组、逻辑或数字向量或字符向量的单元格数组。一会必须具有相同的数据类型Y

如果一会是字符数组,则每个元素必须对应数组中的一行。

使用“类名”:

  • 在培训期间安排课程。

  • 指定与类顺序对应的任何输入或输出参数维度的顺序。例如,使用“类名”指定…尺寸的顺序成本或返回的分类分数的列顺序预测

  • 选择用于培训的类的子集。例如,假设集合中所有不同的类名Y{' a ', ' b ', ' c '}.用课堂上的观察来训练模型“一个”而且“c”只是,指定“类名”,{' a ', ' c '}

的默认值一会所有不同类名的集合在吗Y

例子:“类名”,{' b ', ' g '}

数据类型:分类|字符|字符串|逻辑|||细胞

错误分类代价,指定为逗号分隔的对,由“成本”一个方阵或结构数组。

  • 如果你指定一个方阵成本观察的真正类别是,然后成本(i, j)将一个点分类的成本是多少j.也就是说,行对应于真实的类,列对应于预测的类。的相应行和列的类顺序成本,也指定一会名称-值对参数。

  • 如果你指定一个结构年代,那么它必须有两个字段:

    • S.ClassNames,其中包含类名作为与Y

    • S.ClassificationCosts,其中包含成本矩阵,其行和列的顺序为S.ClassNames

的默认值成本ones(K) - eye(K),在那里K是不同类的数量。

例子:“成本”,[0 1;2 0]

数据类型:||结构体

预测器变量名,指定为逗号分隔的对,由“PredictorNames”和唯一名称的字符串数组或唯一字符向量的单元格数组。的功能“PredictorNames”这取决于你提供训练数据的方式。

  • 如果你提供X而且Y,那么你就可以使用了“PredictorNames”给出预测变量X的名字。

    • 里面名字的顺序PredictorNames必须对应的列顺序X.也就是说,PredictorNames {1}名字是X (: 1)PredictorNames {2}名字是X (:, 2)等等。同时,大小(X, 2)而且元素个数(PredictorNames)必须是相等的。

    • 默认情况下,PredictorNames{x1, x2,…}

  • 如果你提供资源描述,那么你就可以使用了“PredictorNames”选择在训练中使用哪些预测变量。也就是说,fitcauto中仅使用预测变量PredictorNames以及训练中的响应变量。

    • PredictorNames的子集Tbl.Properties.VariableNames并且不能包括响应变量的名称。

    • 默认情况下,PredictorNames包含所有预测变量的名称。

    • 一个好的实践是使用其中一种来指定训练的预测器“PredictorNames”公式只有。

例子:PredictorNames,{‘SepalLength’,‘SepalWidth’,‘PetalLength’,‘PetalWidth}

数据类型:字符串|细胞

每个类的先验概率,由逗号分隔的对组成“之前”和这个表中的一个值。

价值 描述
“经验” 类先验概率是类的相对频率Y
“统一” 所有类先验概率都等于1/K,在那里K是类的数量。
数值向量 每个元素都是一个类先验概率。对元素进行排序Mdl.ClassNames或使用一会名称-值对参数。软件对要求和的元素进行规范化1
结构

一个结构年代有两个字段:

  • S.ClassNames作为相同类型的变量包含类名Y

  • S.ClassProbs包含相应先验概率的向量。软件对要求和的元素进行规范化1

例子:“之前”,结构(“类名”,{{' b ', ' g '}}, ClassProbs, 1:2)

数据类型:||字符|字符串|结构体

响应变量名,指定为逗号分隔的对,由“ResponseName”和字符向量或字符串标量。

  • 如果你提供Y,那么你就可以使用了“ResponseName”为响应变量指定名称。

  • 如果你提供ResponseVarName公式,那么你就不能用了“ResponseName”

例子:“ResponseName”、“响应”

数据类型:字符|字符串

分数转换,指定为由逗号分隔的对组成“ScoreTransform”和字符向量、字符串标量或函数句柄。

该表总结了可用的字符向量和字符串标量。

价值 描述
“doublelogit” 1 / (1 +e2x
“invlogit” 日志(x/ (1 -x))
“ismax” 将得分最大的类的得分设置为1,并将所有其他类的得分设置为0
分对数的 1 / (1 +e- - - - - -x
“没有”“身份” x(转换)
“标志” 1x< 0
为0x= 0
1x> 0
“对称” 2x- 1
“symmetricismax” 将得分最大的类的得分设置为1,并将所有其他类的得分设置为-1
“symmetriclogit” 2 / (1 +e- - - - - -x) - 1

对于MATLAB函数或您定义的函数,使用其函数句柄进行分数转换。函数句柄必须接受一个矩阵(原始分数)并返回一个相同大小的矩阵(转换后的分数)。

例子:“ScoreTransform”、“分对数的

数据类型:字符|字符串|function_handle

观察权重,由逗号分隔的对组成“重量”和一个正的数字向量或者变量的名字资源描述.软件对每一行的观察结果进行加权X资源描述中对应的值权重.的长度权重必须等于行数X资源描述

如果将输入数据指定为表资源描述,然后权重可以是变量名中的资源描述它包含一个数值向量。在这种情况下,您必须指定权重作为字符向量或字符串标量。例如,如果权重向量W存储为资源描述。W,然后指定为' W '.否则,软件处理的所有列资源描述,包括W,作为预测因子或训练模型时的响应变量。

默认情况下,权重的(n, 1),在那里n观察的数量在吗X资源描述

软件规范化权重求和为各类别的先验概率值。

数据类型:||字符|字符串

输出参数

全部折叠

训练过的分类模型,作为该表中的分类模型对象之一返回。

学习者的名字 返回的模型对象
“discr” CompactClassificationDiscriminant
“合奏” CompactClassificationEnsemble
“内核”
“资讯” ClassificationKNN
“线性”
“注” CompactClassificationNaiveBayes
“支持向量机”
“树” CompactClassificationTree

优化结果,返回为BayesianOptimization对象。有关贝叶斯优化过程的更多信息,请参见贝叶斯优化

提示

  • 根据数据的大小和指定的学习器的数量,fitcauto可能需要一些时间来运行。如果您拥有并行计算工具箱许可证,则可以通过并行运行优化来加快计算速度。为此,请指定“HyperparameterOptimizationOptions”、结构(UseParallel,真的).您可以在结构中包含其他字段,以控制优化的其他方面。看到HyperparameterOptimizationOptions

算法

全部折叠

学习者的自动选择

当你指定“学习者”,“汽车”,fitcauto函数分析预测器和响应数据,以选择合适的学习器。该函数考虑数据集是否具有以下特征:

  • 分类预测

  • 超过5%的数据缺少值

  • 不平衡数据,其中最大类观测数据的数量与最小类观测数据的数量之比大于5

  • 在最小的班级里有超过100个观察结果

  • 宽数据,其中预测因子的数量大于或等于观测值的数量

  • 高维数据,其中预测因子的数量大于100

  • 大数据,即观测次数大于5万次

  • 二元响应变量

  • 有序响应变量

所选的学习者总是列表中所列学习者的子集学习者表格但是,在优化过程中尝试的相关模型对于未优化的超参数可能具有不同的默认值,对于正在优化的超参数也可能具有不同的搜索范围。

贝叶斯优化

贝叶斯优化的目标,以及一般的优化,是找到一个使目标函数最小化的点。在fitcauto,点是一个学习器类型和一组学习器的超参数值(参见学习者而且OptimizeHyperparameters),目标函数默认为交叉验证分类误差。在这种情况下fitcauto,贝叶斯优化内部保持一个多TreeBagger目标函数模型。也就是说,目标函数模型沿着学习者类型进行分割,对于给定的学习者,该模型为TreeBagger回归集成。(这个底层模型不同于其他使用贝叶斯优化的统计和机器学习工具箱™函数所使用的高斯过程模型。)贝叶斯优化通过使用目标函数评估来训练底层模型,并通过使用获取函数(“expected-improvement”).有关更多信息,请参见预期改善.采集函数在低建模目标函数值点的采样和探索尚未很好建模的区域之间进行平衡。在优化的最后,fitcauto在优化时考虑的点中,选择目标函数模型值最小的点。有关更多信息,请参见“标准”、“min-visited-mean”的名称-值对参数bestPoint

选择功能

  • 如果您不确定哪种模型最适合您的数据集,您可以选择使用分类学习者通过app,您可以对不同的模型进行超参数调优,并选择性能最佳的优化模型。尽管在优化模型超参数之前必须选择特定的模型,分类学习者为选择可优化超参数和设置超参数值提供了更大的灵活性。但是,您不能并行优化,请选择“线性”“内核”在应用程序中指定观察权重或指定先验概率。有关更多信息,请参阅分类学习App中的超参数优化

  • 如果知道哪些模型可能适合您的数据,则可以使用相应的模型拟合函数并指定“OptimizeHyperparameters”参数来调优超形参。您可以比较不同模型的结果,以选择最佳分类器。有关此过程的示例,请参见利用贝叶斯优化实现模型选择自动化

R2020a中引入