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

Method transform_without_estimating

modAL/models/base.py:287–295  ·  view source on GitHub ↗

Transforms the data as supplied to each learner's estimator and concatenates transformations. Args: X: dataset to be transformed Returns: Transformed data set

(self, X: modALinput)

Source from the content-addressed store, hash-verified

285 return self
286
287 def transform_without_estimating(self, X: modALinput) -> Union[np.ndarray, sp.csr_matrix]:
288 """
289 Transforms the data as supplied to each learner's estimator and concatenates transformations.
290 Args:
291 X: dataset to be transformed
292 Returns:
293 Transformed data set
294 """
295 return data_hstack([learner.transform_without_estimating(X) for learner in self.learner_list])
296
297 def query(self, X_pool, return_metrics: bool = False, *query_args, **query_kwargs) -> Union[Tuple, modALinput]:
298 """

Callers

nothing calls this directly

Calls 2

data_hstackFunction · 0.90

Tested by

no test coverage detected