GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  AI::DECISIONTREE::INSTANCE (3)

.ds Aq ’

NAME

AI::DecisionTree::Instance - C-struct wrapper for training instances

CONTENTS

SYNOPSIS



  use AI::DecisionTree::Instance;
 
  my $i = new AI::DecisionTree::Instance([3,5], 7, this_instance);
  $i->value_int(0) == 3;
  $i->value_int(1) == 5;
  $i->result_int == 7;



DESCRIPTION

This class is just a simple Perl wrapper around a C struct embodying a single training instance. Its purpose is to reduce memory usage. In a typical training set with about 1000 instances, memory usage can be reduced by about a factor of 5 (from 43.7M to 8.2M in my test program).

A fairly tight loop is also implemented that helps speed up the train() AI::DecisionTree method by about a constant factor of 4.

Please do not consider this interface stable - I change it whenever I have a new need in AI::DecisionTree.

AUTHOR

Ken Williams, ken@mathforum.org

SEE ALSO

AI::DecisionTree
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 INSTANCE (3) 2012-03-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.