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

Function test_cv_logging

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

Source from the content-addressed store, hash-verified

4875
4876
4877def test_cv_logging(task_type):
4878 pool = Pool(TRAIN_FILE, column_description=CD_FILE)
4879 train_dir_prefix = test_output_path('')
4880 cv(
4881 pool,
4882 {
4883 "iterations": 14,
4884 "learning_rate": 0.03,
4885 "loss_function": "Logloss",
4886 "task_type": task_type,
4887 "gpu_ram_part": TEST_GPU_RAM_PART,
4888 "train_dir": os.path.join(train_dir_prefix, 'catboost_info')
4889 },
4890 )
4891 return local_canonical_file(remove_time_from_json(os.path.join(train_dir_prefix, JSON_LOG_CV_PATH(0))))
4892
4893
4894def test_cv_with_not_binarized_target(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