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

📄 randomrowspacedirection.m.svn-base

📁 a function inside machine learning
💻 SVN-BASE
字号:
function u = randomRowSpaceDirection(X, Y)
%A function to compute a vector with a random direction, but in the row
%space of X. The vector has norm 1;  
%
%inputs 
%X data matrix with examples as rows 
%Y labels matrix with output as rows 
%
%outputs 
%u the vector which maximises the emperical target alignment between X and Y 

alpha = rand(size(X, 1), 1)-0.5; 
u = X'*alpha; 

u = u/norm(u); 

⌨️ 快捷键说明

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