MCPcopy Create free account
hub / github.com/catboost/catboost / test_cv_skip_train_default

Function test_cv_skip_train_default

catboost/python-package/ut/medium/test.py:3602–3620  ·  view source on GitHub ↗
(task_type)

Source from the content-addressed store, hash-verified

3600
3601
3602def test_cv_skip_train_default(task_type):
3603 pool = Pool(TRAIN_FILE, column_description=CD_FILE)
3604 train_dir_prefix = test_output_path('')
3605 results = cv(
3606 pool,
3607 {
3608 "iterations": 20,
3609 "learning_rate": 0.03,
3610 "loss_function": "Logloss",
3611 "custom_loss": "AUC",
3612 "task_type": task_type,
3613 "gpu_ram_part": TEST_GPU_RAM_PART,
3614 "train_dir": os.path.join(train_dir_prefix, 'catboost_info'),
3615 },
3616 )
3617 assert "train-AUC-mean" not in results
3618 assert "train-AUC-std" not in results
3619
3620 return local_canonical_file(remove_time_from_json(os.path.join(train_dir_prefix, JSON_LOG_CV_PATH(0))))
3621
3622
3623def test_cv_metric_period(task_type):

Callers

nothing calls this directly

Calls 7

PoolClass · 0.90
cvFunction · 0.90
test_output_pathFunction · 0.85
remove_time_from_jsonFunction · 0.85
JSON_LOG_CV_PATHFunction · 0.85
local_canonical_fileFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected