Skip to content

Commit c08ac90

Browse files
committed
test CPDecomposition regular run
1 parent ca35171 commit c08ac90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/runtests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,13 @@ end
668668
converged=RelativeError,
669669
#converged=(GradientNNCone, RelativeError),
670670
constrain_init=false,
671-
maxiter=2,
671+
maxiter=500,
672672
constraints=[l2normalize_cols!, l2normalize_cols!, noconstraint],#nonnegative!,
673673
stats=[Iteration, ObjectiveValue, GradientNorm, RelativeError, ] # PrintStats,DisplayDecomposition
674674
);
675675

676+
@test stats[end, :Iteration] < 500
677+
676678
# Semi-interesting run of CPDecomposition
677679
N = 100
678680
R = 5
@@ -731,7 +733,7 @@ end
731733

732734
decomposition, stats, kwargs = fact(Y; options...);
733735

734-
@test_broken stats[end, :Iteration] < 1000 # ensure we did not hit the maximum number of iterations
736+
@test stats[end, :Iteration] < 1000 # ensure we did not hit the maximum number of iterations
735737
end
736738

737739
@testset "TuckerFactorization" begin

0 commit comments

Comments
 (0)