Skip to content

Commit 37ac68b

Browse files
committed
fix: BaseLearner query method return_metrics keyword argument moved after catching the arguments
1 parent d4a3c7b commit 37ac68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modAL/models/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def predict_proba(self, X: modALinput, **predict_proba_kwargs) -> Any:
152152
"""
153153
return self.estimator.predict_proba(X, **predict_proba_kwargs)
154154

155-
def query(self, X_pool, return_metrics: bool = False, *query_args, **query_kwargs) -> Union[Tuple, modALinput]:
155+
def query(self, X_pool, *query_args, return_metrics: bool = False, **query_kwargs) -> Union[Tuple, modALinput]:
156156
"""
157157
Finds the n_instances most informative point in the data provided by calling the query_strategy function.
158158

0 commit comments

Comments
 (0)