Skip to content

Commit 7d38e64

Browse files
committed
remove direct calls to classiFunc:: at all
1 parent 4b7ef5c commit 7d38e64

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

R/helpers_fda.R

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,31 @@ checkFDCols = function(data, col) {
4444
return(data)
4545
}
4646

47-
metric.choices = classiFunc::metricChoices()
48-
kernel.choices = classiFunc::kerChoices()
47+
# created by `classiFunc::metric.choices`
48+
# we cannot use the raw function here as otherwise pkg classiFunc would act like
49+
# a depenency of mlr (because this here is called during loading) the same goes
50+
# for the actual use of this object in the ParamSet of the classiFunc learners
51+
# From time to time we should update this list (or if we experience errors)
52+
# to have the latest settings
53+
# last update: 01/2020
54+
metric.choices = c(cosine1 = "cosine", cosine2 = "angular", eJaccard1 = "eJaccard",
55+
eJaccard2 = "extended_Jaccard", eDice1 = "eDice", eDice2 = "extended_Dice",
56+
eDice3 = "eSorensen", correlation = "correlation", Euclidean1 = "Euclidean",
57+
Euclidean2 = "L2", Mahalanobis = "Mahalanobis", Bhjattacharyya = "Bhjattacharyya",
58+
Manhattan1 = "Manhattan", Manhattan2 = "City-Block", Manhattan3 = "L1",
59+
Manhattan4 = "taxi", supremum1 = "supremum", supremum2 = "max",
60+
supremum3 = "maximum", supremum4 = "Tschebyscheff", supremum5 = "Chebyshev",
61+
Minkowski1 = "Minkowski", Minkowski2 = "Lp", Canberra = "Canberra",
62+
Wave1 = "Wave", Wave2 = "Hedges", divergence = "divergence",
63+
Kullback1 = "Kullback", Kullback2 = "Leibler", Bray1 = "Bray",
64+
Bray2 = "Curtis", Soergel = "Soergel", Podani1 = "Podani", Podani2 = "discordance",
65+
Chord = "Chord", Geodesic = "Geodesic", Whittaker = "Whittaker",
66+
Hellinger = "Hellinger", fJaccard1 = "fJaccard", fJaccard2 = "fuzzy_Jaccard",
67+
"shortEuclidean", "mean", "relAreas", "jump", "globMax", "globMin",
68+
"points", "custom.metric", "amplitudeDistance", "phaseDistance",
69+
"FisherRao", "elasticMetric", "elasticDistance", "dtwPath", "rucrdtw",
70+
"rucred")
71+
# created by `classiFunc::metric.choices`
72+
kernel.choices = c("Ker.norm", "Ker.cos", "Ker.epa", "Ker.tri", "Ker.quar", "Ker.unif",
73+
"AKer.norm", "AKer.cos", "AKer.epa", "AKer.tri", "AKer.quar",
74+
"AKer.unif", "custom.ker")

0 commit comments

Comments
 (0)