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

📄 leastsquaresclassifier.m.svn-base

📁 a function inside machine learning
💻 SVN-BASE
字号:
function [trainInfo, testInfo, classifierInfo] = leastSquaresClassifier(trainX, trainY, testX, params); 
%A function to compute least squares classification on the data on binary labels. No bias term here.   

if nargin ~= 4
    fprintf('%s\n', help('leastSquaresClassifier'));
    error('Incorrect number of inputs - see above usage instructions.'); 
end

if ~binaryLabels(trainY) 
    error('Using leastSquaresClassifier with non binary labels'); 
end

[trainInfo, testInfo, classifierInfo] = leastSquaresRegressor(trainX, trainY, testX, params); 

trainInfo.predictedY = sign(trainInfo.predictedY); 
testInfo.predictedY = sign(testInfo.predictedY); 

⌨️ 快捷键说明

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