mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-20 12:50:52 +08:00
Added return_full_prob kwarg to solve call if pyamg not present.
This commit is contained in:
@@ -366,7 +366,8 @@ def random_walker(data, labels, beta=130, depth=1., mode='bf', tol=1.e-3,
|
||||
"""pyamg (http://code.google.com/p/pyamg/)) is needed to use
|
||||
this mode, but is not installed. The 'cg' mode will be used
|
||||
instead.""")
|
||||
X = _solve_cg(lap_sparse, B, tol=tol)
|
||||
X = _solve_cg(lap_sparse, B, tol=tol,
|
||||
return_full_prob=return_full_prob)
|
||||
else:
|
||||
X = _solve_cg_mg(lap_sparse, B, tol=tol,
|
||||
return_full_prob=return_full_prob)
|
||||
|
||||
Reference in New Issue
Block a user