Skip to content

Commit

Permalink
Remove print statement from Evaluation class
Browse files Browse the repository at this point in the history
  • Loading branch information
fullbat committed Apr 22, 2024
1 parent c7f59c9 commit d2c2884
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions commit/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,6 @@ cdef class Evaluation :
from commit.operator import operator
mask = np.zeros(self.DICTIONARY['IC']['nF']*self.KERNELS['wmc'].shape[0], dtype=np.uint32)
mask[self.x>0] = 1
print(f"number of non-zero coefficients: {np.sum(mask)}")
self.DICTIONARY['IC']['idx'] = np.ascontiguousarray(mask, dtype=np.uint32)
self.A = operator.LinearOperator( self.DICTIONARY, self.KERNELS, self.THREADS, True if hasattr(self.model, 'nolut') else False )
if self.KERNELS['wmc'].shape[0] > 1:
Expand All @@ -1346,7 +1345,6 @@ cdef class Evaluation :
self.set_regularisation()

self.x, opt_details = commit.solvers.solve(self.get_y(), self.A, self.A.T, tol_fun=tol_fun, tol_x=tol_x, max_iter=max_iter, verbose=self.verbose, x0=self.x, regularisation=self.regularisation_params, confidence_array=confidence_array)
print(f"number of non-zero coefficients: {np.sum(mask)}")

logger.info( f'[ {format_time(self.CONFIG["optimization"]["fit_time"])} ]' )

Expand Down

0 comments on commit d2c2884

Please sign in to comment.