table of contents
BAYESOL(1) | BAYESOL(1) |
NAME¶
bayesol - a Bayes solution calculator for use with dbacl.SYNOPSIS¶
bayesol [-DVNniv] -c riskspec [FILE]...
bayesol -V
DESCRIPTION¶
bayesol is a Bayes solution calculator designed to combine the output of dbacl(1) with a prior distribution and a risk specification, and calculate the optimal Bayesian decision (which minimizes the posterior risk). The risk specification is read from the text file riskspec and must be written in a simple format described below. The dbacl(1) output can either be read from FILE or from STDIN.EXIT STATUS¶
On success, bayesol returns a positive integer corresponding to the category with the lowest risk. In case of a problem, bayesol returns zero.OPTIONS¶
- -c
- Classify using riskspec. See the section RISK SPECIFICATION.
- -i
- Fully internationalized mode. Forces the use of wide characters internally, which is necessary in some locales. This incurs a noticeable performance penalty.
- -n
- Print risk scores for each category. Each score is (approximately) the logarithm of the expected risk under that category. The lowest score (ie closest to -infinity) is best, etc.
- -N
- Print recursive risk scores for each category. Each score is (approximately) the logarithm of the best score based on the remaining categories, after the previously best scoring categories have been removed, and a normalizing factor was added. A full description is given in the technical report listed at the end of this manpange. The largest score (ie closest to +infinity) is best, etc.
- -v
- Verbose mode. Prints to STDOUT the category with minimum posterior risk. In case several categories are possible, prints the first category in the order in which they appear in the categories section of riskpspec.
- -D
- Print debug output. Do not use.
- -V
- Print the program version number and exit.
RISK SPECIFICATION¶
bayesol needs to read a text file riskspec containing a risk specification. The format of this text file is as follows- categories { cat1, cat2,..., catN}
.
.
USAGE¶
Typically, bayesol is used together with dbacl(1). An invocation looks like this: % dbacl -c one -c two -c three sample.txt -vna | bayesol -c toy.risk -v See /usr/share/doc/dbacl/costs.ps for a description of the algorithm used. See also /usr/share/doc/dbacl/tutorial.html for a more detailed overview.SOURCE¶
The source code for the latest version of this program is available at the following locations: http://www.lbreyer.com/gpl.htmlAUTHOR¶
Laird A. Breyer <laird@lbreyer.com>SEE ALSO¶
dbacl(1), mailcross(1), mailfoot(1), mailinspect(1), mailtoe(1), regex(7)Bayesian Classification Tools | Version 1.12 |