Skip to content

Commit

Permalink
Merge branch 'intel:master' into remove_the_batch_suffix_from_examples
Browse files Browse the repository at this point in the history
  • Loading branch information
razdoburdin authored Jul 28, 2023
2 parents cd47d9c + eb5e673 commit a8ec489
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions sklearnex/preview/ensemble/extra_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,6 @@ def _onedal_cpu_supported(self, method_name, *data):
]
)

dal_ready = dal_ready and not hasattr(self, "estimators_")

if dal_ready and (self.random_state is not None):
warnings.warn(
"Setting 'random_state' value is not supported. "
Expand Down Expand Up @@ -685,8 +683,6 @@ def _onedal_gpu_supported(self, method_name, *data):
]
)

dal_ready &= not hasattr(self, "estimators_")

if dal_ready and (self.random_state is not None):
warnings.warn(
"Setting 'random_state' value is not supported. "
Expand Down Expand Up @@ -1154,8 +1150,6 @@ def _onedal_cpu_supported(self, method_name, *data):
]
)

dal_ready &= not hasattr(self, "estimators_")

if dal_ready and (self.random_state is not None):
warnings.warn(
"Setting 'random_state' value is not supported. "
Expand Down Expand Up @@ -1216,8 +1210,6 @@ def _onedal_gpu_supported(self, method_name, *data):
]
)

dal_ready &= not hasattr(self, "estimators_")

if dal_ready and (self.random_state is not None):
warnings.warn(
"Setting 'random_state' value is not supported. "
Expand Down
8 changes: 0 additions & 8 deletions sklearnex/preview/ensemble/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,6 @@ def _onedal_cpu_supported(self, method_name, *data):
return False
elif not self.n_outputs_ == 1:
return False
elif hasattr(self, "estimators_"):
return False
else:
return True
if method_name in ["predict", "predict_proba"]:
Expand Down Expand Up @@ -643,8 +641,6 @@ def _onedal_gpu_supported(self, method_name, *data):
return False
elif not self.n_outputs_ == 1:
return False
elif hasattr(self, "estimators_"):
return False
else:
return True
if method_name in ["predict", "predict_proba"]:
Expand Down Expand Up @@ -1004,8 +1000,6 @@ def _onedal_cpu_supported(self, method_name, *data):
return False
elif not self.n_outputs_ == 1:
return False
elif hasattr(self, "estimators_"):
return False
else:
return True
if method_name == "predict":
Expand Down Expand Up @@ -1057,8 +1051,6 @@ def _onedal_gpu_supported(self, method_name, *data):
return False
elif self.oob_score:
return False
elif hasattr(self, "estimators_"):
return False
else:
return True
if method_name == "predict":
Expand Down

0 comments on commit a8ec489

Please sign in to comment.