(task_type, grow_policy)
| 7679 | |
| 7680 | @pytest.mark.parametrize('grow_policy', NONSYMMETRIC) |
| 7681 | def test_grow_policy_fails(task_type, grow_policy): |
| 7682 | train_pool = Pool(TRAIN_FILE, column_description=CD_FILE) |
| 7683 | test_pool = Pool(TEST_FILE, column_description=CD_FILE) |
| 7684 | args = { |
| 7685 | 'iterations': 30, |
| 7686 | 'loss_function': 'Logloss', |
| 7687 | 'use_best_model': False, |
| 7688 | 'learning_rate': 0.3, |
| 7689 | 'grow_policy': grow_policy, |
| 7690 | 'boosting_type': 'Plain', |
| 7691 | 'task_type': task_type, |
| 7692 | 'gpu_ram_part': TEST_GPU_RAM_PART, |
| 7693 | 'devices': '0' |
| 7694 | } |
| 7695 | model = CatBoostClassifier(**args) |
| 7696 | |
| 7697 | model.fit(train_pool) |
| 7698 | |
| 7699 | with pytest.raises(CatBoostError): |
| 7700 | model.shrink(9) |
| 7701 | with pytest.raises(CatBoostError): |
| 7702 | model.get_object_importance(test_pool, train_pool) |
| 7703 | |
| 7704 | model_output = test_output_path('model') |
| 7705 | for format in ['AppleCoreML', 'cpp', 'python', 'onnx']: |
| 7706 | with pytest.raises(CatBoostError): |
| 7707 | model.save_model(model_output, format=format) |
| 7708 | _ = sum_models([model, model.copy()]) |
| 7709 | |
| 7710 | |
| 7711 | @pytest.mark.parametrize('grow_policy', NONSYMMETRIC) |
nothing calls this directly
no test coverage detected