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

📄 permutedata.m.svn-base

📁 a function inside machine learning
💻 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 + -