(synonyms, params)
| 1580 | |
| 1581 | # the first element of the synonyms list is the canonical name |
| 1582 | def _process_synonyms_group(synonyms, params): |
| 1583 | assert len(synonyms) > 1, 'there should be more than one synonym' |
| 1584 | |
| 1585 | value = None |
| 1586 | for synonym in synonyms: |
| 1587 | if synonym in params: |
| 1588 | if value is not None: |
| 1589 | raise CatBoostError('only one of the parameters ' + (', '.join(synonyms)) + ' should be initialized.') |
| 1590 | value = params[synonym] |
| 1591 | del params[synonym] |
| 1592 | |
| 1593 | if value is not None: |
| 1594 | params[synonyms[0]] = value |
| 1595 | |
| 1596 | |
| 1597 | def _process_synonyms_groups(params): |
no test coverage detected