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

Function _update_params_quantize_part

catboost/python-package/catboost/core.py:339–403  ·  view source on GitHub ↗
(params, ignored_features, per_float_feature_quantization, border_count,
                                 feature_border_type, sparse_features_conflict_fraction, dev_efb_max_buckets,
                                 nan_mode, input_borders, task_type, used_ram_limit, random_seed,
                                 dev_max_subset_size_for_build_borders)

Source from the content-addressed store, hash-verified

337
338
339def _update_params_quantize_part(params, ignored_features, per_float_feature_quantization, border_count,
340 feature_border_type, sparse_features_conflict_fraction, dev_efb_max_buckets,
341 nan_mode, input_borders, task_type, used_ram_limit, random_seed,
342 dev_max_subset_size_for_build_borders):
343 if ignored_features is not None:
344 params.update({
345 'ignored_features': ignored_features
346 })
347
348 if per_float_feature_quantization is not None:
349 params.update({
350 'per_float_feature_quantization': per_float_feature_quantization
351 })
352
353 if border_count is not None:
354 params.update({
355 'border_count': border_count
356 })
357
358 if feature_border_type is not None:
359 params.update({
360 'feature_border_type': feature_border_type
361 })
362
363 if sparse_features_conflict_fraction is not None:
364 params.update({
365 'sparse_features_conflict_fraction': sparse_features_conflict_fraction
366 })
367
368 if dev_efb_max_buckets is not None:
369 params.update({
370 'dev_efb_max_buckets': dev_efb_max_buckets
371 })
372
373 if nan_mode is not None:
374 params.update({
375 'nan_mode': nan_mode
376 })
377
378 if input_borders is not None:
379 params.update({
380 'input_borders': input_borders
381 })
382
383 if task_type is not None:
384 params.update({
385 'task_type': task_type
386 })
387
388 if used_ram_limit is not None:
389 params.update({
390 'used_ram_limit': used_ram_limit
391 })
392
393 if random_seed is not None:
394 params.update({
395 'random_seed': random_seed
396 })

Callers 2

quantizeMethod · 0.85
quantizeFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected