()
| 3449 | |
| 3450 | |
| 3451 | def test_copy_model(): |
| 3452 | pool = Pool(TRAIN_FILE, column_description=CD_FILE) |
| 3453 | model1 = CatBoostRegressor(iterations=5) |
| 3454 | model1.fit(pool) |
| 3455 | model2 = model1.copy() |
| 3456 | predictions1 = model1.predict(pool) |
| 3457 | predictions2 = model2.predict(pool) |
| 3458 | assert _check_data(predictions1, predictions2) |
| 3459 | output_model_path = test_output_path(OUTPUT_MODEL_PATH) |
| 3460 | model2.save_model(output_model_path) |
| 3461 | return compare_canonical_models(output_model_path) |
| 3462 | |
| 3463 | |
| 3464 | def test_cv(task_type): |
nothing calls this directly
no test coverage detected