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

📄 batchsom.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Self-Organizing Maps: Batch Algorithm</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 batchSOM {class}"><tr><td>batchSOM {class}</td><td align="right">R Documentation</td></tr></table>
<h2>Self-Organizing Maps: Batch Algorithm</h2>


<h3>Description</h3>

<p>
Kohonen's Self-Organizing Maps are a crude form of multidimensional scaling.
</p>


<h3>Usage</h3>

<pre>
batchSOM(data, grid = somgrid(), radii, init)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>data</code></td>
<td>
a matrix or data frame of observations, scaled so that Euclidean
distance is appropriate.
</td></tr>
<tr valign="top"><td><code>grid</code></td>
<td>
A grid for the representatives: see <code><a href="somgrid.html">somgrid</a></code>.
</td></tr>
<tr valign="top"><td><code>radii</code></td>
<td>
the radii of the neighbourhood to be used for each pass: one pass is
run for each element of <code>radii</code>.
</td></tr>
<tr valign="top"><td><code>init</code></td>
<td>
the initial representatives.  If missing, chosen (without replacement)
randomly from <code>data</code>.
</td></tr>
</table>

<h3>Details</h3>

<p>
The batch SOM algorithm of Kohonen(1995, section 3.14) is used.
</p>


<h3>Value</h3>

<p>
an object of class <code>"SOM"</code> with components
</p>
<table summary="R argblock">
<tr valign="top"><td><code>grid</code></td>
<td>
the grid, an object of class <code>"somgrid"</code>.</td></tr>
<tr valign="top"><td><code>codes</code></td>
<td>
a matrix of representatives.</td></tr>
</table>

<h3>References</h3>

<p>
Kohonen, T. (1995) <EM>Self-Organizing Maps.</EM> Springer-Verlag.
</p>
<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="somgrid.html">somgrid</a></code>, <code><a href="SOM.html">SOM</a></code>
</p>


<h3>Examples</h3>

<pre>
data(crabs, package = "MASS")

lcrabs &lt;- log(crabs[, 4:8])
crabs.grp &lt;- factor(c("B", "b", "O", "o")[rep(1:4, rep(50,4))])
gr &lt;- somgrid(topo = "hexagonal")
crabs.som &lt;- batchSOM(lcrabs, gr, c(4, 4, 2, 2, 1, 1, 1, 0, 0))
plot(crabs.som)

bins &lt;- as.numeric(knn1(crabs.som$code, lcrabs, 0:47))
plot(crabs.som$grid, type = "n")
symbols(crabs.som$grid$pts[, 1], crabs.som$grid$pts[, 2],
        circles = rep(0.4, 48), inches = FALSE, add = TRUE)
text(crabs.som$grid$pts[bins, ] + rnorm(400, 0, 0.1),
     as.character(crabs.grp))
</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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -