Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add message about Convergence #27

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spectra/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def train(self,X, labels = None, lr_schedule = [1.0,.5,.1,.01,.001,.0001],num_ep
if verbose:
print("UPDATING LR TO " + str(lr_schedule[int(counter/3)]))
last = loss.item()

print("Reached converence at epoch " + i)

#add all model parameters as attributes

Expand Down
3 changes: 2 additions & 1 deletion spectra/spectra_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ def train(self,X, labels = None, lr_schedule = [.5,.1,.01,.001,.0001], num_epoch
print("UPDATING LR TO " + str(lr_schedule[int(counter/skip)]))
last = loss.item()


print("Reached converence at epoch " + i)

#add all model parameters as attributes

if self.use_cell_types:
Expand Down