We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4725e5 commit faa7293Copy full SHA for faa7293
libmultilabel/linear/linear.py
@@ -131,6 +131,8 @@ def init_trainer(
131
num_instances, num_classes = cls.y.shape
132
num_features = cls.x.shape[1]
133
cls.prob = problem(np.ones((num_instances,)), cls.x)
134
+
135
+ # remove "-m nr_thread" from options to prevent nested multi-threading
136
cls.param = parameter(re.sub(r"-m\s+\d+", "", options))
137
if cls.param.solver_type in [solver_names.L2R_L1LOSS_SVC_DUAL, solver_names.L2R_L2LOSS_SVC_DUAL]:
138
cls.param.w_recalc = True # only works for solving L1/L2-SVM dual
0 commit comments