Answers for "scree plot sklearn"

0

scree plot sklearn

from matplotlib import pyplot as plt
from sklearn.decomposition import PCA
import seaborn as sns
import pandas as pd

pca = PCA.fit(X_train)
            
df_var_explained = pd.DataFrame(pca.explained_variance_ratio_)

plt.figure(figsize=(20, 20))
Posted by: Guest on November-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language