📄 permutedata.m.svn-base
字号:
function [X, Y] = permuteData(X, Y, params)
%Permute examples in data and labels
%inputs
% X is an (m x n) matrix whose rows are the training inputs
% Y is (m x 1) vector containing the corresponding output labels
% outputs
% X permuted X
% Y permuted Y
numExamples = size(X, 1);
permutationVector = randperm(numExamples);
X = X(permutationVector, :);
Y = Y(permutationVector, :);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -