Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 109 additions & 9 deletions khiops/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,15 @@ def check_database(
`detect_format` to `False` if set. Ignored if `detect_format`
is `True`.
sample_percentage : float, default 100.0
See the `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.

!!! note

A selection variable can also be applied to select samples, via the
`selection_variable` parameter (see below). The effects are
orthogonal and additive.

sampling_mode : "Include sample" or "Exclude sample"
If equal to "Include sample" it checks `sample_percentage` percent of
the data; if equal to "Exclude sample" it checks the complement of the
Expand All @@ -681,6 +689,12 @@ def check_database(
selection_variable : str, default ""
It checks only the records such that the value of `selection_variable` is
equal to `selection_value`. Ignored if equal to "".

!!! note

The sample percentage, set via the `sample_percentage` parameter, is
applied additively.

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".
additional_data_tables : dict, optional
Expand Down Expand Up @@ -790,7 +804,15 @@ def train_predictor(
`detect_format` to `False` if set. Ignored if `detect_format`
is `True`.
sample_percentage : float, default 70.0
See the `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.

!!! note

A selection variable can also be applied to select samples, via the
`selection_variable` parameter (see below). The effects are
orthogonal and additive.

sampling_mode : "Include sample" or "Exclude sample"
If equal to "Include sample" it trains the predictor on `sample_percentage`
percent of the data and tests the model on the remainder of the data if
Expand All @@ -803,6 +825,12 @@ def train_predictor(
selection_variable : str, default ""
It trains with only the records such that the value of `selection_variable` is
equal to `selection_value`. Ignored if equal to "".

!!! note

The sample percentage, set via the `sample_percentage` parameter, is
applied additively.

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".
additional_data_tables : dict, optional
Expand Down Expand Up @@ -843,7 +871,8 @@ def train_predictor(
variables and automatically constructed variables, excluding features
derived from the text variables or from variable pairs. Decision trees
usually improve the predictor's performance at the cost of the
interpretability of the model.
interpretability of the model. For initial analysis, users can start
with `max_trees` set to 0.
max_pairs : int, default 0
Maximum number of pair features to construct. These features exploit
bivariate partitions of native or automatically constructed variables,
Expand Down Expand Up @@ -1115,7 +1144,15 @@ def evaluate_predictor(
`detect_format` to `False` if set. Ignored if `detect_format`
is `True`.
sample_percentage : float, default 100.0
See `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.

!!! note

A selection variable can also be applied to select samples, via the
`selection_variable` parameter (see below). The effects are
orthogonal and additive.

sampling_mode : "Include sample" or "Exclude sample"
If equal to "Include sample" it evaluates the predictor on `sample_percentage`
percent of the data. If equal to "Exclude sample" it evaluates the predictor on
Expand All @@ -1124,6 +1161,12 @@ def evaluate_predictor(
selection_variable : str, default ""
It trains with only the records such that the value of `selection_variable` is
equal to `selection_value`. Ignored if equal "".

!!! note

The sample percentage, set via the `sample_percentage` parameter, is
applied additively.

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".
additional_data_tables : dict, optional
Expand Down Expand Up @@ -1266,7 +1309,15 @@ def train_recoder(
`detect_format` to `False` if set. Ignored if `detect_format`
is `True`.
sample_percentage : float, default 100.0
See `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.

!!! note

A selection variable can also be applied to select samples, via the
`selection_variable` parameter (see below). The effects are
orthogonal and additive.

sampling_mode : "Include sample" or "Exclude sample"
If equal to "Include sample" it trains the recoder on `sample_percentage`
percent of the data. If equal to "Exclude sample" it trains the recoder on the
Expand All @@ -1275,6 +1326,12 @@ def train_recoder(
selection_variable : str, default ""
It trains with only the records such that the value of `selection_variable` is
equal to `selection_value`. Ignored if equal to "".

!!! note

The sample percentage, set via the `sample_percentage` parameter, is
applied additively.

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".
additional_data_tables : dict, optional
Expand All @@ -1301,7 +1358,8 @@ def train_recoder(
variables and automatically constructed variables, excluding features
derived from the text variables or from variable pairs. Decision trees
usually improve the recoder's performance at the cost of the
interpretability of the model.
interpretability of the model. For initial analysis, users can start
with `max_trees` set to 0.
max_pairs : int, default 0
Maximum number of pair features to construct. These features exploit
bivariate partitions of native or automatically constructed variables,
Expand Down Expand Up @@ -1467,7 +1525,15 @@ def deploy_model(
`detect_format` to `False` if set. Ignored if `detect_format`
is `True`.
sample_percentage : float, default 100.0
See `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.

!!! note

A selection variable can also be applied to select samples, via the
`selection_variable` parameter (see below). The effects are
orthogonal and additive.

sampling_mode : "Include sample" or "Exclude sample"
If equal to "Include sample" it deploys the model on `sample_percentage`
percent of the data. If equal to "Exclude sample" it deploys the model on the
Expand All @@ -1476,6 +1542,12 @@ def deploy_model(
selection_variable : str, default ""
It deploys only the records such that the value of `selection_variable` is
equal to `selection_value`. Ignored if equal to "".

!!! note

The sample percentage, set via the `sample_percentage` parameter, is
applied additively.

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".
additional_data_tables : dict, optional
Expand Down Expand Up @@ -1782,7 +1854,15 @@ def train_coclustering(
`detect_format` to `False` if set. Ignored if `detect_format`
is `True`.
sample_percentage : float, default 100.0
See `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.

!!! note

A selection variable can also be applied to select samples, via the
`selection_variable` parameter (see below). The effects are
orthogonal and additive.

sampling_mode : "Include sample" or "Exclude sample"
If equal to "Include sample" it trains the coclustering estimator on
`sample_percentage` percent of the data. If equal to "Exclude sample" it
Expand All @@ -1792,6 +1872,12 @@ def train_coclustering(
selection_variable : str, default ""
It trains with only the records such that the value of `selection_variable` is
equal to `selection_value`. Ignored if equal to "".

!!! note

The sample percentage, set via the `sample_percentage` parameter, is
applied additively.

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".
additional_data_tables : dict, optional
Expand Down Expand Up @@ -1899,7 +1985,15 @@ def train_instance_variable_coclustering(
`detect_format` to `False` if set. Ignored if `detect_format`
is `True`.
sample_percentage : float, default 100.0
See `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.

!!! note

A selection variable can also be applied to select samples, via the
`selection_variable` parameter (see below). The effects are
orthogonal and additive.

sampling_mode : "Include sample" or "Exclude sample"
If equal to "Include sample" it trains the coclustering estimator on
`sample_percentage` percent of the data. If equal to "Exclude sample" it
Expand All @@ -1909,6 +2003,12 @@ def train_instance_variable_coclustering(
selection_variable : str, default ""
It trains with only the records such that the value of `selection_variable` is
equal to `selection_value`. Ignored if equal to "".

!!! note

The sample percentage, set via the `sample_percentage` parameter, is
applied additively.

selection_value: str or int or float, default ""
See `selection_variable` option above. Ignored if equal to "".
additional_data_tables : dict, optional
Expand Down
3 changes: 2 additions & 1 deletion khiops/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ def deploy_predictor_for_metrics(
A field separator character, overrides `detect_format` if set ("" counts
as "\\t").
sample_percentage : int, default 70
See `sampling_mode` option below.
Percentage of samples retained. See also the `sampling_mode` option
below.
sampling_mode : "Include sample" or "Exclude sample", default "Include sample"
If equal to "Include sample" deploys the predictor on `sample_percentage`
percent of data and if equal to "Exclude sample" on the complementary ``100 -
Expand Down
6 changes: 3 additions & 3 deletions khiops/sklearn/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ class KhiopsClassifier(ClassifierMixin, KhiopsPredictor):
variables and automatically constructed variables, excluding features
derived from the text variables or from variable pairs. Decision trees
usually improve the classifier's performance at the cost of the
interpretability of the model.
interpretability of the model. For initial analysis, users can start with `max_trees` set to 0.
n_text_features : int, default 10000
Maximum number of text features to construct.
type_text_features : str, default "words"
Expand Down Expand Up @@ -2148,7 +2148,7 @@ class KhiopsRegressor(RegressorMixin, KhiopsPredictor):
variables and automatically constructed variables, excluding features
derived from the text variables or from variable pairs. Decision trees
usually improve the regressor's performance at the cost of the
interpretability of the model.
interpretability of the model. For initial analysis, users can start with `max_trees` set to 0.
n_text_features : int, default 10000
Maximum number of text features to construct.
type_text_features : str, default "words"
Expand Down Expand Up @@ -2369,7 +2369,7 @@ class KhiopsEncoder(TransformerMixin, KhiopsSupervisedEstimator):
variables and automatically constructed variables, excluding features
derived from the text variables or from variable pairs. Decision trees
usually improve the encoder's performance at the cost of the
interpretability of the model.
interpretability of the model. For initial analysis, users can start with `max_trees` set to 0.
n_text_features : int, default 10000
Maximum number of text features to construct.
type_text_features : str, default "words"
Expand Down
Loading