Skip to content

Commit

Permalink
added self.x_nnls storage
Browse files Browse the repository at this point in the history
  • Loading branch information
fullbat committed Nov 3, 2024
1 parent 7e39e8c commit 11ad588
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commit/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1381,9 +1381,13 @@ cdef class Evaluation :

with ProgressBar(disable=self.verbose!=3, hide_on_exit=True, subinfo=True) as pbar:
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=x0, regularisation=self.regularisation_params, confidence_array=confidence_array)

self.CONFIG['optimization']['fit_details'] = opt_details
self.CONFIG['optimization']['fit_time'] = time.time()-t

if self.regularisation_params['regIC'] is None and self.x_nnls is None:
self.x_nnls, _, _ = self.get_coeffs(get_normalized=False)

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


Expand Down

0 comments on commit 11ad588

Please sign in to comment.