[MLT] fastbook Study Group (Sat 4-6 PM IST | Sun 5PM-7PM PT) Run 2!

Try to import everything in the notebook .It should be there
!pip install -Uqq fastbook
import fastbook
fastbook.setup_book()
:
#hide
from fastbook import *
from fastai.tabular.all import *
Then try to do
cluster_importance ??
in jupyter notebook you should see where the file is

by the way it is not so much difffcult. just normal plotting. See the function below

from scipy.cluster import hierarchy as hc
def cluster_columns(df, figsize=(10,6), font_size=12):
corr = np.round(scipy.stats.spearmanr(df).correlation, 4)
corr_condensed = hc.distance.squareform(1-corr)
z = hc.linkage(corr_condensed, method=‘average’)
fig = plt.figure(figsize=figsize)
hc.dendrogram(z, labels=df.columns, orientation=‘left’, leaf_font_size=font_size)
plt.show()