Statistics::LTU

Statistics::LTU is an implementation of Linear Threshold Units.
Download

Statistics::LTU Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tom Fawcett
  • Publisher web site:
  • http://search.cpan.org/~tomfa/Statistics-LTU-2.8/LTU.pod

Statistics::LTU Tags


Statistics::LTU Description

Statistics::LTU is an implementation of Linear Threshold Units. Statistics::LTU is an implementation of Linear Threshold Units.SYNOPSIS use Statistics::LTU; my $acr_ltu = new Statistics::LTU::ACR(3, 1); # 3 attributes, scaled $ltu->train(, $LTU_PLUS); $ltu->train(, $LTU_MINUS); ... print "LTU looks like this:n"; $ltu->print; print " is in class "; if ($ltu->test() > $LTU_THRESHOLD) { print "PLUS" } else { print "MINUS" }; $ltu->save("ACR.saved") or die "Save failed!"; $ltu2 = restore Statistics::LTU("ACR.saved");EXPORTSFor readability, LTU.pm exports three scalar constants: $LTU_PLUS (+1), $LTU_MINUS (-1) and $LTU_THRESHOLD (0).Statistics::LTU defines methods for creating, destroying, training and testing Linear Threshold Units. A linear threshold unit is a 1-layer neural network, also called a perceptron. LTU's are used to learn classifications from examples.An LTU learns to distinguish between two classes based on the data given to it. After training on a number of examples, the LTU can then be used to classify new (unseen) examples. Technically, LTU's learn to distinguish two classes by fitting a hyperplane between examples; if the examples have n features, the hyperplane will have n dimensions. In general, the LTU's weights will converge to a define the separating hyperplane.The LTU.pm file defines an uninstantiable base class, LTU, and four other instantiable classes built on top of LTU. The four individual classes differs in the training rules used:ACR - Absolute Correction Rule TACR - Thermal Absolute Correction Rule (thermal annealing) LMS - Least Mean Squares rule RLS - Recursive Least Squares ruleEach of these training rules behaves somewhat differently. Exact details of how these work are beyond the scope of this document; see the additional documentation file (ltu.doc) for discussion.Requirements:· Perl Requirements: · Perl


Statistics::LTU Related Software