<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def clean_parameters(self, params):
        '''Only keep known parameters'''
        return {k: v for k, v in params.items() if k in self.adapter.facets}