getml.feature_learning.RelMT dataclass
RelMT(
allow_avg: bool = True,
delta_t: float = 0.0,
gamma: float = 0.0,
loss_function: Optional[
Union[CrossEntropyLossType, SquareLossType]
] = None,
max_depth: int = 2,
min_df: int = 30,
min_num_samples: int = 1,
num_features: int = 30,
num_subfeatures: int = 30,
num_threads: int = 0,
propositionalization: FastProp = FastProp(),
reg_lambda: float = 0.0,
sampling_factor: float = 1.0,
seed: int = 5543,
shrinkage: float = 0.1,
silent: bool = True,
vocab_size: int = 500,
)
Bases: _FeatureLearner
Feature learning based on relational linear model trees.
RelMT
automates feature learning for relational data and time series. It is based on a generalization of linear model trees to relational data, hence the name. A linear model tree is a decision tree with linear models on its leaves.
For more information on the underlying feature learning algorithm, check out the User Guide: RelMT.
Enterprise edition
This feature is exclusive to the Enterprise edition and is not available in the Community edition. Discover the benefits of the Enterprise edition and compare their features.
For licensing information and technical support, please contact us.
PARAMETER | DESCRIPTION |
---|---|
allow_avg | Whether to allow an AVG aggregation. Particularly for time series problems, AVG aggregations are not necessary and you can save some time by taking them out. TYPE: |
delta_t | Frequency with which lag variables will be explored in a time series setting. When set to 0.0, there will be no lag variables. For more information, please refer to Time Series in the User Guide. Range: [0, ∞] TYPE: |
gamma | During the training of RelMT, which is based on gradient tree boosting, this value serves as the minimum improvement in terms of the TYPE: |
loss_function | Objective function used by the feature learning algorithm to optimize your features. For regression problems use TYPE: |
max_depth | Maximum depth of the trees generated during the gradient tree boosting. Deeper trees will result in more complex models and increase the risk of overfitting. Range: [0, ∞] TYPE: |
min_df | Only relevant for columns with role TYPE: |
min_num_samples | Determines the minimum number of samples a subcondition should apply to in order for it to be considered. Higher values lead to less complex statements and less danger of overfitting. Range: [1, ∞] TYPE: |
num_features | Number of features generated by the feature learning algorithm. Range: [1, ∞] TYPE: |
num_subfeatures | The number of subfeatures you would like to extract in a subensemble (for snowflake data model only). See :ref: TYPE: |
num_threads | Number of threads used by the feature learning algorithm. If set to zero or a negative value, the number of threads will be determined automatically by the getML Engine. Range: [-∞, ∞] TYPE: |
propositionalization | The feature learner used for joins which are flagged to be propositionalized (by setting a join's |
reg_lambda | L2 regularization on the weights in the gradient boosting routine. This is one of the most important hyperparameters in the TYPE: |
sampling_factor | RelMT uses a bootstrapping procedure (sampling with replacement) to train each of the features. The sampling factor is proportional to the share of the samples randomly drawn from the population table every time RelMT generates a new feature. A lower sampling factor (but still greater than 0.0), will lead to less danger of overfitting, less complex statements and faster training. When set to 1.0, roughly 20,000 samples are drawn from the population table. If the population table contains less than 20,000 samples, it will use standard bagging. When set to 0.0, there will be no sampling at all. Range: [0, ∞] TYPE: |
seed | Seed used for the random number generator that underlies the sampling procedure to make the calculation reproducible. Internally, a TYPE: |
shrinkage | Since RelMT works using a gradient-boosting-like algorithm, TYPE: |
silent | Controls the logging during training. TYPE: |
vocab_size | Determines the maximum number of words that are extracted in total from TYPE: |
validate
Checks both the types and the values of all instance variables and raises an exception if something is off.
PARAMETER | DESCRIPTION |
---|---|
params | A dictionary containing the parameters to validate. If not is passed, the own parameters will be validated. |
Source code in getml/feature_learning/relmt.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
|