Skip to content

Commit

Permalink
Merge pull request #384 from sepandhaghighi/imbalance_doc
Browse files Browse the repository at this point in the history
Imbalance Check Document
  • Loading branch information
sadrasabouri authored Aug 31, 2021
2 parents 27e3919 + 12705a4 commit a2692bf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- `is_imbalanced` parameter added to ConfusionMatrix `__init__` method
- `statistic_recommend` function modified
- Document modified
## [3.2] - 2021-08-11
### Added
- `classes_filter` function
Expand Down
21 changes: 21 additions & 0 deletions Document/Document.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,27 @@
"<center><p style=\"text-align:center;\">Fig2. Parameter Recommender Block Diagram</p></center>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For determining if the dataset is imbalanced, we use the following strategy:"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$R=\\frac{Max(P)}{Min(P)}$$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$State=\\begin{cases}Balance & R\\leq 3\\\\Imbalance & R > 3\\end{cases}$$"
]
},
{
"cell_type": "code",
"execution_count": 47,
Expand Down

0 comments on commit a2692bf

Please sign in to comment.