Skip to content

khiops.core.api.train_predictor() trigger RuntimeError when using deprecated data path #610

Description

@MathieuCoupe

Description

python package version 11.0.1.0

When using train_preditor() with an additional table using the deprecated data path (ie: main`Other), a runtime error occurs.

results = kh.train_predictor(
            ...
            data_table_path='s3://bucket/training/root/*.csv',
            additional_data_tables={'main`Other': 's3://bucket/training/other/*.csv'},
            ...
        )
      for kdic_path in task_args[data_path_task_arg_name].keys():
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

E RuntimeError: dictionary keys changed during iteration

/soft/trio/src/trio-spark-jobs-python/.venv/lib/python3.12/site-packages/khiops/core/api.py:236: RuntimeError

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions