DEVELOPMENT... OpenML
Flow
sklearn.preprocessing._function_transformer.FunctionTransformer

sklearn.preprocessing._function_transformer.FunctionTransformer

Visibility: public Uploaded 13-08-2021 by Cameron Burke sklearn==0.18.1 numpy>=1.6.1 scipy>=0.9 0 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_0.18.1
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
Constructs a transformer from an arbitrary callable. A FunctionTransformer forwards its X (and optionally y) arguments to a user-defined function or function object and returns the result of this function. This is useful for stateless transformations such as taking the log of frequencies, doing custom scaling, etc. A FunctionTransformer will not do any checks on its function's output. Note: If a lambda is used as the function, then the resulting transformer will not be pickleable. .. versionadded:: 0.17

Parameters

accept_sparseIndicate that func accepts a sparse matrix as input. If validate is False, this has no effect. Otherwise, if accept_sparse is false, sparse matrix inputs will cause an exception to be raiseddefault: false
funcThe callable to use for the transformation. This will be passed the same arguments as transform, with args and kwargs forwarded If func is None, then func will be the identity functiondefault: null
inv_kw_argsDictionary of additional keyword arguments to pass to inverse_func.default: null
inverse_funcThe callable to use for the inverse transformation. This will be passed the same arguments as inverse transform, with args and kwargs forwarded. If inverse_func is None, then inverse_func will be the identity functiondefault: null
kw_argsDictionary of additional keyword arguments to pass to funcdefault: null
pass_yIndicate that transform should forward the y argument to the inner callabledefault: false
validateIndicate that the input X array should be checked before calling func. If validate is false, there will be no input validation If it is true, then X will be converted to a 2-dimensional NumPy array or sparse matrix. If this conversion is not possible or X contains NaN or infinity, an exception is raiseddefault: true

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table

A PHP Error was encountered

Severity: Core Warning

Message: Module 'mysqli' already loaded

Filename: Unknown

Line Number: 0

Backtrace: