You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""This is a test."""importsklearnimportnumpyfromtypingimportOptionalfromcustom_inheritimportdoc_inheritclassMyDecisionTreeClassifier(sklearn.tree.DecisionTreeClassifier):
@doc_inherit(sklearn.tree.DecisionTreeClassifier.predict_proba, style="google_with_merge")defpredict_proba(
self,
X: numpy.ndarray,
check_input: Optional[bool] =True,
my_option: Optional[bool] =False,
) ->numpy.ndarray:
"""Predict class probabilities of the input samples X. Args: my_option: If True, this is happening. If False, this other thing is happening and I need two lines to explain this option. Returns: numpy.ndarray: the result """print(my_option)
super.predict_proba(X, check_input=check_input)
When you flake8 it with flake8 src/concrete/ml/sklearn/d.py --config flake8_src.cfg with
I don't know if this is more of an issue to do to flake8, but I try.
Still with the .py from #46:
When you
flake8
it withflake8 src/concrete/ml/sklearn/d.py --config flake8_src.cfg
withI get
Then, I have to add a
# noqa: DAR101
in the docstring, to make flake8 happy. But it is a bit ugly in the html then:The text was updated successfully, but these errors were encountered: