Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU Custom objective support #2690

Closed
wants to merge 21 commits into from
Prev Previous commit
Next Next commit
Fixed style issues
  • Loading branch information
Semyon Panenko authored and pnsemyon committed Jun 14, 2024
commit dcf894b8428462fcd9357f9e8471157aa5cb72e0
Empty file.
1 change: 0 additions & 1 deletion catboost/private/libs/options/check_train_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ namespace NJson {
struct TCustomMetricDescriptor;
struct TCustomObjectiveDescriptor;
struct TCustomCallbackDescriptor;
struct TCustomGpuMetricDescriptor;

void CheckFitParams(const NJson::TJsonValue& plainOptions,
const TCustomObjectiveDescriptor* objectiveDescriptor = nullptr,
Expand Down
2 changes: 1 addition & 1 deletion catboost/python-package/catboost/_catboost.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import os
import traceback
import types


import sys
if sys.version_info >= (3, 3):
from collections.abc import Iterable, Sequence
Expand Down Expand Up @@ -625,6 +624,7 @@ cdef extern from "catboost/private/libs/algo/tree_print.h":
size_t treeIdx
) nogil except +ProcessException


cdef extern from "catboost/libs/metrics/metric.h":
cdef cppclass TCustomMetricDescriptor:
void* CustomData
Expand Down