Skip to content

Commit

Permalink
format reference to .feature_name_ with ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklamiller committed Jun 1, 2024
1 parent 9e168f2 commit 8698523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ def feature_name_(self) -> List[str]:

@property
def feature_names_in_(self) -> np.ndarray:
""":obj:`array` of shape = [n_features]: scikit-learn compatible version of .feature_name_."""
""":obj:`array` of shape = [n_features]: scikit-learn compatible version of ``.feature_name_``."""
if not self.__sklearn_is_fitted__():
raise LGBMNotFittedError("No feature_names_in_ found. Need to call fit beforehand.")
return np.array(self.feature_name_)
Expand Down

0 comments on commit 8698523

Please sign in to comment.