"""
=================================================
Plot silhouette 
=================================================

plot the silhouette to quantify the quality  of clustering samples. 
"""
# Author: L.Kouadio 
# Licence: BSD-3-clause 

#%%
from watex.datasets import load_hlogs 
from watex.view.mlplot import plotSilhouette
# use resistivity and gamma for this demo
X_res_gamma = load_hlogs().frame[['resistivity', 'sp']]  
    
# Plot silhouette with 'prefit' set to 'False' 
plotSilhouette (X_res_gamma, prefit =False)