Changeset 21911 in project


Ignore:
Timestamp:
12/11/10 20:01:45 (9 years ago)
Author:
petercrlane
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/dataset-utils

    r21883 r21911  
    5151* {{'(nominal value-1 ...)}} for nominal attributes, listing the possible values
    5252
    53 <procedure>(relation-name relation)</procedure>
    54 Returns the name of given relation.
    55 
    56 <procedure>(relation-attributes relation)</procedure>
    57 Returns a list of attributes for given relation.
    58 
    59 <procedure>(relation-data relation)</procedure>
    60 Returns a list of the instances in the given relation.
    61 
    62 <procedure>(get-attribute-values relation attribute-name)</procedure>
    63 Returns the values taken by instances in relation for given attribute name.
     53<procedure>(class-probability relation attribute-name value)</procedure>
     54Returns the proportion of instances with the given attribute value.
    6455
    6556<procedure>(entropy relation attribute-name)</procedure>
     
    7162<procedure>(find-attribute-index relation attribute-name)</procedure>
    7263Returns the index number of given attribute name in relation.
     64
     65<procedure>(get-attribute-values relation attribute-name)</procedure>
     66Returns the values taken by instances in relation for given attribute name.
     67
     68<procedure>(information-gain relation target-class attribute-name)</procedure>
     69Computes the information gain from using the given {{attribute-name}} to split the data in {{relation}} over the entropy of the data as they are; {{target-class}} is used to compute the entropy.
     70
     71<procedure>(relation-attributes relation)</procedure>
     72Returns a list of attributes for given relation.
     73
     74<procedure>(relation-data relation)</procedure>
     75Returns a list of the instances in the given relation.
     76
     77<procedure>(relation-name relation)</procedure>
     78Returns the name of given relation.
    7379
    7480<procedure>(split-instances relation attribute-name)</procedure>
Note: See TracChangeset for help on using the changeset viewer.