- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Our customer was trying to work with PCA algorithm through Intel extension for Scikitlearn, in DevCloud.
The error message reported is:
SKLEARNEX DEBUG: sklearn.decomposition.PCA.fit: patching failed with cause - The shape of X does not satisfy oneDAL requirements: number of features / number of samples >= 2
SKLEARNEX INFO: sklearn.decomposition.PCA.fit: fallback to original Scikit-learn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities.
We were able to reproduce your issue from our end.
This is a known limitation in the Intel extension for Scikit-learn:
When the number of samples exceeds the number of features (samples > 2*features), both Scikit-learn and the Intel extension for Scikit-learn are going to work, else it is going to throw an error like you mentioned above.
Example:
In your sample if u swap n_features with n_samples i.e if
n_features=1000
n_samples=7000
Then your sample is going to work.
Thanks,
Jaideep
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities.
We were able to reproduce your issue from our end.
This is a known limitation in the Intel extension for Scikit-learn:
When the number of samples exceeds the number of features (samples > 2*features), both Scikit-learn and the Intel extension for Scikit-learn are going to work, else it is going to throw an error like you mentioned above.
Example:
In your sample if u swap n_features with n_samples i.e if
n_features=1000
n_samples=7000
Then your sample is going to work.
Thanks,
Jaideep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you, I replied back to our customer, and waiting their response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!
Thanks,
Jaideep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thanks,
Jaideep

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page