Skip to content

Commit 6f70060

Browse files
authored
Add assert to ProjectionPursuit (#165)
1 parent da297f8 commit 6f70060

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/transforms/eigenanalysis.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ function revertfeat(::EigenAnalysis, newfeat, fcache)
105105
end
106106

107107
function reapplyfeat(transform::EigenAnalysis, feat, fcache)
108-
# basic checks
109-
for assertion in assertions(transform)
110-
assertion(feat)
111-
end
112-
113108
# table as matrix
114109
X = Tables.matrix(feat)
115110

src/transforms/projectionpursuit.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ end
4747
ProjectionPursuit(; tol=1e-6, maxiter=100, deg=5, perc=0.9, n=100, rng=Random.GLOBAL_RNG) =
4848
ProjectionPursuit{typeof(tol),typeof(rng)}(tol, maxiter, deg, perc, n, rng)
4949

50+
assertions(::Type{<:ProjectionPursuit}) = [SciTypeAssertion{Continuous}()]
51+
5052
isrevertible(::Type{<:ProjectionPursuit}) = true
5153

5254
# transforms a row of random variables into a convex combination

0 commit comments

Comments
 (0)