Skip to content

Commit

Permalink
minor tweaks to ccd
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar Solomonik committed Jun 26, 2019
1 parent 6823d11 commit 8805d34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CCD/ccd_sp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import ctf
from ctf import random
import matplotlib.pyplot as plt
import time
import sys
glob_comm = ctf.comm()
Expand Down Expand Up @@ -223,8 +222,8 @@ def run_CCD(T,U,V,W,omega,regParam,num_iter,time_limit,objective_frequency):
[objective, RMSE] = get_objective(T,U,V,W,omega,regParam)

if glob_comm.rank() == 0:
print('CCD amortized seconds per sweep: {}'.format(duration/(num_iter/r)))
print('Time/CCD Iteration: {}'.format(duration/num_iter))
print('CCD amortized seconds per sweep: {}'.format(duration/ite))
print('Time/CCD Iteration: {}'.format(duration/ite))
print('Objective after',duration,'seconds (',ite,'iterations) is: {}'.format(objective))
print('RMSE after',duration,'seconds (',ite,'iterations) is: {}'.format(RMSE))

Expand Down

0 comments on commit 8805d34

Please sign in to comment.