scree plot sklearn

Solutions on MaxInterview for scree plot sklearn by the best coders in the world

showing results for - "scree plot sklearn"
Adelene
08 Oct 2019
1from matplotlib import pyplot as plt
2from sklearn.decomposition import PCA
3import seaborn as sns
4import pandas as pd
5
6pca = PCA.fit(X_train)
7            
8df_var_explained = pd.DataFrame(pca.explained_variance_ratio_)
9
10plt.figure(figsize=(20, 20))