Skip to content

Commit

Permalink
Restore max_iter behavior during training
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuanXu1 committed Aug 11, 2023
1 parent 83cf73e commit b3ce291
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions celltypist/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,7 @@ def train(X = None,
indata = indata.toarray()
#max_iter
if max_iter is None:
if use_GPU:
max_iter = 1000
elif indata.shape[0] < 50000:
if indata.shape[0] < 50000:
max_iter = 1000
elif indata.shape[0] < 500000:
max_iter = 500
Expand Down

0 comments on commit b3ce291

Please sign in to comment.