<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pw_compare_class_sets(self, cset1: Set[ClassId], cset2: Set[ClassId]) -> Tuple[ICValue, ICValue, ICValue]: """ Compare two class profiles """

        pairs = self.mica_ic_df.loc[cset1, cset2]
        max0 = pairs.max(axis=0)
        max1 = pairs.max(axis=1)
        idxmax0 = pairs.idxmax(axis=0)
        idxmax1 = pairs.idxmax(axis=1)
        mean0 = max0.mean()
        mean1 = max1.mean()
        return (mean0+mean1)/2, mean0, mean1