Skip to content

Commit 6c27da3

Browse files
authored
Fix for roc_auc_score import condition (#1101)
1 parent 14849ee commit 6c27da3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/daal4py.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ void c_train_test_split(data_or_file & orig, data_or_file & train, data_or_file
856856

857857
double c_roc_auc_score(data_or_file & y_true, data_or_file & y_test)
858858
{
859-
#if __INTEL_DAAL__ == 2021 && INTEL_DAAL_VERSION >= 20210200
859+
#if __INTEL_DAAL__ >= 2021 && INTEL_DAAL_VERSION >= 20210200
860860
const size_t col_true = y_true.table->getNumberOfColumns();
861861
const size_t row_true = y_true.table->getNumberOfRows();
862862
const size_t col_test = y_test.table->getNumberOfColumns();

src/daal4py.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using daal::services::LibraryVersionInfo;
5252
#include "data_management/data/internal/finiteness_checker.h"
5353
#include "data_management/data/internal/train_test_split.h"
5454

55-
#if __INTEL_DAAL__ == 2021 && INTEL_DAAL_VERSION >= 20210200
55+
#if __INTEL_DAAL__ >= 2021 && INTEL_DAAL_VERSION >= 20210200
5656
#include "data_management/data/internal/roc_auc_score.h"
5757
#endif
5858
#if __INTEL_DAAL__ >= 2021 && INTEL_DAAL_VERSION >= 20210600

0 commit comments

Comments
 (0)