scikits

How do I solve an import issue with numpy in scikit.decomposition.PCA?

How do I solve an import issue with numpy in scikit.decomposition.PCA? Question: I was trying to use the scikit.decomposition.PCA package and I couldn’t even import it. import numpy as np from sklearn.decomposition import PCA I’ve upgraded both of np and scikit, but the error seems to be w/in scikit, what should I do? *Note: Using …

Total answers: 1

Re-compose a Tensor after tensor factorization

Re-compose a Tensor after tensor factorization Question: I am trying to decompose a 3D matrix using python library scikit-tensor. I managed to decompose my Tensor (with dimensions 100x50x5) into three matrices. My question is how can I compose the initial matrix again using the decomposed matrix produced with Tensor factorization? I want to check if …

Total answers: 2

Python statistics package: difference between statsmodel and scipy.stats

Python statistics package: difference between statsmodel and scipy.stats Question: I need some advice on selecting statistics package for Python, I’ve done quite some search, but not sure if I get everything right, specifically on the differences between statsmodels and scipy.stats. One thing that I know is those with scikits namespace are specific “branches” of scipy, …

Total answers: 3

Cannot import scikits-learn even though it seems to be installed

Cannot import scikits-learn even though it seems to be installed Question: Per the scikit-learn user guide, I installed scikit-learn using pip install -U scikit-learn. So using pip search scikit-learn, I get this search result: scikit-learn – A set of python modules for machine learning and data mining INSTALLED: 0.12.1 (latest) But when I go into …

Total answers: 5

View onto a numpy array?

View onto a numpy array? Question: I have a 2D numpy array. Is there a way to create a view onto it that would include the first k rows and all columns? The point is to avoid copying the underlying data (the array is so large that making partial copies is not feasible.) Asked By: …

Total answers: 1