Skip to content

Commit

Permalink
Merge pull request #52 from chenyangkang/debug
Browse files Browse the repository at this point in the history
njobs of fit function defaults to njob attribute of object
  • Loading branch information
chenyangkang committed May 29, 2024
2 parents 7dc256f + 7f60cf8 commit e276350
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stemflow/model/AdaSTEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,14 +568,17 @@ def fit(
y_train: Union[pd.core.frame.DataFrame, np.ndarray],
verbosity: Union[None, int] = None,
ax=None,
njobs: int = 1,
njobs: Union[None, int] = None,
):
"""Fitting method
Args:
X_train: Training variables
y_train: Training target
ax: matplotlib Axes to add to
verbosty: whether to show progress bar. 0 for no and 1 for yes.
ax: matplotlib ax for adding grid plot on that.
njobs: multiprocessing thread count. Default the njob of model object.
Raises:
TypeError: X_train is not a type of pd.core.frame.DataFrame
Expand Down

0 comments on commit e276350

Please sign in to comment.