Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Util/Bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def f1_score(y, y_pred):
@staticmethod
def _multi_clf(x, clfs, task, kwargs, stack=np.vstack, target="single"):
if target != "parallel":
return np.array([clf.predict(x) for clf in clfs], dtype=np.float32).T
return np.array([clf.predict(x) for clf in clfs]).T
n_cores = kwargs.get("n_cores", 2)
n_cores = multiprocessing.cpu_count() if n_cores <= 0 else n_cores
if n_cores == 1:
Expand Down