MCPcopy Create free account
hub / github.com/modAL-python/modAL / __init__

Method __init__

modAL/models/base.py:43–58  ·  view source on GitHub ↗
(self,
                 estimator: BaseEstimator,
                 query_strategy: Callable,
                 on_transformed: bool = False,
                 force_all_finite: bool = True,
                 **fit_kwargs
                 )

Source from the content-addressed store, hash-verified

41 """
42
43 def __init__(self,
44 estimator: BaseEstimator,
45 query_strategy: Callable,
46 on_transformed: bool = False,
47 force_all_finite: bool = True,
48 **fit_kwargs
49 ) -> None:
50 assert callable(query_strategy), 'query_strategy must be callable'
51
52 self.estimator = estimator
53 self.query_strategy = query_strategy
54 self.on_transformed = on_transformed
55
56 assert isinstance(force_all_finite,
57 bool), 'force_all_finite must be a bool'
58 self.force_all_finite = force_all_finite
59
60 def transform_without_estimating(self, X: modALinput) -> Union[np.ndarray, sp.csr_matrix]:
61 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected