Changeset 10098:da7e470ebd12 in orange


Ignore:
Timestamp:
02/08/12 17:56:16 (2 years ago)
Author:
tomazc <tomaz.curk@…>
Branch:
default
rebase_source:
c8f6a66576f80d98c6e78223496f7a6d2cf5a159
Message:

Documentation for Orange.data.imputation.

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • Orange/__init__.py

    r10064 r10098  
    2424_import("data.discretization") 
    2525_import("data.filter") 
     26_import("data.imputation") 
    2627 
    2728_import("network") 
  • Orange/data/imputation.py

    r10071 r10098  
     1import Orange.feature.imputation 
     2 
     3class ImputeTable(object): 
     4    """Imputes missing values in the data table. 
     5 
     6    :param data: data to impute. 
     7    :type data: :class:`Orange.data.Table` 
     8 
     9    :param method: feature imputation method. 
     10    :type method: :class:`Imputation` 
     11 
     12    """ 
     13    def __new__(cls, data=None, method=Orange.feature.imputation.AverageConstructor()): 
     14        if data is None: 
     15            self = object.__new__(cls) 
     16            return self 
     17        else: 
     18            self = cls(method=method) 
     19            return self(data) 
     20 
     21    def __init__(self, method=Orange.feature.imputation.AverageConstructor()): 
     22        self.method = method 
     23 
     24    def __call__(self, data): 
     25        return self.method(data)(data) 
  • docs/reference/rst/Orange.data.rst

    r10070 r10098  
    1313    Orange.data.discretization 
    1414    Orange.data.continuization 
     15    Orange.data.imputation 
    1516    Orange.data.utils 
    1617    Orange.data.continuization 
  • docs/reference/rst/Orange.feature.imputation.rst

    r10072 r10098  
    3333:obj:`~Orange.data.Instance` it returns a new instance with the 
    3434missing values imputed (leaving the original instance intact). If imputer is 
    35 called with an :obj:`~Orange.data.Table` it returns a new data table with 
     35called with a :obj:`~Orange.data.Table` it returns a new data table with 
    3636imputed instances. 
    3737 
Note: See TracChangeset for help on using the changeset viewer.