-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1065 from alan-turing-institute/dev
For a 0.20.1 release
- Loading branch information
Showing
12 changed files
with
105 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
name = "MLJ" | ||
uuid = "add582a8-e3ab-11e8-2d5e-e98b27df1bc7" | ||
authors = ["Anthony D. Blaom <[email protected]>"] | ||
version = "0.20.0" | ||
version = "0.20.1" | ||
|
||
[deps] | ||
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597" | ||
ComputationalResources = "ed09eef8-17a6-5b46-8889-db040fac31e3" | ||
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" | ||
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
MLJBalancing = "45f359ea-796d-4f51-95a5-deb1a414c586" | ||
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d" | ||
MLJEnsembles = "50ed68f4-41fd-4504-931a-ed422449fee0" | ||
MLJFlow = "7b7b8358-b45c-48ea-a8ef-7ca328ad328f" | ||
|
@@ -31,6 +32,7 @@ CategoricalArrays = "0.8,0.9, 0.10" | |
ComputationalResources = "0.3" | ||
Distributions = "0.21,0.22,0.23, 0.24, 0.25" | ||
MLJBase = "1" | ||
MLJBalancing = "0.1" | ||
MLJEnsembles = "0.4" | ||
MLJFlow = "0.2" | ||
MLJIteration = "0.6" | ||
|
@@ -40,8 +42,8 @@ OpenML = "0.2,0.3" | |
ProgressMeter = "1.1" | ||
Reexport = "1.2" | ||
ScientificTypes = "3" | ||
StatsBase = "0.32,0.33, 0.34" | ||
StatisticalMeasures = "0.1" | ||
StatsBase = "0.32,0.33, 0.34" | ||
Tables = "0.2,1.0" | ||
julia = "1.6" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Correcting Class Imbalance | ||
|
||
## Oversampling and undersampling methods | ||
|
||
Models providing oversampling or undersampling methods, to correct for class imbalance, | ||
are listed under [Class Imbalance](@ref). In particular, several popular algorithms are | ||
provided by the [Imbalance.jl]() package, which includes detailed documentation and | ||
tutorials. | ||
|
||
## Incorporating class imbalance in supervised learning pipelines | ||
|
||
One or more oversampling/undersampling algorithms can be fused with an MLJ classifier | ||
using the [`BalancedModel`](@ref) wrapper. This creates a new classifier which can be | ||
treated like any other; resampling to correct for class imbalance, relevant only for | ||
*training* of the atomic classifier, is then carried out internally. If, for example, one | ||
applies cross-validation to the wrapped classifier (using [`evaluate!`](@ref), say) then | ||
this means over/undersampling is then repeated for each training fold automatically. | ||
|
||
Refer to the | ||
[MLJBalancing.jl](https://juliaai.github.io/Imbalance.jl/dev/algorithms/mlj_balancing/) | ||
documentation for further details. | ||
|
||
```@docs | ||
MLJBalancing.BalancedModel | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters