Changeset 7307:bd1af124aebf in orange


Ignore:
Timestamp:
02/03/11 11:54:05 (3 years ago)
Author:
lan <lan@…>
Branch:
default
Convert:
270f2cf132fb87c6f0653887fea6ae3b0c484b99
Message:
 
Location:
orange
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/probability/distributions.py

    r6848 r7307  
     1""" 
     2 
     3================= 
     4Distributions and their characteristics 
     5================= 
     6 
     7Objects derived from Distribution are used throughout Orange to store 
     8various distributions. These often - but not necessarily - apply to 
     9distribution of values of certain attribute on some dataset. 
     10You will most often encounter two classes derived from Distribution: 
     11DiscDistribution stores discrete and ContDistribution stores continuous 
     12distributions. To some extent, they both resemble dictionaries, 
     13with attribute values as keys and number of examples with particular 
     14value as elements. 
     15 
     16================= 
     17General Distributions 
     18================= 
     19 
     20Class Distribution contains the common methods for different types of 
     21distributions. Even more, its constructor can be used to construct objects 
     22of type DiscDistribution and ContDistribution (class Distribution itself 
     23is abstract, so no instances of that class can actually exist). 
     24 
     25 
     26 
     27**distributions-test.py** (uses inquisition.basket) :: 
     28 
     29    import Orange 
     30    import distributions 
     31 
     32    import Orange.core as orange 
     33 
     34    myData = Orange.data.Table("adult_sample.tab") 
     35    disc = Orange.data.value.Distribution("workclass", myData) 
     36 
     37    print disc 
     38    print type(disc)  
     39 
     40 
     41 
     42 
     43""" 
     44 
     45 
    146from orange import \ 
    2                BasicAttrStat, \ 
    3           DomainBasicAttrStat, \ 
    4           DomainContingency, \ 
    5           DomainDistributions, \ 
    6           DistributionList, \ 
    7           ComputeDomainContingency, \ 
    8           ConditionalProbabilityEstimator, \ 
    9                ConditionalProbabilityEstimator_ByRows, \ 
    10                ConditionalProbabilityEstimator_FromDistribution, \ 
    11           ConditionalProbabilityEstimatorConstructor, \ 
    12                ConditionalProbabilityEstimatorConstructor_ByRows, \ 
    13                ConditionalProbabilityEstimatorConstructor_loess, \ 
    14           ConditionalProbabilityEstimatorList, \ 
    15           Contingency, \ 
    16                ContingencyAttrAttr, \ 
    17                ContingencyClass, \ 
    18                     ContingencyAttrClass, \ 
    19                     ContingencyClassAttr 
     47     BasicAttrStat, \ 
     48     DomainBasicAttrStat, \ 
     49     DomainContingency, \ 
     50     DomainDistributions, \ 
     51     DistributionList, \ 
     52     ComputeDomainContingency, \ 
     53     ConditionalProbabilityEstimator, \ 
     54         ConditionalProbabilityEstimator_ByRows, \ 
     55         ConditionalProbabilityEstimator_FromDistribution, \ 
     56         ConditionalProbabilityEstimatorConstructor, \ 
     57         ConditionalProbabilityEstimatorConstructor_ByRows, \ 
     58         ConditionalProbabilityEstimatorConstructor_loess, \ 
     59     ConditionalProbabilityEstimatorList, \ 
     60         Contingency, \ 
     61             ContingencyAttrAttr, \ 
     62             ContingencyClass, \ 
     63             ContingencyAttrClass, \ 
     64             ContingencyClassAttr,  
Note: See TracChangeset for help on using the changeset viewer.