Skip to content

Commit ad9b756

Browse files
authored
Merge pull request #13 from JuliaAI/arithmetic
Use CategoricalDistributions for UnivariateFinite, instead of MLJBase
2 parents 7ca66d7 + da40e11 commit ad9b756

File tree

8 files changed

+588
-221
lines changed

8 files changed

+588
-221
lines changed

Project.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
name = "MLJEnsembles"
22
uuid = "50ed68f4-41fd-4504-931a-ed422449fee0"
33
authors = ["Anthony D. Blaom <anthony.blaom@gmail.com>"]
4-
version = "0.1.2"
4+
version = "0.2.0"
55

66
[deps]
77
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
8+
CategoricalDistributions = "af321ab8-2d2e-40a6-b165-3d674595d28e"
89
ComputationalResources = "ed09eef8-17a6-5b46-8889-db040fac31e3"
910
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
1011
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1112
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
1213
MLJModelInterface = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
1314
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
1415
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
15-
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
16+
ScientificTypesBase = "30f210dd-8aff-4c5f-94ba-8e64358c1161"
1617
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1718

1819
[compat]
1920
CategoricalArrays = "0.8, 0.9, 0.10"
21+
CategoricalDistributions = "0.1.2"
2022
ComputationalResources = "0.3"
2123
Distributions = "0.21, 0.22, 0.23, 0.24, 0.25"
22-
MLJBase = "0.18"
24+
MLJBase = "0.19"
2325
MLJModelInterface = "0.4.1, 1.1"
2426
ProgressMeter = "1.1"
25-
ScientificTypes = "2"
27+
ScientificTypesBase = "2,3"
2628
StatsBase = "0.32, 0.33"
2729
julia = "1.1"
2830

2931
[extras]
30-
MLJModels = "d491faf4-2d78-11e9-2867-c94bc002c0b7"
31-
NearestNeighborModels = "636a865e-7cf4-491e-846c-de09b730eb36"
32+
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
33+
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
3234
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
3335
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3436

3537
[targets]
36-
test = ["MLJModels", "NearestNeighborModels", "StableRNGs", "Test"]
38+
test = ["Distances", "NearestNeighbors", "StableRNGs", "Test"]

src/MLJEnsembles.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
module MLJEnsembles
22

3+
using MLJModelInterface
4+
import MLJModelInterface: predict, fit
5+
import MLJBase # still needed for aggregating measures in oob-estimates of error
6+
using Random
7+
using CategoricalArrays
8+
using CategoricalDistributions
9+
using ComputationalResources
10+
using Distributed
11+
import Distributions
12+
using ProgressMeter
13+
import StatsBase
14+
15+
export EnsembleModel
16+
17+
const MMI = MLJModelInterface
18+
319
include("ensembles.jl")
420

521
end # module

0 commit comments

Comments
 (0)