Skip to content

Commit

Permalink
force using ScikitLearnBase
Browse files Browse the repository at this point in the history
  • Loading branch information
bensadeghi committed Jun 20, 2018
1 parent 31b2e99 commit 11cedff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/DecisionTree.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
__precompile__()

using ScikitLearnBase

module DecisionTree

import Base: length, convert, promote_rule, show, start, next, done
Expand All @@ -13,11 +15,7 @@ export Leaf, Node, Ensemble, print_tree, depth, build_stump, build_tree,

# ScikitLearn API
export DecisionTreeClassifier, DecisionTreeRegressor, RandomForestClassifier,
RandomForestRegressor, AdaBoostStumpClassifier,
# Should we export these functions? They have a conflict with
# DataFrames/RDataset over fit!, and users can always
# `using ScikitLearnBase`.
predict, predict_proba, fit!, get_classes
RandomForestRegressor, AdaBoostStumpClassifier

#####################################
##### Compatilibity Corrections #####
Expand Down

0 comments on commit 11cedff

Please sign in to comment.