Get a list of all installed packages on your local maschine How do I get a list of locally installed Python modules?).
Install probably the missing package pyspark.sql.metrics (which the way you normally install packages)
If this does not work try this old topic: How to load a joblib file with custom class previously saved using a notebook?