lvqtest.html
来自「本程序是基于linux系统下c++代码」· HTML 代码 · 共 81 行
HTML
81 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Classify Test Set from LVQ Codebook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>
<table width="100%" summary="page for lvqtest {class}"><tr><td>lvqtest {class}</td><td align="right">R Documentation</td></tr></table>
<h2>Classify Test Set from LVQ Codebook</h2>
<h3>Description</h3>
<p>
Classify a test set by 1-NN from a specified LVQ codebook.
</p>
<h3>Usage</h3>
<pre>
lvqtest(codebk, test)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>codebk</code></td>
<td>
codebook object returned by other LVQ software
</td></tr>
<tr valign="top"><td><code>test</code></td>
<td>
matrix of test examples
</td></tr>
</table>
<h3>Details</h3>
<p>
uses 1-NN to classify each test example against the codebook.
</p>
<h3>Value</h3>
<p>
factor of classification for each row of <code>x</code></p>
<h3>References</h3>
<p>
Ripley, B. D. (1996)
<EM>Pattern Recognition and Neural Networks.</EM> Cambridge.
</p>
<p>
Venables, W. N. and Ripley, B. D. (2002)
<EM>Modern Applied Statistics with S.</EM> Fourth edition. Springer.
</p>
<h3>See Also</h3>
<p>
<code><a href="lvqinit.html">lvqinit</a></code>, <code><a href="olvq1.html">olvq1</a></code>
</p>
<h3>Examples</h3>
<pre>
# The function is currently defined as
function(codebk, test) knn1(codebk$x, test, codebk$cl)
</pre>
<hr><div align="center">[Package <em>class</em> version 7.2-44 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?