Skip to content

Commit 34144fc

Browse files
committed
Remove DST prefix
1 parent d9b4e7e commit 34144fc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/StatsLearnModels.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ using StatsBase: mode, mean
1111
using ColumnSelectors: ColumnSelector, selector
1212
using TableTransforms: StatelessFeatureTransform
1313

14-
import DataScienceTraits as DST
1514
import TableTransforms: applyfeat, isrevertible
1615

1716
using DecisionTree: AdaBoostStumpClassifier, DecisionTreeClassifier, RandomForestClassifier

src/models/nearestneighbors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ function predict(fmodel::FittedModel{<:NearestNeighborsModel}, table)
4848
end
4949

5050
function _checkoutput(::KNNClassifier, x)
51-
if !(elscitype(x) <: DST.Categorical)
51+
if !(elscitype(x) <: Categorical)
5252
throw(ArgumentError("output column must be categorical"))
5353
end
5454
end
5555

5656
function _checkoutput(::KNNRegressor, x)
57-
if !(elscitype(x) <: DST.Continuous)
57+
if !(elscitype(x) <: Continuous)
5858
throw(ArgumentError("output column must be continuous"))
5959
end
6060
end

0 commit comments

Comments
 (0)