How to get weights for PCA
How to get weights for PCA Question: I am trying to find weights of PCA using skit-learn. However, none of the methods are working. Codes: import pandas as pd import numpy as np url = “https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data” # load dataset into Pandas DataFrame df = pd.read_csv(url, names=[‘sepal length’,’sepal width’,’petal length’,’petal width’,’target’]) from sklearn.preprocessing import StandardScaler features …