Changeset 10394:962c24741ced in orange for Orange/regression/base.py
 Timestamp:
 02/27/12 23:32:34 (2 years ago)
 Branch:
 default
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/regression/base.py
r10238 r10394 1 1 """\ 2 2 ==================================== 3 Bas icregression learner (``basic``)3 Base regression learner (``basic``) 4 4 ==================================== 5 5 … … 14 14 15 15 class BaseRegressionLearner(Orange.core.Learner): 16 """ Base Regression Learner "learns" how to treat the discrete 17 variables and missing data. 16 """Fitting regressors typically requires data that has only 17 continuousvalued features and no missing values. This class 18 provides methods for appropriate transformation of the data and serves as a base class for various regressor classes. 18 19 """ 19 20 … … 35 36 36 37 def set_imputer(self, imputer=None): 37 """ Set s the imputer for missing values.38 """ Set the imputer for missing data. 38 39 39 :param imputer: function which imputes the missing values, 40 if None, the default imputer: mean for the continuous variables 41 and most frequent value (majority) for discrete variables 40 :param imputer: function which constructs the imputer for the 41 missing values, if ``None``, the default imputer replaces 42 missing continuous data with the average of the 43 corresponding variable and missing discrete data with the 44 most frequent value. 42 45 :type imputer: None or Orange.feature.imputation.ModelConstructor 43 46 """ … … 50 53 51 54 def set_continuizer(self, continuizer=None): 52 """ Setsthe continuizer of the discrete variables55 """Set the continuizer of the discrete variables 53 56 54 :param continuizer: function which replaces the categorical (dicrete)55 variables with numerical variables. If None, the default continuizer56 is used57 :param continuizer: function which replaces the categorical 58 (dicrete) variables with numerical variables. If ``None``, 59 the default continuizer is used 57 60 :type continuizer: None or Orange.data.continuization.DomainContinuizer 58 61 """ … … 65 68 66 69 def impute_table(self, table): 67 """ Imputes missing values.68 Returns a new:class:`Orange.data.Table` object70 """Impute missing values and return a new 71 :class:`Orange.data.Table` object 69 72 70 73 :param table: data instances. … … 77 80 78 81 def continuize_table(self, table): 79 """ Continuizes the discrete variables.80 Returns a new :class:`Orange.data.Table` object82 """Replace discrete variables with continuous and return a new 83 instance of :class:`Orange.data.Table`. 81 84 82 85 :param table: data instances.
Note: See TracChangeset
for help on using the changeset viewer.