blob: 2162293d4d55939805522a3ba386e1467be4f821 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<html>
<head>
<title>
Netlab Reference Manual confmat
</title>
</head>
<body>
<H1> confmat
</H1>
<h2>
Purpose
</h2>
Compute a confusion matrix.
<p><h2>
Synopsis
</h2>
<PRE>
[C, rate] = confmat(y, t)</PRE>
<p><h2>
Description
</h2>
<CODE>[C, rate] = confmat(y, t)</CODE> computes the confusion matrix <CODE>C</CODE>
and classification performance <CODE>rate</CODE> for the predictions mat{y}
compared with the targets <CODE>t</CODE>. The data is assumed to be in a
1-of-N encoding, unless there is just one column, when it is assumed to
be a 2 class problem with a 0-1 encoding. Each row of <CODE>y</CODE> and <CODE>t</CODE>
corresponds to a single example.
<p>In the confusion matrix, the rows represent the true classes and the
columns the predicted classes. The vector <CODE>rate</CODE> has two entries:
the percentage of correct classifications and the total number of
correct classifications.
<p><h2>
See Also
</h2>
<CODE><a href="conffig.htm">conffig</a></CODE>, <CODE><a href="demtrain.htm">demtrain</a></CODE><hr>
<b>Pages:</b>
<a href="index.htm">Index</a>
<hr>
<p>Copyright (c) Ian T Nabney (1996-9)
</body>
</html>
|