#NEWLINE# def has_fit_parameter( estimator , parameter ) : #NEWLINE# #INDENT# 'Checks whether the estimator\'s fit method supports the given parameter.\n\n    Examples\n    --------\n    >>> from sklearn.svm import SVC\n    >>> has_fit_parameter(SVC(), "sample_weight")\n    True\n\n    ' #NEWLINE# return ( parameter in signature ( estimator . fit ) . parameters )