⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 combine5.m

📁 用Cross validation的方法建立人工神经网络的模型!
💻 M
字号:
function [tr_val, test]=combine5(a1, a2, a3, a4, a5, i)

% Input: 5 equal-sized sub data sets: a1, a2, a3, a4, a5
%        the index of the dataset for testing: i
% Output:   tr_val: dataset combination for train and validation
%           test: dataset for testing
%


switch i
case 1
    tr_val=[a2; a3; a4; a5; ];
    test=a1;
case 2
    tr_val=[a1; a3; a4; a5; ];
    test=a2;
case 3
    tr_val=[a1; a2; a4; a5; ];
    test=a3;
case 4
    tr_val=[a1; a2; a3; a5; ];
    test=a4;
case 5
    tr_val=[a1; a2; a3; a4; ];
    test=a5;  
otherwise
    error('This is impossible')
end

return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -