permutedata.m.svn-base
来自「a function inside machine learning」· SVN-BASE 代码 · 共 16 行
SVN-BASE
16 行
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 + =
减小字号Ctrl + -
显示快捷键?