Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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))
Comment

PREVIOUS NEXT
Code Example
Python :: Python Tkinter PanedWindow Widget 
Python :: datetime column only extract date pandas 
Python :: django customize the user model 
Python :: get number in string python 
Python :: one line if statement python without else 
Python :: lists to dictionary python 
Python :: dask read csv 
Python :: If elif else 
Python :: get operator as input in python 
Python :: streamlit sidebar width 
Python :: upload file to s3 
Python :: Username Promt using Python with Character Limit 
Python :: colorgram in python 
Python :: python redirect with button click 
Python :: download unsplash images python no api 
Python :: axios django post data 
Python :: how to make a bill in python 
Python :: netcdf in python 
Python :: python sqrt 
Python :: get xlim python 
Python :: program to add first and last digit of a number in python 
Python :: python get total gpu memory 
Python :: python get first occurrence in list 
Python :: how to convert string to integer in python 
Python :: python between inheritance and composition 
Python :: how to declare private attribute in python 
Python :: pafy doc 
Python :: simple heatmap 
Python :: remove item from list 
Python :: django from 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =