Comments (4)
It only makes sense if the output has the same shape as the input. I don't think this is the general case.
from scikit-learn.
Is there a way to make the pipeline use copy=False appropriately when it makes sense?
from scikit-learn.
Following @ogrisel's comment, closing the issue.
from scikit-learn.
We could however pre-allocate the output array (for dense representations) and pass-it as a kwargs:
>>> preallocated_output_array = np.empty((n_samples, n_features))
>>> transformed = clf.transform(X, out=preallocated_output_array)
>>> preallocated_output_array is transformed
True
This method is furthermore consistent with the numpy / scipy way of dealing with the issue.
from scikit-learn.
Related Issues (20)
- Make it possible to specify `monotonic_cst` with feature names in all tree-based estimators HOT 1
- ⚠️ CI failed on Ubuntu_Jammy_Jellyfish.pymin_conda_forge_openblas_ubuntu_2204 (last failure: Apr 19, 2024) ⚠️ HOT 3
- `parametrize_with_checks` fails if custom estimator implements `__call__`
- ⚠️ CI failed on macOS.pylatest_conda_mkl_no_openmp (last failure: Apr 20, 2024) ⚠️ HOT 3
- BUG: Issue building from source on MacOS Python 3.11 HOT 8
- ⚠️ CI failed on Linux_Nightly.pylatest_pip_scipy_dev (last failure: Apr 25, 2024) ⚠️
- usage of TimeSeriesSplit with cross_val_score HOT 7
- Feature request to use intermediate column transformer outputs
- ⚠️ CI failed on macOS.pylatest_conda_forge_mkl (last failure: Apr 24, 2024) ⚠️ HOT 1
- ⚠️ CI failed on Linux_Nightly_PyPy.pypy3 (last failure: Apr 29, 2024) ⚠️
- `TargetEncoder` should respect `sample_weights` HOT 1
- Configure OpenBLAS to use scikit-learn's OpenMP threadpool HOT 2
- ⚠️ CI failed on Wheel builder (last failure: Apr 26, 2024) ⚠️ HOT 1
- Add missing value support to ExtraTreesRegressor HOT 3
- Easily retrieve mapping from OrdinalEncoder HOT 3
- Automatically handle missing values in OrdinalEncoder HOT 1
- HistGradientBoostingClassifier raise error with monotonic constraints and categorical features HOT 3
- Validation step fails when using shared memory with `multiprocessing.managers.BaseManager` HOT 1
- Root mean square error function in the metric cannot be loaded HOT 1
- Parameter Validation Documentation? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-learn.