diff --git a/CHANGELOG.md b/CHANGELOG.md
index 88e636b5..56f55af0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,52 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
+## [3.8] - 2023-02-01
+### Added
+- `distance` method
+- `__contains__` method
+- `__getitem__` method
+- Goodman-Kruskal's Lambda A benchmark
+- Goodman-Kruskal's Lambda B benchmark
+- Krippendorff's Alpha benchmark
+- Pearson's C benchmark
+- 30 new distance/similarity
+ 1. AMPLE
+ 2. Anderberg's D
+ 3. Andres & Marzo's Delta
+ 4. Baroni-Urbani & Buser I
+ 5. Baroni-Urbani & Buser II
+ 6. Batagelj & Bren
+ 7. Baulieu I
+ 8. Baulieu II
+ 9. Baulieu III
+ 10. Baulieu IV
+ 11. Baulieu V
+ 12. Baulieu VI
+ 13. Baulieu VII
+ 14. Baulieu VIII
+ 15. Baulieu IX
+ 16. Baulieu X
+ 17. Baulieu XI
+ 18. Baulieu XII
+ 19. Baulieu XIII
+ 20. Baulieu XIV
+ 21. Baulieu XV
+ 22. Benini I
+ 23. Benini II
+ 24. Canberra
+ 25. Clement
+ 26. Consonni & Todeschini I
+ 27. Consonni & Todeschini II
+ 28. Consonni & Todeschini III
+ 29. Consonni & Todeschini IV
+ 30. Consonni & Todeschini V
+### Changed
+- `relabel` method sort bug fixed
+- `README.md` modified
+- `Compare` overall benchmarks default weights updated
+- Document modified
+- Test system modified
## [3.7] - 2022-12-15
### Added
- `Curve` class
@@ -606,7 +652,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- TPR
- documents and `README.md`
-[Unreleased]: https://github.com/sepandhaghighi/pycm/compare/v3.7...dev
+[Unreleased]: https://github.com/sepandhaghighi/pycm/compare/v3.8...dev
+[3.8]: https://github.com/sepandhaghighi/pycm/compare/v3.7...v3.8
[3.7]: https://github.com/sepandhaghighi/pycm/compare/v3.6...v3.7
[3.6]: https://github.com/sepandhaghighi/pycm/compare/v3.5...v3.6
[3.5]: https://github.com/sepandhaghighi/pycm/compare/v3.4...v3.5
diff --git a/Document/Distance.ipynb b/Document/Distance.ipynb
new file mode 100644
index 00000000..2cd9f832
--- /dev/null
+++ b/Document/Distance.ipynb
@@ -0,0 +1,1652 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "
Please cite us if you use the software
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Distance/Similarity"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "PyCM's `distance` method provides users with a wide range of string distance/similarity metrics to evaluate a confusion matrix by measuring its distance to a perfect confusion matrix. Distance/Similarity metrics measure the distance between two vectors of numbers. Small distances between two objects indicate similarity. In the PyCM's `distance` method, a distance measure can be chosen from `DistanceType`. The measures' names are chosen based on the namig style suggested in [[1]](#ref1)."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from pycm import ConfusionMatrix, DistanceType"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "cm = ConfusionMatrix(matrix={0: {0: 3, 1: 0, 2: 0}, 1: {0: 0, 1: 1, 2: 2}, 2: {0: 2, 1: 1, 2: 3}})"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$TP \\rightarrow True Positive$$\n",
+ "$$TN \\rightarrow True Negative$$\n",
+ "$$FP \\rightarrow False Positive$$\n",
+ "$$FN \\rightarrow False Negative$$\n",
+ "$$POP \\rightarrow Population$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## AMPLE"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "AMPLE similarity [[2]](#ref2) [[3]](#ref3)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{AMPLE}=|\\frac{TP}{TP+FP}-\\frac{FN}{FN+TN}|$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.6, 1: 0.3, 2: 0.17142857142857143}"
+ ]
+ },
+ "execution_count": 3,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.AMPLE)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Anderberg's D"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Anderberg's D [[4]](#ref4)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{Anderberg} =\n",
+ "\\frac{(max(TP,FP)+max(FN,TN)+max(TP,FN)+max(FP,TN))-\n",
+ "(max(TP+FP,FP+TN)+max(TP+FP,FN+TN))}{2\\times POP}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.16666666666666666, 1: 0.0, 2: 0.041666666666666664}"
+ ]
+ },
+ "execution_count": 4,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.Anderberg)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Andres & Marzo's Delta"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Andres & Marzo's Delta correlation [[5]](#ref5)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$corr_{AndresMarzo_\\Delta} = \\Delta =\n",
+ "\\frac{TP+TN-2 \\times \\sqrt{FP \\times FN}}{POP}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.8333333333333334, 1: 0.5142977396044842, 2: 0.17508504286947035}"
+ ]
+ },
+ "execution_count": 5,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.AndresMarzoDelta)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baroni-Urbani & Buser I"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baroni-Urbani & Buser I similarity [[6]](#ref6)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{BaroniUrbaniBuserI} =\n",
+ "\\frac{\\sqrt{TP\\times TN}+TP}{\\sqrt{TP\\times TN}+TP+FP+FN}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.79128784747792, 1: 0.5606601717798213, 2: 0.5638559245324765}"
+ ]
+ },
+ "execution_count": 6,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaroniUrbaniBuserI)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baroni-Urbani & Buser II"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baroni-Urbani & Buser II correlation [[6]](#ref6)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$corr_{BaroniUrbaniBuserII} =\n",
+ "\\frac{\\sqrt{TP \\times TN}+TP-FP-FN}{\\sqrt{TP \\times TN}+TP+FP+FN}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.58257569495584, 1: 0.12132034355964261, 2: 0.1277118490649528}"
+ ]
+ },
+ "execution_count": 7,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaroniUrbaniBuserII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Batagelj & Bren"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Batagelj & Bren distance [[7]](#ref7)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BatageljBren} =\n",
+ "\\frac{FP \\times FN}{TP \\times TN}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.0, 1: 0.25, 2: 0.5}"
+ ]
+ },
+ "execution_count": 8,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BatageljBren)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu I"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu I distance [[8]](#ref8)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{BaulieuI} =\n",
+ "\\frac{(TP+FP) \\times (TP+FN)-TP^2}{(TP+FP) \\times (TP+FN)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.4, 1: 0.8333333333333334, 2: 0.7}"
+ ]
+ },
+ "execution_count": 9,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuI)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu II"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu II similarity [[8]](#ref8)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{BaulieuII} =\n",
+ "\\frac{TP^2 \\times TN^2}{(TP+FP) \\times (TP+FN) \\times (FP+TN) \\times (FN+TN)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.4666666666666667, 1: 0.11851851851851852, 2: 0.11428571428571428}"
+ ]
+ },
+ "execution_count": 10,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu III"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu III distance [[8]](#ref8)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{BaulieuIII} =\n",
+ "\\frac{POP^2 - 4 \\times (TP \\times TN-FP \\times FN)}{2 \\times POP^2}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.20833333333333334, 1: 0.4166666666666667, 2: 0.4166666666666667}"
+ ]
+ },
+ "execution_count": 11,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuIII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu IV"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu IV distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuIV} = \\frac{FP+FN-(TP+\\frac{1}{2})\\times(TN+\\frac{1}{2})\\times TN \\times k}{POP}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: -41.45702383161246, 1: -22.855395541901885, 2: -13.85431293274332}"
+ ]
+ },
+ "execution_count": 12,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuIV)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "* The default value of k is Euler's number $e$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu V"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu V distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuV} = \\frac{FP+FN+1}{TP+FP+FN+1}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.5, 1: 0.8, 2: 0.6666666666666666}"
+ ]
+ },
+ "execution_count": 13,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuV)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu VI"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu VI distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuVI} = \\frac{FP+FN}{TP+FP+FN+1}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.3333333333333333, 1: 0.6, 2: 0.5555555555555556}"
+ ]
+ },
+ "execution_count": 14,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuVI)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu VII"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu VII distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuVII} = \\frac{FP+FN}{POP + TP \\times (TP-4)^2}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.13333333333333333, 1: 0.14285714285714285, 2: 0.3333333333333333}"
+ ]
+ },
+ "execution_count": 15,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuVII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu VIII"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu VIII distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuVIII} = \\frac{(FP-FN)^2}{POP^2}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.027777777777777776, 1: 0.006944444444444444, 2: 0.006944444444444444}"
+ ]
+ },
+ "execution_count": 16,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuVIII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu IX"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu IX distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuIX} = \\frac{FP+2 \\times FN}{TP+FP+2 \\times FN+TN}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 17,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.16666666666666666, 1: 0.35714285714285715, 2: 0.5333333333333333}"
+ ]
+ },
+ "execution_count": 17,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuIX)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu X"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu X distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuX} = \\frac{FP+FN+max(FP,FN)}{POP+max(FP,FN)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.2857142857142857, 1: 0.35714285714285715, 2: 0.5333333333333333}"
+ ]
+ },
+ "execution_count": 18,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuX)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu XI"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu XI distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuXI} = \\frac{FP+FN}{FP+FN+TN}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 19,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.2222222222222222, 1: 0.2727272727272727, 2: 0.5555555555555556}"
+ ]
+ },
+ "execution_count": 19,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuXI)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu XII"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu XII distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuXII} = \\frac{FP+FN}{TP+FP+FN-1}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 20,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.5, 1: 1.0, 2: 0.7142857142857143}"
+ ]
+ },
+ "execution_count": 20,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuXII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu XIII"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu XIII distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuXIII} = \\frac{FP+FN}{TP+FP+FN+TP \\times (TP-4)^2}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 21,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.25, 1: 0.23076923076923078, 2: 0.45454545454545453}"
+ ]
+ },
+ "execution_count": 21,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuXIII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu XIV"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu XIV distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuXIV} = \\frac{FP+2 \\times FN}{TP+FP+2 \\times FN}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 22,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.4, 1: 0.8333333333333334, 2: 0.7272727272727273}"
+ ]
+ },
+ "execution_count": 22,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuXIV)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Baulieu XV"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Baulieu XV distance [[9]](#ref9)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$dist_{BaulieuXV} = \\frac{FP+FN+max(FP, FN)}{TP+FP+FN+max(FP, FN)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 23,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.5714285714285714, 1: 0.8333333333333334, 2: 0.7272727272727273}"
+ ]
+ },
+ "execution_count": 23,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BaulieuXV)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Benini I"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Benini I correlation [[10]](#ref10)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$corr_{BeniniI} = \\frac{TP \\times TN-FP \\times FN}{(TP+FN)\\times(FN+TN)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 24,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 1.0, 1: 0.2, 2: 0.14285714285714285}"
+ ]
+ },
+ "execution_count": 24,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BeniniI)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Benini II"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Benini II correlation [[10]](#ref10)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$corr_{BeniniII} = \\frac{TP \\times TN-FP \\times FN}{min((TP+FN)\\times(FN+TN), (TP+FP)\\times(FP+TN))}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 25,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 1.0, 1: 0.3333333333333333, 2: 0.2}"
+ ]
+ },
+ "execution_count": 25,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.BeniniII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Canberra"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Canberra distance [[11]](#ref11) [[12]](#ref12)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{Canberra} =\n",
+ "\\frac{FP+FN}{(TP+FP)+(TP+FN)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 26,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.25, 1: 0.6, 2: 0.45454545454545453}"
+ ]
+ },
+ "execution_count": 26,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.Canberra)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Clement"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Clement similarity [[13]](#ref13)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{Clement} =\n",
+ "\\frac{TP}{TP+FP}\\times\\Big(1 - \\frac{TP+FP}{POP}\\Big) +\n",
+ "\\frac{TN}{FN+TN}\\times\\Big(1 - \\frac{FN+TN}{POP}\\Big)$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 27,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.7666666666666666, 1: 0.55, 2: 0.588095238095238}"
+ ]
+ },
+ "execution_count": 27,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.Clement)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Consonni & Todeschini I"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Consonni & Todeschini I similarity [[14]](#ref14)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{ConsonniTodeschiniI} =\n",
+ "\\frac{log(1+TP+TN)}{log(1+POP)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 28,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.9348704159880586, 1: 0.8977117175026231, 2: 0.8107144632819592}"
+ ]
+ },
+ "execution_count": 28,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.ConsonniTodeschiniI)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Consonni & Todeschini II"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Consonni & Todeschini II similarity [[14]](#ref14)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{ConsonniTodeschiniII} =\n",
+ "\\frac{log(1+POP)-log(1+FP+FN)}{log(1+POP)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 29,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.5716826589686053, 1: 0.4595236911453605, 2: 0.3014445045412856}"
+ ]
+ },
+ "execution_count": 29,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.ConsonniTodeschiniII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Consonni & Todeschini III"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Consonni & Todeschini III similarity [[14]](#ref14)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{ConsonniTodeschiniIII} =\n",
+ "\\frac{log(1+TP)}{log(1+POP)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 30,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.5404763088546395, 1: 0.27023815442731974, 2: 0.5404763088546395}"
+ ]
+ },
+ "execution_count": 30,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.ConsonniTodeschiniIII)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Consonni & Todeschini IV"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Consonni & Todeschini IV similarity [[14]](#ref14)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$sim_{ConsonniTodeschiniIV} =\n",
+ "\\frac{log(1+TP)}{log(1+TP+FP+FN)}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 31,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.7737056144690831, 1: 0.43067655807339306, 2: 0.6309297535714574}"
+ ]
+ },
+ "execution_count": 31,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.ConsonniTodeschiniIV)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Consonni & Todeschini V"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Consonni & Todeschini V correlation [[14]](#ref14)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$corr_{ConsonniTodeschiniV} =\n",
+ "\\frac{log(1+TP \\times TN)-log(1+FP \\times FN)}{log(1+\\frac{POP^2}{4})}$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 32,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "{0: 0.8560267854703983, 1: 0.30424737289682985, 2: 0.17143541431350617}"
+ ]
+ },
+ "execution_count": 32,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.distance(metric=DistanceType.ConsonniTodeschiniV)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## References"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "1- C. C. Little, \"Abydos Documentation,\" 2018.
\n",
+ "\n",
+ "2- V. Dallmeier, C. Lindig, and A. Zeller, \"Lightweight defect localization for Java,\" in European conference on object-oriented programming, 2005: Springer, pp. 528-550.
\n",
+ "\n",
+ "3- R. Abreu, P. Zoeteweij, and A. J. Van Gemund, \"An evaluation of similarity coefficients for software fault localization,\" in 2006 12th Pacific Rim International Symposium on Dependable Computing (PRDC'06), 2006: IEEE, pp. 39-46.
\n",
+ "\n",
+ "4- M. R. Anderberg, Cluster analysis for applications: probability and mathematical statistics: a series of monographs and textbooks. Academic press, 2014.
\n",
+ "\n",
+ "5- A. M. Andrés and P. F. Marzo, \"Delta: A new measure of agreement between two raters,\" British journal of mathematical and statistical psychology, vol. 57, no. 1, pp. 1-19, 2004.
\n",
+ "\n",
+ "6- C. Baroni-Urbani and M. W. Buser, \"Similarity of binary data,\" Systematic Zoology, vol. 25, no. 3, pp. 251-259, 1976.
\n",
+ "\n",
+ "7- V. Batagelj and M. Bren, \"Comparing resemblance measures,\" Journal of classification, vol. 12, no. 1, pp. 73-90, 1995.
\n",
+ "\n",
+ "8- F. B. Baulieu, \"A classification of presence/absence based dissimilarity coefficients,\" Journal of Classification, vol. 6, no. 1, pp. 233-246, 1989.
\n",
+ "\n",
+ "9- F. B. Baulieu, \"Two variant axiom systems for presence/absence based dissimilarity coefficients,\" Journal of Classification, vol. 14, no. 1, pp. 0159-0170, 1997.
\n",
+ "\n",
+ "10- R. Benini, Principii di demografia. Barbera, 1901.
\n",
+ "\n",
+ "11- G. N. Lance and W. T. Williams, \"Computer programs for hierarchical polythetic classification (“similarity analyses”),\" The Computer Journal, vol. 9, no. 1, pp. 60-64, 1966.
\n",
+ "\n",
+ "12- G. N. Lance and W. T. Williams, \"Mixed-Data Classificatory Programs I - Agglomerative Systems,\" Australian Computer Journal, vol. 1, no. 1, pp. 15-20, 1967.
\n",
+ "\n",
+ "13- P. W. Clement, \"A formula for computing inter-observer agreement,\" Psychological Reports, vol. 39, no. 1, pp. 257-258, 1976.
\n",
+ "\n",
+ "14- V. Consonni and R. Todeschini, \"New similarity coefficients for binary data,\" Match-Communications in Mathematical and Computer Chemistry, vol. 68, no. 2, p. 581, 2012.
"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.5.2"
+ },
+ "toc": {
+ "base_numbering": 1,
+ "nav_menu": {},
+ "number_sections": false,
+ "sideBar": true,
+ "skip_h1_title": true,
+ "title_cell": "Table of Contents",
+ "title_sidebar": "Distance/Similarity",
+ "toc_cell": false,
+ "toc_position": {},
+ "toc_section_display": true,
+ "toc_window_display": false
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 2
+}
diff --git a/Document/Document.ipynb b/Document/Document.ipynb
index 59f19ddd..633f2a17 100644
--- a/Document/Document.ipynb
+++ b/Document/Document.ipynb
@@ -18,7 +18,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "### Version : 3.7 "
+ "### Version : 3.8 "
]
},
{
@@ -71,6 +71,7 @@
" To Array\n",
" Combine\n",
" Plot\n",
+ " Distance/Similarity\n",
" Parameter Recommender\n",
" Compare\n",
" ROC Curve\n",
@@ -186,6 +187,10 @@
" Cicchetti's Benchmark\n",
" Cramer's Benchmark\n",
" Matthews's Benchmark\n",
+ " Goodman-Kruskal's Lambda A Benchmark\n",
+ " Goodman-Kruskal's Lambda B Benchmark\n",
+ " Krippendorff's Alpha Benchmark\n",
+ " Pearson's C Benchmark\n",
" Overall Accuracy\n",
" Overall Random Accuracy\n",
" Overall Random Accuracy Unbiased\n",
@@ -302,7 +307,7 @@
"metadata": {},
"source": [
"### Source code\n",
- "- Download [Version 3.7](https://github.com/sepandhaghighi/pycm/archive/v3.7.zip) or [Latest Source ](https://github.com/sepandhaghighi/pycm/archive/dev.zip)\n",
+ "- Download [Version 3.8](https://github.com/sepandhaghighi/pycm/archive/v3.8.zip) or [Latest Source](https://github.com/sepandhaghighi/pycm/archive/dev.zip)\n",
"- Run `pip install -r requirements.txt` or `pip3 install -r requirements.txt` (Need root access)\n",
"- Run `python3 setup.py install` or `python setup.py install` (Need root access)"
]
@@ -315,7 +320,7 @@
"\n",
"\n",
"- Check [Python Packaging User Guide](https://packaging.python.org/installing/) \n",
- "- Run `pip install pycm==3.7` or `pip3 install pycm==3.7` (Need root access)"
+ "- Run `pip install pycm==3.8` or `pip3 install pycm==3.8` (Need root access)"
]
},
{
@@ -682,11 +687,15 @@
" 'Reference Entropy': 1.5,\n",
" 'Response Entropy': 1.4833557549816874,\n",
" 'SOA1(Landis & Koch)': 'Fair',\n",
+ " 'SOA10(Pearson C)': 'Strong',\n",
" 'SOA2(Fleiss)': 'Poor',\n",
" 'SOA3(Altman)': 'Fair',\n",
" 'SOA4(Cicchetti)': 'Poor',\n",
" 'SOA5(Cramer)': 'Relatively Strong',\n",
" 'SOA6(Matthews)': 'Weak',\n",
+ " 'SOA7(Lambda A)': 'Very Weak',\n",
+ " 'SOA8(Lambda B)': 'Moderate',\n",
+ " 'SOA9(Krippendorff Alpha)': 'Low',\n",
" 'Scott PI': 0.34426229508196726,\n",
" 'Standard Error': 0.14231876063832777,\n",
" 'TNR Macro': 0.7777777777777777,\n",
@@ -948,7 +957,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
- "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.7-py3.5.egg\\pycm\\pycm_util.py:398: RuntimeWarning: Used classes is not a subset of classes in actual and predict vectors.\n"
+ "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.8-py3.5.egg\\pycm\\pycm_util.py:399: RuntimeWarning: Used classes is not a subset of classes in actual and predict vectors.\n"
]
}
],
@@ -990,6 +999,75 @@
""
]
},
+ {
+ "cell_type": "code",
+ "execution_count": 25,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "True"
+ ]
+ },
+ "execution_count": 25,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "1 in cm"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 26,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "False"
+ ]
+ },
+ "execution_count": 26,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "10 in cm"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 27,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "1"
+ ]
+ },
+ "execution_count": 27,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm[1][1]"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : `__getitem__` and `__contains__` methods added in version 3.8
\n",
+ "
"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
@@ -999,7 +1077,7 @@
},
{
"cell_type": "code",
- "execution_count": 25,
+ "execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
@@ -1008,7 +1086,7 @@
},
{
"cell_type": "code",
- "execution_count": 26,
+ "execution_count": 29,
"metadata": {},
"outputs": [
{
@@ -1017,7 +1095,7 @@
"pycm.ConfusionMatrix(classes: [0, 1, 2])"
]
},
- "execution_count": 26,
+ "execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
@@ -1028,7 +1106,7 @@
},
{
"cell_type": "code",
- "execution_count": 27,
+ "execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
@@ -1037,7 +1115,7 @@
},
{
"cell_type": "code",
- "execution_count": 28,
+ "execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
@@ -1046,7 +1124,7 @@
},
{
"cell_type": "code",
- "execution_count": 29,
+ "execution_count": 32,
"metadata": {},
"outputs": [
{
@@ -1055,7 +1133,7 @@
"[0, 1, 2]"
]
},
- "execution_count": 29,
+ "execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
@@ -1066,7 +1144,7 @@
},
{
"cell_type": "code",
- "execution_count": 30,
+ "execution_count": 33,
"metadata": {},
"outputs": [
{
@@ -1149,7 +1227,7 @@
" 'sInd': {0: 0.8428651597363228, 1: 0.5220930407198541, 2: 0.5750817072006014}}"
]
},
- "execution_count": 30,
+ "execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
@@ -1160,7 +1238,7 @@
},
{
"cell_type": "code",
- "execution_count": 31,
+ "execution_count": 34,
"metadata": {},
"outputs": [
{
@@ -1217,11 +1295,15 @@
" 'Reference Entropy': 1.5,\n",
" 'Response Entropy': 1.4833557549816874,\n",
" 'SOA1(Landis & Koch)': 'Fair',\n",
+ " 'SOA10(Pearson C)': 'Strong',\n",
" 'SOA2(Fleiss)': 'Poor',\n",
" 'SOA3(Altman)': 'Fair',\n",
" 'SOA4(Cicchetti)': 'Poor',\n",
" 'SOA5(Cramer)': 'Relatively Strong',\n",
" 'SOA6(Matthews)': 'Weak',\n",
+ " 'SOA7(Lambda A)': 'Very Weak',\n",
+ " 'SOA8(Lambda B)': 'Moderate',\n",
+ " 'SOA9(Krippendorff Alpha)': 'Low',\n",
" 'Scott PI': 0.34426229508196726,\n",
" 'Standard Error': 0.14231876063832777,\n",
" 'TNR Macro': 0.7777777777777777,\n",
@@ -1231,7 +1313,7 @@
" 'Zero-one Loss': 5}"
]
},
- "execution_count": 31,
+ "execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
@@ -1253,7 +1335,7 @@
},
{
"cell_type": "code",
- "execution_count": 32,
+ "execution_count": 35,
"metadata": {},
"outputs": [],
"source": [
@@ -1262,7 +1344,7 @@
},
{
"cell_type": "code",
- "execution_count": 33,
+ "execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
@@ -1271,7 +1353,7 @@
},
{
"cell_type": "code",
- "execution_count": 34,
+ "execution_count": 37,
"metadata": {},
"outputs": [
{
@@ -1280,7 +1362,7 @@
"pycm.ConfusionMatrix(classes: [0, 1, 2])"
]
},
- "execution_count": 34,
+ "execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
@@ -1291,7 +1373,7 @@
},
{
"cell_type": "code",
- "execution_count": 35,
+ "execution_count": 38,
"metadata": {},
"outputs": [
{
@@ -1300,7 +1382,7 @@
"[0, 1, 2]"
]
},
- "execution_count": 35,
+ "execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
@@ -1320,7 +1402,7 @@
},
{
"cell_type": "code",
- "execution_count": 36,
+ "execution_count": 39,
"metadata": {},
"outputs": [
{
@@ -1329,7 +1411,7 @@
"{0: {0: 1, 1: 2, 2: 3}, 1: {0: 4, 1: 6, 2: 1}, 2: {0: 1, 1: 2, 2: 3}}"
]
},
- "execution_count": 36,
+ "execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
@@ -1340,7 +1422,7 @@
},
{
"cell_type": "code",
- "execution_count": 37,
+ "execution_count": 40,
"metadata": {},
"outputs": [
{
@@ -1349,7 +1431,7 @@
"{0: {0: 1, 1: 2, 2: 3}, 1: {0: 4, 1: 6, 2: 1}, 2: {0: 1, 1: 2, 2: 3}}"
]
},
- "execution_count": 37,
+ "execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
@@ -1360,7 +1442,7 @@
},
{
"cell_type": "code",
- "execution_count": 38,
+ "execution_count": 41,
"metadata": {},
"outputs": [
{
@@ -1371,7 +1453,7 @@
" 2: {0: 0.16667, 1: 0.33333, 2: 0.5}}"
]
},
- "execution_count": 38,
+ "execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
@@ -1382,7 +1464,7 @@
},
{
"cell_type": "code",
- "execution_count": 39,
+ "execution_count": 42,
"metadata": {},
"outputs": [
{
@@ -1393,7 +1475,7 @@
" 2: {0: 0.16667, 1: 0.33333, 2: 0.5}}"
]
},
- "execution_count": 39,
+ "execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
@@ -1404,7 +1486,7 @@
},
{
"cell_type": "code",
- "execution_count": 40,
+ "execution_count": 43,
"metadata": {},
"outputs": [
{
@@ -1429,7 +1511,7 @@
},
{
"cell_type": "code",
- "execution_count": 41,
+ "execution_count": 44,
"metadata": {},
"outputs": [],
"source": [
@@ -1438,7 +1520,7 @@
},
{
"cell_type": "code",
- "execution_count": 42,
+ "execution_count": 45,
"metadata": {},
"outputs": [],
"source": [
@@ -1447,7 +1529,7 @@
},
{
"cell_type": "code",
- "execution_count": 43,
+ "execution_count": 46,
"metadata": {},
"outputs": [],
"source": [
@@ -1456,7 +1538,7 @@
},
{
"cell_type": "code",
- "execution_count": 44,
+ "execution_count": 47,
"metadata": {},
"outputs": [
{
@@ -1465,7 +1547,7 @@
"pycm.ConfusionMatrix(classes: [0, 1, 2])"
]
},
- "execution_count": 44,
+ "execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
@@ -1476,7 +1558,7 @@
},
{
"cell_type": "code",
- "execution_count": 45,
+ "execution_count": 48,
"metadata": {},
"outputs": [],
"source": [
@@ -1485,7 +1567,7 @@
},
{
"cell_type": "code",
- "execution_count": 46,
+ "execution_count": 49,
"metadata": {},
"outputs": [
{
@@ -1494,7 +1576,7 @@
"pycm.ConfusionMatrix(classes: ['L1', 'L2', 'L3'])"
]
},
- "execution_count": 46,
+ "execution_count": 49,
"metadata": {},
"output_type": "execute_result"
}
@@ -1519,16 +1601,16 @@
},
{
"cell_type": "code",
- "execution_count": 47,
+ "execution_count": 50,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "L2 {'L2': 6, 'L1': 4, 'L3': 1}\n",
- "L1 {'L2': 2, 'L1': 1, 'L3': 3}\n",
- "L3 {'L2': 2, 'L1': 1, 'L3': 3}\n"
+ "L1 {'L1': 1, 'L3': 3, 'L2': 2}\n",
+ "L3 {'L1': 1, 'L3': 3, 'L2': 2}\n",
+ "L2 {'L1': 4, 'L3': 1, 'L2': 6}\n"
]
}
],
@@ -1539,16 +1621,16 @@
},
{
"cell_type": "code",
- "execution_count": 48,
+ "execution_count": 51,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "('L2', {'L1': 4, 'L2': 6, 'L3': 1})"
+ "('L1', {'L1': 1, 'L2': 2, 'L3': 3})"
]
},
- "execution_count": 48,
+ "execution_count": 51,
"metadata": {},
"output_type": "execute_result"
}
@@ -1560,7 +1642,7 @@
},
{
"cell_type": "code",
- "execution_count": 49,
+ "execution_count": 52,
"metadata": {},
"outputs": [
{
@@ -1571,7 +1653,7 @@
" 'L3': {'L1': 1, 'L2': 2, 'L3': 3}}"
]
},
- "execution_count": 49,
+ "execution_count": 52,
"metadata": {},
"output_type": "execute_result"
}
@@ -1583,18 +1665,18 @@
},
{
"cell_type": "code",
- "execution_count": 50,
+ "execution_count": 53,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "[('L2', {'L1': 4, 'L2': 6, 'L3': 1}),\n",
- " ('L1', {'L1': 1, 'L2': 2, 'L3': 3}),\n",
- " ('L3', {'L1': 1, 'L2': 2, 'L3': 3})]"
+ "[('L1', {'L1': 1, 'L2': 2, 'L3': 3}),\n",
+ " ('L3', {'L1': 1, 'L2': 2, 'L3': 3}),\n",
+ " ('L2', {'L1': 4, 'L2': 6, 'L3': 1})]"
]
},
- "execution_count": 50,
+ "execution_count": 53,
"metadata": {},
"output_type": "execute_result"
}
@@ -1706,7 +1788,7 @@
},
{
"cell_type": "code",
- "execution_count": 51,
+ "execution_count": 54,
"metadata": {},
"outputs": [],
"source": [
@@ -1715,7 +1797,7 @@
},
{
"cell_type": "code",
- "execution_count": 52,
+ "execution_count": 55,
"metadata": {},
"outputs": [
{
@@ -1764,7 +1846,7 @@
},
{
"cell_type": "code",
- "execution_count": 53,
+ "execution_count": 56,
"metadata": {},
"outputs": [],
"source": [
@@ -1773,7 +1855,7 @@
},
{
"cell_type": "code",
- "execution_count": 54,
+ "execution_count": 57,
"metadata": {},
"outputs": [
{
@@ -1782,7 +1864,7 @@
"pycm.ConfusionMatrix(classes: ['L1', 'L2', 'L3'])"
]
},
- "execution_count": 54,
+ "execution_count": 57,
"metadata": {},
"output_type": "execute_result"
}
@@ -1830,7 +1912,7 @@
},
{
"cell_type": "code",
- "execution_count": 55,
+ "execution_count": 58,
"metadata": {},
"outputs": [
{
@@ -1841,7 +1923,7 @@
" 2: {'FN': [0, 3, 7], 'FP': [5, 10], 'TN': [1, 4, 6, 9], 'TP': [2, 8, 11]}}"
]
},
- "execution_count": 55,
+ "execution_count": 58,
"metadata": {},
"output_type": "execute_result"
}
@@ -1885,7 +1967,7 @@
},
{
"cell_type": "code",
- "execution_count": 56,
+ "execution_count": 59,
"metadata": {},
"outputs": [
{
@@ -1896,7 +1978,7 @@
" [0, 2, 3]])"
]
},
- "execution_count": 56,
+ "execution_count": 59,
"metadata": {},
"output_type": "execute_result"
}
@@ -1907,7 +1989,7 @@
},
{
"cell_type": "code",
- "execution_count": 57,
+ "execution_count": 60,
"metadata": {},
"outputs": [
{
@@ -1918,7 +2000,7 @@
" [0. , 0.4, 0.6]])"
]
},
- "execution_count": 57,
+ "execution_count": 60,
"metadata": {},
"output_type": "execute_result"
}
@@ -1929,7 +2011,7 @@
},
{
"cell_type": "code",
- "execution_count": 58,
+ "execution_count": 61,
"metadata": {},
"outputs": [
{
@@ -1939,7 +2021,7 @@
" [0. , 1. ]])"
]
},
- "execution_count": 58,
+ "execution_count": 61,
"metadata": {},
"output_type": "execute_result"
}
@@ -2003,7 +2085,7 @@
},
{
"cell_type": "code",
- "execution_count": 59,
+ "execution_count": 62,
"metadata": {},
"outputs": [
{
@@ -2080,7 +2162,7 @@
},
{
"cell_type": "code",
- "execution_count": 60,
+ "execution_count": 63,
"metadata": {},
"outputs": [],
"source": [
@@ -2092,16 +2174,16 @@
},
{
"cell_type": "code",
- "execution_count": 61,
+ "execution_count": 64,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 61,
+ "execution_count": 64,
"metadata": {},
"output_type": "execute_result"
},
@@ -2124,16 +2206,16 @@
},
{
"cell_type": "code",
- "execution_count": 62,
+ "execution_count": 65,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 62,
+ "execution_count": 65,
"metadata": {},
"output_type": "execute_result"
},
@@ -2156,16 +2238,16 @@
},
{
"cell_type": "code",
- "execution_count": 63,
+ "execution_count": 66,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 63,
+ "execution_count": 66,
"metadata": {},
"output_type": "execute_result"
},
@@ -2188,16 +2270,16 @@
},
{
"cell_type": "code",
- "execution_count": 64,
+ "execution_count": 67,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 64,
+ "execution_count": 67,
"metadata": {},
"output_type": "execute_result"
},
@@ -2220,16 +2302,16 @@
},
{
"cell_type": "code",
- "execution_count": 65,
+ "execution_count": 68,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 65,
+ "execution_count": 68,
"metadata": {},
"output_type": "execute_result"
},
@@ -2293,6 +2375,30 @@
""
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### Distance/Similarity"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "- [Jupyter Notebook](https://nbviewer.jupyter.org/github/sepandhaghighi/pycm/blob/master/Document/Distance.ipynb)\n",
+ "- [HTML](http://www.pycm.io/doc/Distance.html)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
@@ -2340,7 +2446,7 @@
},
{
"cell_type": "code",
- "execution_count": 66,
+ "execution_count": 69,
"metadata": {},
"outputs": [
{
@@ -2349,7 +2455,7 @@
"False"
]
},
- "execution_count": 66,
+ "execution_count": 69,
"metadata": {},
"output_type": "execute_result"
}
@@ -2360,7 +2466,7 @@
},
{
"cell_type": "code",
- "execution_count": 67,
+ "execution_count": 70,
"metadata": {},
"outputs": [
{
@@ -2369,7 +2475,7 @@
"False"
]
},
- "execution_count": 67,
+ "execution_count": 70,
"metadata": {},
"output_type": "execute_result"
}
@@ -2380,7 +2486,7 @@
},
{
"cell_type": "code",
- "execution_count": 68,
+ "execution_count": 71,
"metadata": {},
"outputs": [
{
@@ -2402,7 +2508,7 @@
" 'Zero-one Loss']"
]
},
- "execution_count": 68,
+ "execution_count": 71,
"metadata": {},
"output_type": "execute_result"
}
@@ -2420,7 +2526,7 @@
},
{
"cell_type": "code",
- "execution_count": 69,
+ "execution_count": 72,
"metadata": {},
"outputs": [
{
@@ -2429,7 +2535,7 @@
"True"
]
},
- "execution_count": 69,
+ "execution_count": 72,
"metadata": {},
"output_type": "execute_result"
}
@@ -2441,7 +2547,7 @@
},
{
"cell_type": "code",
- "execution_count": 70,
+ "execution_count": 73,
"metadata": {},
"outputs": [
{
@@ -2450,7 +2556,7 @@
"False"
]
},
- "execution_count": 70,
+ "execution_count": 73,
"metadata": {},
"output_type": "execute_result"
}
@@ -2500,7 +2606,7 @@
"source": [
"In `version 2.0`, a method for comparing several confusion matrices is introduced. This option is a combination of several overall and class-based benchmarks. Each of the benchmarks evaluates the performance of the classification algorithm from good to poor and give them a numeric score. The score of good and poor performances are 1 and 0, respectively.\n",
"\n",
- "After that, two scores are calculated for each confusion matrices, overall and class-based. The overall score is the average of the score of six overall benchmarks which are Landis & Koch, Fleiss, Altman, Cicchetti, Cramer, and Matthews. In the same manner, the class-based score is the average of the score of six class-based benchmarks which are Positive Likelihood Ratio Interpretation, Negative Likelihood Ratio Interpretation, Discriminant Power Interpretation, AUC value Interpretation, Matthews Correlation Coefficient Interpretation and Yule's Q Interpretation. It should be noticed that if one of the benchmarks returns none for one of the classes, that benchmarks will be eliminated in total averaging. If the user sets weights for the classes, the averaging over the value of class-based benchmark scores will transform to a weighted average.\n",
+ "After that, two scores are calculated for each confusion matrices, overall and class-based. The overall score is the average of the score of seven overall benchmarks which are Landis & Koch, Cramer, Matthews, Goodman-Kruskal's Lambda A, Goodman-Kruskal's Lambda B, Krippendorff's Alpha, and Pearson's C. In the same manner, the class-based score is the average of the score of six class-based benchmarks which are Positive Likelihood Ratio Interpretation, Negative Likelihood Ratio Interpretation, Discriminant Power Interpretation, AUC value Interpretation, Matthews Correlation Coefficient Interpretation and Yule's Q Interpretation. It should be noticed that if one of the benchmarks returns none for one of the classes, that benchmarks will be eliminated in total averaging. If the user sets weights for the classes, the averaging over the value of class-based benchmark scores will transform to a weighted average.\n",
"\n",
"If the user sets the value of `by_class` boolean input `True`, the best confusion matrix is the one with the maximum class-based score. Otherwise, if a confusion matrix obtains the maximum of both overall and class-based scores, that will be reported as the best confusion matrix, but in any other case, the compared object doesn’t select the best confusion matrix."
]
@@ -2559,7 +2665,7 @@
},
{
"cell_type": "code",
- "execution_count": 71,
+ "execution_count": 74,
"metadata": {},
"outputs": [],
"source": [
@@ -2569,7 +2675,7 @@
},
{
"cell_type": "code",
- "execution_count": 72,
+ "execution_count": 75,
"metadata": {},
"outputs": [],
"source": [
@@ -2578,7 +2684,7 @@
},
{
"cell_type": "code",
- "execution_count": 73,
+ "execution_count": 76,
"metadata": {},
"outputs": [
{
@@ -2588,8 +2694,8 @@
"Best : cm2\n",
"\n",
"Rank Name Class-Score Overall-Score\n",
- "1 cm2 0.50278 0.425\n",
- "2 cm3 0.33611 0.33056\n",
+ "1 cm2 0.50278 0.58095\n",
+ "2 cm3 0.33611 0.52857\n",
"\n"
]
}
@@ -2600,17 +2706,17 @@
},
{
"cell_type": "code",
- "execution_count": 74,
+ "execution_count": 77,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "{'cm2': {'class': 0.50278, 'overall': 0.425},\n",
- " 'cm3': {'class': 0.33611, 'overall': 0.33056}}"
+ "{'cm2': {'class': 0.50278, 'overall': 0.58095},\n",
+ " 'cm3': {'class': 0.33611, 'overall': 0.52857}}"
]
},
- "execution_count": 74,
+ "execution_count": 77,
"metadata": {},
"output_type": "execute_result"
}
@@ -2621,7 +2727,7 @@
},
{
"cell_type": "code",
- "execution_count": 75,
+ "execution_count": 78,
"metadata": {},
"outputs": [
{
@@ -2630,7 +2736,7 @@
"['cm2', 'cm3']"
]
},
- "execution_count": 75,
+ "execution_count": 78,
"metadata": {},
"output_type": "execute_result"
}
@@ -2641,7 +2747,7 @@
},
{
"cell_type": "code",
- "execution_count": 76,
+ "execution_count": 79,
"metadata": {},
"outputs": [
{
@@ -2650,7 +2756,7 @@
"pycm.ConfusionMatrix(classes: [0, 1, 2])"
]
},
- "execution_count": 76,
+ "execution_count": 79,
"metadata": {},
"output_type": "execute_result"
}
@@ -2661,7 +2767,7 @@
},
{
"cell_type": "code",
- "execution_count": 77,
+ "execution_count": 80,
"metadata": {},
"outputs": [
{
@@ -2670,7 +2776,7 @@
"'cm2'"
]
},
- "execution_count": 77,
+ "execution_count": 80,
"metadata": {},
"output_type": "execute_result"
}
@@ -2681,7 +2787,7 @@
},
{
"cell_type": "code",
- "execution_count": 78,
+ "execution_count": 81,
"metadata": {},
"outputs": [],
"source": [
@@ -2690,7 +2796,7 @@
},
{
"cell_type": "code",
- "execution_count": 79,
+ "execution_count": 82,
"metadata": {},
"outputs": [
{
@@ -2700,8 +2806,8 @@
"Best : cm3\n",
"\n",
"Rank Name Class-Score Overall-Score\n",
- "1 cm3 0.45357 0.33056\n",
- "2 cm2 0.34881 0.425\n",
+ "1 cm3 0.45357 0.52857\n",
+ "2 cm2 0.34881 0.58095\n",
"\n"
]
}
@@ -2712,7 +2818,7 @@
},
{
"cell_type": "code",
- "execution_count": 80,
+ "execution_count": 83,
"metadata": {},
"outputs": [],
"source": [
@@ -2721,7 +2827,7 @@
},
{
"cell_type": "code",
- "execution_count": 81,
+ "execution_count": 84,
"metadata": {},
"outputs": [
{
@@ -2731,8 +2837,8 @@
"Best : cm2\n",
"\n",
"Rank Name Class-Score Overall-Score\n",
- "1 cm2 0.46667 0.425\n",
- "2 cm3 0.33333 0.33056\n",
+ "1 cm2 0.46667 0.58095\n",
+ "2 cm3 0.33333 0.52857\n",
"\n"
]
}
@@ -2743,16 +2849,16 @@
},
{
"cell_type": "code",
- "execution_count": 82,
+ "execution_count": 85,
"metadata": {},
"outputs": [],
"source": [
- "cp4 = Compare({\"cm2\":cm2,\"cm3\":cm3},overall_benchmark_weight={\"SOA1\":1,\"SOA2\":0,\"SOA3\":0,\"SOA4\":0,\"SOA5\":0,\"SOA6\":1})"
+ "cp4 = Compare({\"cm2\":cm2,\"cm3\":cm3},overall_benchmark_weight={\"SOA1\":1,\"SOA2\":0,\"SOA3\":0,\"SOA4\":0,\"SOA5\":0,\"SOA6\":1,\"SOA7\":0,\"SOA8\":0,\"SOA9\":0,\"SOA10\":0})"
]
},
{
"cell_type": "code",
- "execution_count": 83,
+ "execution_count": 86,
"metadata": {},
"outputs": [
{
@@ -2781,7 +2887,7 @@
},
{
"cell_type": "code",
- "execution_count": 84,
+ "execution_count": 87,
"metadata": {},
"outputs": [
{
@@ -2789,7 +2895,7 @@
"output_type": "stream",
"text": [
"['AUCI', 'DPI', 'MCCI', 'NLRI', 'PLRI', 'QI']\n",
- "['SOA1', 'SOA2', 'SOA3', 'SOA4', 'SOA5', 'SOA6']\n"
+ "['SOA1', 'SOA10', 'SOA2', 'SOA3', 'SOA4', 'SOA5', 'SOA6', 'SOA7', 'SOA8', 'SOA9']\n"
]
}
],
@@ -2808,6 +2914,15 @@
""
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : From version 3.8, Goodman-Kruskal's Lambda A, Goodman-Kruskal's Lambda B, Krippendorff's Alpha, and Pearson's C benchmarks are considered in the overall score and default weights of the overall benchmarks are modified accordingly.
\n",
+ "
"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
@@ -2825,7 +2940,7 @@
},
{
"cell_type": "code",
- "execution_count": 85,
+ "execution_count": 88,
"metadata": {},
"outputs": [
{
@@ -2834,7 +2949,7 @@
"0.75"
]
},
- "execution_count": 85,
+ "execution_count": 88,
"metadata": {},
"output_type": "execute_result"
}
@@ -2850,16 +2965,16 @@
},
{
"cell_type": "code",
- "execution_count": 86,
+ "execution_count": 89,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 86,
+ "execution_count": 89,
"metadata": {},
"output_type": "execute_result"
},
@@ -2906,14 +3021,14 @@
},
{
"cell_type": "code",
- "execution_count": 87,
+ "execution_count": 90,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.7-py3.5.egg\\pycm\\pycm_curve.py:377: RuntimeWarning: The curve axes contain non-numerical value(s).\n"
+ "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.8-py3.5.egg\\pycm\\pycm_curve.py:379: RuntimeWarning: The curve axes contain non-numerical value(s).\n"
]
},
{
@@ -2922,7 +3037,7 @@
"0.29166666666666663"
]
},
- "execution_count": 87,
+ "execution_count": 90,
"metadata": {},
"output_type": "execute_result"
}
@@ -2938,16 +3053,16 @@
},
{
"cell_type": "code",
- "execution_count": 88,
+ "execution_count": 91,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 88,
+ "execution_count": 91,
"metadata": {},
"output_type": "execute_result"
},
@@ -3022,7 +3137,7 @@
},
{
"cell_type": "code",
- "execution_count": 89,
+ "execution_count": 92,
"metadata": {},
"outputs": [
{
@@ -3143,22 +3258,26 @@
"108-SOA4(Cicchetti)\n",
"109-SOA5(Cramer)\n",
"110-SOA6(Matthews)\n",
- "111-Scott PI\n",
- "112-Standard Error\n",
- "113-TN\n",
- "114-TNR\n",
- "115-TNR Macro\n",
- "116-TNR Micro\n",
- "117-TON\n",
- "118-TOP\n",
- "119-TP\n",
- "120-TPR\n",
- "121-TPR Macro\n",
- "122-TPR Micro\n",
- "123-Y\n",
- "124-Zero-one Loss\n",
- "125-dInd\n",
- "126-sInd\n"
+ "111-SOA7(Lambda A)\n",
+ "112-SOA8(Lambda B)\n",
+ "113-SOA9(Krippendorff Alpha)\n",
+ "114-SOA10(Pearson C)\n",
+ "115-Scott PI\n",
+ "116-Standard Error\n",
+ "117-TN\n",
+ "118-TNR\n",
+ "119-TNR Macro\n",
+ "120-TNR Micro\n",
+ "121-TON\n",
+ "122-TOP\n",
+ "123-TP\n",
+ "124-TPR\n",
+ "125-TPR Macro\n",
+ "126-TPR Micro\n",
+ "127-Y\n",
+ "128-Zero-one Loss\n",
+ "129-dInd\n",
+ "130-sInd\n"
]
}
],
@@ -3286,7 +3405,7 @@
"2. `probs` : python `list` or numpy `array`\n",
"3. `classes` : python `list`\n",
"4. `thresholds`: python `list` or numpy `array` \n",
- "5. `sample_weight`: python `list`"
+ "5. `sample_weight`: python `list` or numpy `array`"
]
},
{
@@ -3311,7 +3430,7 @@
"2. `probs` : python `list` or numpy `array`\n",
"3. `classes` : python `list`\n",
"4. `thresholds`: python `list` or numpy `array` \n",
- "5. `sample_weight`: python `list`"
+ "5. `sample_weight`: python `list` or numpy `array`"
]
},
{
@@ -3345,7 +3464,7 @@
},
{
"cell_type": "code",
- "execution_count": 90,
+ "execution_count": 93,
"metadata": {},
"outputs": [
{
@@ -3354,7 +3473,7 @@
"{'L1': 3, 'L2': 1, 'L3': 3}"
]
},
- "execution_count": 90,
+ "execution_count": 93,
"metadata": {},
"output_type": "execute_result"
}
@@ -3380,7 +3499,7 @@
},
{
"cell_type": "code",
- "execution_count": 91,
+ "execution_count": 94,
"metadata": {},
"outputs": [
{
@@ -3389,7 +3508,7 @@
"{'L1': 7, 'L2': 8, 'L3': 4}"
]
},
- "execution_count": 91,
+ "execution_count": 94,
"metadata": {},
"output_type": "execute_result"
}
@@ -3415,7 +3534,7 @@
},
{
"cell_type": "code",
- "execution_count": 92,
+ "execution_count": 95,
"metadata": {},
"outputs": [
{
@@ -3424,7 +3543,7 @@
"{'L1': 0, 'L2': 2, 'L3': 3}"
]
},
- "execution_count": 92,
+ "execution_count": 95,
"metadata": {},
"output_type": "execute_result"
}
@@ -3450,7 +3569,7 @@
},
{
"cell_type": "code",
- "execution_count": 93,
+ "execution_count": 96,
"metadata": {},
"outputs": [
{
@@ -3459,7 +3578,7 @@
"{'L1': 2, 'L2': 1, 'L3': 2}"
]
},
- "execution_count": 93,
+ "execution_count": 96,
"metadata": {},
"output_type": "execute_result"
}
@@ -3492,7 +3611,7 @@
},
{
"cell_type": "code",
- "execution_count": 94,
+ "execution_count": 97,
"metadata": {},
"outputs": [
{
@@ -3501,7 +3620,7 @@
"{'L1': 5, 'L2': 2, 'L3': 5}"
]
},
- "execution_count": 94,
+ "execution_count": 97,
"metadata": {},
"output_type": "execute_result"
}
@@ -3533,7 +3652,7 @@
},
{
"cell_type": "code",
- "execution_count": 95,
+ "execution_count": 98,
"metadata": {},
"outputs": [
{
@@ -3542,7 +3661,7 @@
"{'L1': 7, 'L2': 10, 'L3': 7}"
]
},
- "execution_count": 95,
+ "execution_count": 98,
"metadata": {},
"output_type": "execute_result"
}
@@ -3574,7 +3693,7 @@
},
{
"cell_type": "code",
- "execution_count": 96,
+ "execution_count": 99,
"metadata": {},
"outputs": [
{
@@ -3583,7 +3702,7 @@
"{'L1': 3, 'L2': 3, 'L3': 6}"
]
},
- "execution_count": 96,
+ "execution_count": 99,
"metadata": {},
"output_type": "execute_result"
}
@@ -3615,7 +3734,7 @@
},
{
"cell_type": "code",
- "execution_count": 97,
+ "execution_count": 100,
"metadata": {},
"outputs": [
{
@@ -3624,7 +3743,7 @@
"{'L1': 9, 'L2': 9, 'L3': 6}"
]
},
- "execution_count": 97,
+ "execution_count": 100,
"metadata": {},
"output_type": "execute_result"
}
@@ -3656,7 +3775,7 @@
},
{
"cell_type": "code",
- "execution_count": 98,
+ "execution_count": 101,
"metadata": {},
"outputs": [
{
@@ -3665,7 +3784,7 @@
"{'L1': 12, 'L2': 12, 'L3': 12}"
]
},
- "execution_count": 98,
+ "execution_count": 101,
"metadata": {},
"output_type": "execute_result"
}
@@ -3713,7 +3832,7 @@
},
{
"cell_type": "code",
- "execution_count": 99,
+ "execution_count": 102,
"metadata": {},
"outputs": [
{
@@ -3722,7 +3841,7 @@
"{'L1': 0.6, 'L2': 0.5, 'L3': 0.6}"
]
},
- "execution_count": 99,
+ "execution_count": 102,
"metadata": {},
"output_type": "execute_result"
}
@@ -3756,7 +3875,7 @@
},
{
"cell_type": "code",
- "execution_count": 100,
+ "execution_count": 103,
"metadata": {},
"outputs": [
{
@@ -3765,7 +3884,7 @@
"{'L1': 1.0, 'L2': 0.8, 'L3': 0.5714285714285714}"
]
},
- "execution_count": 100,
+ "execution_count": 103,
"metadata": {},
"output_type": "execute_result"
}
@@ -3800,7 +3919,7 @@
},
{
"cell_type": "code",
- "execution_count": 101,
+ "execution_count": 104,
"metadata": {},
"outputs": [
{
@@ -3809,7 +3928,7 @@
"{'L1': 1.0, 'L2': 0.3333333333333333, 'L3': 0.5}"
]
},
- "execution_count": 101,
+ "execution_count": 104,
"metadata": {},
"output_type": "execute_result"
}
@@ -3844,7 +3963,7 @@
},
{
"cell_type": "code",
- "execution_count": 102,
+ "execution_count": 105,
"metadata": {},
"outputs": [
{
@@ -3853,7 +3972,7 @@
"{'L1': 0.7777777777777778, 'L2': 0.8888888888888888, 'L3': 0.6666666666666666}"
]
},
- "execution_count": 102,
+ "execution_count": 105,
"metadata": {},
"output_type": "execute_result"
}
@@ -3887,7 +4006,7 @@
},
{
"cell_type": "code",
- "execution_count": 103,
+ "execution_count": 106,
"metadata": {},
"outputs": [
{
@@ -3896,7 +4015,7 @@
"{'L1': 0.4, 'L2': 0.5, 'L3': 0.4}"
]
},
- "execution_count": 103,
+ "execution_count": 106,
"metadata": {},
"output_type": "execute_result"
}
@@ -3932,7 +4051,7 @@
},
{
"cell_type": "code",
- "execution_count": 104,
+ "execution_count": 107,
"metadata": {},
"outputs": [
{
@@ -3941,7 +4060,7 @@
"{'L1': 0.0, 'L2': 0.19999999999999996, 'L3': 0.4285714285714286}"
]
},
- "execution_count": 104,
+ "execution_count": 107,
"metadata": {},
"output_type": "execute_result"
}
@@ -3975,7 +4094,7 @@
},
{
"cell_type": "code",
- "execution_count": 105,
+ "execution_count": 108,
"metadata": {},
"outputs": [
{
@@ -3984,7 +4103,7 @@
"{'L1': 0.0, 'L2': 0.6666666666666667, 'L3': 0.5}"
]
},
- "execution_count": 105,
+ "execution_count": 108,
"metadata": {},
"output_type": "execute_result"
}
@@ -4018,7 +4137,7 @@
},
{
"cell_type": "code",
- "execution_count": 106,
+ "execution_count": 109,
"metadata": {},
"outputs": [
{
@@ -4029,7 +4148,7 @@
" 'L3': 0.33333333333333337}"
]
},
- "execution_count": 106,
+ "execution_count": 109,
"metadata": {},
"output_type": "execute_result"
}
@@ -4063,7 +4182,7 @@
},
{
"cell_type": "code",
- "execution_count": 107,
+ "execution_count": 110,
"metadata": {},
"outputs": [
{
@@ -4072,7 +4191,7 @@
"{'L1': 0.8333333333333334, 'L2': 0.75, 'L3': 0.5833333333333334}"
]
},
- "execution_count": 107,
+ "execution_count": 110,
"metadata": {},
"output_type": "execute_result"
}
@@ -4104,7 +4223,7 @@
},
{
"cell_type": "code",
- "execution_count": 108,
+ "execution_count": 111,
"metadata": {},
"outputs": [
{
@@ -4113,7 +4232,7 @@
"{'L1': 0.16666666666666663, 'L2': 0.25, 'L3': 0.41666666666666663}"
]
},
- "execution_count": 108,
+ "execution_count": 111,
"metadata": {},
"output_type": "execute_result"
}
@@ -4157,7 +4276,7 @@
},
{
"cell_type": "code",
- "execution_count": 109,
+ "execution_count": 112,
"metadata": {},
"outputs": [
{
@@ -4166,7 +4285,7 @@
"{'L1': 0.75, 'L2': 0.4, 'L3': 0.5454545454545454}"
]
},
- "execution_count": 109,
+ "execution_count": 112,
"metadata": {},
"output_type": "execute_result"
}
@@ -4177,7 +4296,7 @@
},
{
"cell_type": "code",
- "execution_count": 110,
+ "execution_count": 113,
"metadata": {},
"outputs": [
{
@@ -4186,7 +4305,7 @@
"{'L1': 0.8823529411764706, 'L2': 0.35714285714285715, 'L3': 0.5172413793103449}"
]
},
- "execution_count": 110,
+ "execution_count": 113,
"metadata": {},
"output_type": "execute_result"
}
@@ -4197,7 +4316,7 @@
},
{
"cell_type": "code",
- "execution_count": 111,
+ "execution_count": 114,
"metadata": {},
"outputs": [
{
@@ -4206,7 +4325,7 @@
"{'L1': 0.6521739130434783, 'L2': 0.45454545454545453, 'L3': 0.5769230769230769}"
]
},
- "execution_count": 111,
+ "execution_count": 114,
"metadata": {},
"output_type": "execute_result"
}
@@ -4217,7 +4336,7 @@
},
{
"cell_type": "code",
- "execution_count": 112,
+ "execution_count": 115,
"metadata": {},
"outputs": [
{
@@ -4226,7 +4345,7 @@
"{'L1': 0.6144578313253012, 'L2': 0.4857142857142857, 'L3': 0.5930232558139535}"
]
},
- "execution_count": 112,
+ "execution_count": 115,
"metadata": {},
"output_type": "execute_result"
}
@@ -4299,7 +4418,7 @@
},
{
"cell_type": "code",
- "execution_count": 113,
+ "execution_count": 116,
"metadata": {},
"outputs": [
{
@@ -4308,7 +4427,7 @@
"{'L1': 0.6831300510639732, 'L2': 0.25819888974716115, 'L3': 0.1690308509457033}"
]
},
- "execution_count": 113,
+ "execution_count": 116,
"metadata": {},
"output_type": "execute_result"
}
@@ -4342,7 +4461,7 @@
},
{
"cell_type": "code",
- "execution_count": 114,
+ "execution_count": 117,
"metadata": {},
"outputs": [
{
@@ -4353,7 +4472,7 @@
" 'L3': 0.17142857142857126}"
]
},
- "execution_count": 114,
+ "execution_count": 117,
"metadata": {},
"output_type": "execute_result"
}
@@ -4385,7 +4504,7 @@
},
{
"cell_type": "code",
- "execution_count": 115,
+ "execution_count": 118,
"metadata": {},
"outputs": [
{
@@ -4394,7 +4513,7 @@
"{'L1': 0.7777777777777777, 'L2': 0.2222222222222221, 'L3': 0.16666666666666652}"
]
},
- "execution_count": 115,
+ "execution_count": 118,
"metadata": {},
"output_type": "execute_result"
}
@@ -4430,7 +4549,7 @@
},
{
"cell_type": "code",
- "execution_count": 116,
+ "execution_count": 119,
"metadata": {},
"outputs": [
{
@@ -4439,7 +4558,7 @@
"{'L1': 'None', 'L2': 2.5000000000000004, 'L3': 1.4}"
]
},
- "execution_count": 116,
+ "execution_count": 119,
"metadata": {},
"output_type": "execute_result"
}
@@ -4484,7 +4603,7 @@
},
{
"cell_type": "code",
- "execution_count": 117,
+ "execution_count": 120,
"metadata": {},
"outputs": [
{
@@ -4493,7 +4612,7 @@
"{'L1': 0.4, 'L2': 0.625, 'L3': 0.7000000000000001}"
]
},
- "execution_count": 117,
+ "execution_count": 120,
"metadata": {},
"output_type": "execute_result"
}
@@ -4536,7 +4655,7 @@
},
{
"cell_type": "code",
- "execution_count": 118,
+ "execution_count": 121,
"metadata": {},
"outputs": [
{
@@ -4545,7 +4664,7 @@
"{'L1': 'None', 'L2': 4.000000000000001, 'L3': 1.9999999999999998}"
]
},
- "execution_count": 118,
+ "execution_count": 121,
"metadata": {},
"output_type": "execute_result"
}
@@ -4579,7 +4698,7 @@
},
{
"cell_type": "code",
- "execution_count": 119,
+ "execution_count": 122,
"metadata": {},
"outputs": [
{
@@ -4588,7 +4707,7 @@
"{'L1': 0.4166666666666667, 'L2': 0.16666666666666666, 'L3': 0.4166666666666667}"
]
},
- "execution_count": 119,
+ "execution_count": 122,
"metadata": {},
"output_type": "execute_result"
}
@@ -4622,7 +4741,7 @@
},
{
"cell_type": "code",
- "execution_count": 120,
+ "execution_count": 123,
"metadata": {},
"outputs": [
{
@@ -4631,7 +4750,7 @@
"{'L1': 0.7745966692414834, 'L2': 0.408248290463863, 'L3': 0.5477225575051661}"
]
},
- "execution_count": 120,
+ "execution_count": 123,
"metadata": {},
"output_type": "execute_result"
}
@@ -4663,7 +4782,7 @@
},
{
"cell_type": "code",
- "execution_count": 121,
+ "execution_count": 124,
"metadata": {},
"outputs": [
{
@@ -4674,7 +4793,7 @@
" 'L3': 0.20833333333333334}"
]
},
- "execution_count": 121,
+ "execution_count": 124,
"metadata": {},
"output_type": "execute_result"
}
@@ -4715,7 +4834,7 @@
},
{
"cell_type": "code",
- "execution_count": 122,
+ "execution_count": 125,
"metadata": {},
"outputs": [
{
@@ -4726,7 +4845,7 @@
" 'L3': 0.21006944444444442}"
]
},
- "execution_count": 122,
+ "execution_count": 125,
"metadata": {},
"output_type": "execute_result"
}
@@ -4771,7 +4890,7 @@
},
{
"cell_type": "code",
- "execution_count": 123,
+ "execution_count": 126,
"metadata": {},
"outputs": [
{
@@ -4780,7 +4899,7 @@
"{'L1': 0.6, 'L2': 0.25, 'L3': 0.375}"
]
},
- "execution_count": 123,
+ "execution_count": 126,
"metadata": {},
"output_type": "execute_result"
}
@@ -4822,7 +4941,7 @@
},
{
"cell_type": "code",
- "execution_count": 124,
+ "execution_count": 127,
"metadata": {},
"outputs": [
{
@@ -4831,7 +4950,7 @@
"{'L1': 1.2630344058337937, 'L2': 0.9999999999999998, 'L3': 0.26303440583379367}"
]
},
- "execution_count": 124,
+ "execution_count": 127,
"metadata": {},
"output_type": "execute_result"
}
@@ -4888,7 +5007,7 @@
},
{
"cell_type": "code",
- "execution_count": 125,
+ "execution_count": 128,
"metadata": {},
"outputs": [
{
@@ -4897,7 +5016,7 @@
"{'L1': 0.25, 'L2': 0.49657842846620864, 'L3': 0.6044162769630221}"
]
},
- "execution_count": 125,
+ "execution_count": 128,
"metadata": {},
"output_type": "execute_result"
}
@@ -4961,7 +5080,7 @@
},
{
"cell_type": "code",
- "execution_count": 126,
+ "execution_count": 129,
"metadata": {},
"outputs": [
{
@@ -4970,7 +5089,7 @@
"{'L1': 0.2643856189774724, 'L2': 0.5, 'L3': 0.6875}"
]
},
- "execution_count": 126,
+ "execution_count": 129,
"metadata": {},
"output_type": "execute_result"
}
@@ -5014,7 +5133,7 @@
},
{
"cell_type": "code",
- "execution_count": 127,
+ "execution_count": 130,
"metadata": {},
"outputs": [
{
@@ -5023,7 +5142,7 @@
"{'L1': 0.8, 'L2': 0.65, 'L3': 0.5857142857142856}"
]
},
- "execution_count": 127,
+ "execution_count": 130,
"metadata": {},
"output_type": "execute_result"
}
@@ -5065,7 +5184,7 @@
},
{
"cell_type": "code",
- "execution_count": 128,
+ "execution_count": 131,
"metadata": {},
"outputs": [
{
@@ -5074,7 +5193,7 @@
"{'L1': 0.4, 'L2': 0.5385164807134504, 'L3': 0.5862367008195198}"
]
},
- "execution_count": 128,
+ "execution_count": 131,
"metadata": {},
"output_type": "execute_result"
}
@@ -5115,7 +5234,7 @@
},
{
"cell_type": "code",
- "execution_count": 129,
+ "execution_count": 132,
"metadata": {},
"outputs": [
{
@@ -5124,7 +5243,7 @@
"{'L1': 0.717157287525381, 'L2': 0.6192113447068046, 'L3': 0.5854680534700882}"
]
},
- "execution_count": 129,
+ "execution_count": 132,
"metadata": {},
"output_type": "execute_result"
}
@@ -5182,7 +5301,7 @@
},
{
"cell_type": "code",
- "execution_count": 130,
+ "execution_count": 133,
"metadata": {},
"outputs": [
{
@@ -5191,7 +5310,7 @@
"{'L1': 'None', 'L2': 0.33193306999649924, 'L3': 0.1659665349982495}"
]
},
- "execution_count": 130,
+ "execution_count": 133,
"metadata": {},
"output_type": "execute_result"
}
@@ -5241,7 +5360,7 @@
},
{
"cell_type": "code",
- "execution_count": 131,
+ "execution_count": 134,
"metadata": {},
"outputs": [
{
@@ -5252,7 +5371,7 @@
" 'L3': 0.17142857142857126}"
]
},
- "execution_count": 131,
+ "execution_count": 134,
"metadata": {},
"output_type": "execute_result"
}
@@ -5316,7 +5435,7 @@
},
{
"cell_type": "code",
- "execution_count": 132,
+ "execution_count": 135,
"metadata": {},
"outputs": [
{
@@ -5325,7 +5444,7 @@
"{'L1': 'None', 'L2': 'Poor', 'L3': 'Poor'}"
]
},
- "execution_count": 132,
+ "execution_count": 135,
"metadata": {},
"output_type": "execute_result"
}
@@ -5389,7 +5508,7 @@
},
{
"cell_type": "code",
- "execution_count": 133,
+ "execution_count": 136,
"metadata": {},
"outputs": [
{
@@ -5398,7 +5517,7 @@
"{'L1': 'Poor', 'L2': 'Negligible', 'L3': 'Negligible'}"
]
},
- "execution_count": 133,
+ "execution_count": 136,
"metadata": {},
"output_type": "execute_result"
}
@@ -5462,7 +5581,7 @@
},
{
"cell_type": "code",
- "execution_count": 134,
+ "execution_count": 137,
"metadata": {},
"outputs": [
{
@@ -5471,7 +5590,7 @@
"{'L1': 'None', 'L2': 'Poor', 'L3': 'Poor'}"
]
},
- "execution_count": 134,
+ "execution_count": 137,
"metadata": {},
"output_type": "execute_result"
}
@@ -5538,7 +5657,7 @@
},
{
"cell_type": "code",
- "execution_count": 135,
+ "execution_count": 138,
"metadata": {},
"outputs": [
{
@@ -5547,7 +5666,7 @@
"{'L1': 'Very Good', 'L2': 'Fair', 'L3': 'Poor'}"
]
},
- "execution_count": 135,
+ "execution_count": 138,
"metadata": {},
"output_type": "execute_result"
}
@@ -5616,7 +5735,7 @@
},
{
"cell_type": "code",
- "execution_count": 136,
+ "execution_count": 139,
"metadata": {},
"outputs": [
{
@@ -5625,7 +5744,7 @@
"{'L1': 'Moderate', 'L2': 'Negligible', 'L3': 'Negligible'}"
]
},
- "execution_count": 136,
+ "execution_count": 139,
"metadata": {},
"output_type": "execute_result"
}
@@ -5698,7 +5817,7 @@
},
{
"cell_type": "code",
- "execution_count": 137,
+ "execution_count": 140,
"metadata": {},
"outputs": [
{
@@ -5707,7 +5826,7 @@
"{'L1': 'None', 'L2': 'Moderate', 'L3': 'Weak'}"
]
},
- "execution_count": 137,
+ "execution_count": 140,
"metadata": {},
"output_type": "execute_result"
}
@@ -5752,7 +5871,7 @@
},
{
"cell_type": "code",
- "execution_count": 138,
+ "execution_count": 141,
"metadata": {},
"outputs": [
{
@@ -5763,7 +5882,7 @@
" 'L3': 0.17142857142857126}"
]
},
- "execution_count": 138,
+ "execution_count": 141,
"metadata": {},
"output_type": "execute_result"
}
@@ -5804,7 +5923,7 @@
},
{
"cell_type": "code",
- "execution_count": 139,
+ "execution_count": 142,
"metadata": {},
"outputs": [
{
@@ -5813,7 +5932,7 @@
"{'L1': 2.4, 'L2': 2.0, 'L3': 1.2}"
]
},
- "execution_count": 139,
+ "execution_count": 142,
"metadata": {},
"output_type": "execute_result"
}
@@ -5854,7 +5973,7 @@
},
{
"cell_type": "code",
- "execution_count": 140,
+ "execution_count": 143,
"metadata": {},
"outputs": [
{
@@ -5863,7 +5982,7 @@
"{'L1': -2, 'L2': 1, 'L3': 1}"
]
},
- "execution_count": 140,
+ "execution_count": 143,
"metadata": {},
"output_type": "execute_result"
}
@@ -5906,7 +6025,7 @@
},
{
"cell_type": "code",
- "execution_count": 141,
+ "execution_count": 144,
"metadata": {},
"outputs": [
{
@@ -5917,7 +6036,7 @@
" 'L3': 0.041666666666666664}"
]
},
- "execution_count": 141,
+ "execution_count": 144,
"metadata": {},
"output_type": "execute_result"
}
@@ -5961,7 +6080,7 @@
},
{
"cell_type": "code",
- "execution_count": 142,
+ "execution_count": 145,
"metadata": {},
"outputs": [
{
@@ -5970,7 +6089,7 @@
"{'L1': 0.5833333333333334, 'L2': 0.5192307692307692, 'L3': 0.5589430894308943}"
]
},
- "execution_count": 142,
+ "execution_count": 145,
"metadata": {},
"output_type": "execute_result"
}
@@ -6012,7 +6131,7 @@
},
{
"cell_type": "code",
- "execution_count": 143,
+ "execution_count": 146,
"metadata": {},
"outputs": [
{
@@ -6021,7 +6140,7 @@
"{'L1': 0.36, 'L2': 0.27999999999999997, 'L3': 0.35265306122448975}"
]
},
- "execution_count": 143,
+ "execution_count": 146,
"metadata": {},
"output_type": "execute_result"
}
@@ -6032,7 +6151,7 @@
},
{
"cell_type": "code",
- "execution_count": 144,
+ "execution_count": 147,
"metadata": {},
"outputs": [
{
@@ -6041,7 +6160,7 @@
"{'L1': 0.48, 'L2': 0.34, 'L3': 0.3477551020408163}"
]
},
- "execution_count": 144,
+ "execution_count": 147,
"metadata": {},
"output_type": "execute_result"
}
@@ -6052,7 +6171,7 @@
},
{
"cell_type": "code",
- "execution_count": 145,
+ "execution_count": 148,
"metadata": {},
"outputs": [
{
@@ -6061,7 +6180,7 @@
"{'L1': 0.576, 'L2': 0.388, 'L3': 0.34383673469387754}"
]
},
- "execution_count": 145,
+ "execution_count": 148,
"metadata": {},
"output_type": "execute_result"
}
@@ -6130,7 +6249,7 @@
},
{
"cell_type": "code",
- "execution_count": 146,
+ "execution_count": 149,
"metadata": {},
"outputs": [
{
@@ -6139,7 +6258,7 @@
"{'L1': 0.7745966692414834, 'L2': 0.6324555320336759, 'L3': 0.5855400437691198}"
]
},
- "execution_count": 146,
+ "execution_count": 149,
"metadata": {},
"output_type": "execute_result"
}
@@ -6191,7 +6310,7 @@
},
{
"cell_type": "code",
- "execution_count": 147,
+ "execution_count": 150,
"metadata": {},
"outputs": [
{
@@ -6200,7 +6319,7 @@
"{'L1': 'None', 'L2': 0.6, 'L3': 0.3333333333333333}"
]
},
- "execution_count": 147,
+ "execution_count": 150,
"metadata": {},
"output_type": "execute_result"
}
@@ -6255,7 +6374,7 @@
},
{
"cell_type": "code",
- "execution_count": 148,
+ "execution_count": 151,
"metadata": {},
"outputs": [
{
@@ -6264,7 +6383,7 @@
"{'L1': 0.8576400016262, 'L2': 0.708612108382005, 'L3': 0.5803410802752335}"
]
},
- "execution_count": 148,
+ "execution_count": 151,
"metadata": {},
"output_type": "execute_result"
}
@@ -6319,7 +6438,7 @@
},
{
"cell_type": "code",
- "execution_count": 149,
+ "execution_count": 152,
"metadata": {},
"outputs": [
{
@@ -6328,7 +6447,7 @@
"{'L1': 0.7285871475307653, 'L2': 0.6286946134619315, 'L3': 0.610088876086563}"
]
},
- "execution_count": 149,
+ "execution_count": 152,
"metadata": {},
"output_type": "execute_result"
}
@@ -6371,7 +6490,7 @@
},
{
"cell_type": "code",
- "execution_count": 150,
+ "execution_count": 153,
"metadata": {},
"outputs": [
{
@@ -6380,7 +6499,7 @@
"{'L1': 1.0, 'L2': 0.5, 'L3': 0.6}"
]
},
- "execution_count": 150,
+ "execution_count": 153,
"metadata": {},
"output_type": "execute_result"
}
@@ -6421,7 +6540,7 @@
},
{
"cell_type": "code",
- "execution_count": 151,
+ "execution_count": 154,
"metadata": {},
"outputs": [
{
@@ -6430,7 +6549,7 @@
"{'L1': 0.6, 'L2': 0.3333333333333333, 'L3': 0.5}"
]
},
- "execution_count": 151,
+ "execution_count": 154,
"metadata": {},
"output_type": "execute_result"
}
@@ -6473,7 +6592,7 @@
},
{
"cell_type": "code",
- "execution_count": 152,
+ "execution_count": 155,
"metadata": {},
"outputs": [
{
@@ -6482,7 +6601,7 @@
"{'L1': 0.7745966692414834, 'L2': 0.4082482904638631, 'L3': 0.5477225575051661}"
]
},
- "execution_count": 152,
+ "execution_count": 155,
"metadata": {},
"output_type": "execute_result"
}
@@ -6525,7 +6644,7 @@
},
{
"cell_type": "code",
- "execution_count": 153,
+ "execution_count": 156,
"metadata": {},
"outputs": [
{
@@ -6534,7 +6653,7 @@
"{'L1': 0.42857142857142855, 'L2': 0.1111111111111111, 'L3': 0.1875}"
]
},
- "execution_count": 153,
+ "execution_count": 156,
"metadata": {},
"output_type": "execute_result"
}
@@ -6605,7 +6724,7 @@
},
{
"cell_type": "code",
- "execution_count": 154,
+ "execution_count": 157,
"metadata": {},
"outputs": [
{
@@ -6614,7 +6733,7 @@
"{'L1': 0.8, 'L2': 0.41666666666666663, 'L3': 0.55}"
]
},
- "execution_count": 154,
+ "execution_count": 157,
"metadata": {},
"output_type": "execute_result"
}
@@ -6662,7 +6781,7 @@
},
{
"cell_type": "code",
- "execution_count": 155,
+ "execution_count": 158,
"metadata": {},
"outputs": [
{
@@ -6673,7 +6792,7 @@
" 'L3': 0.10000000000000009}"
]
},
- "execution_count": 155,
+ "execution_count": 158,
"metadata": {},
"output_type": "execute_result"
}
@@ -6793,7 +6912,7 @@
},
{
"cell_type": "code",
- "execution_count": 156,
+ "execution_count": 159,
"metadata": {},
"outputs": [
{
@@ -6804,7 +6923,7 @@
" 'L3': [0.21908902300206645, (0.17058551491594975, 1.0294144850840503)]}"
]
},
- "execution_count": 156,
+ "execution_count": 159,
"metadata": {},
"output_type": "execute_result"
}
@@ -6815,7 +6934,7 @@
},
{
"cell_type": "code",
- "execution_count": 157,
+ "execution_count": 160,
"metadata": {},
"outputs": [
{
@@ -6826,7 +6945,7 @@
" 'L3': [0.21908902300206645, (-0.2769850810763853, 1.0769850810763852)]}"
]
},
- "execution_count": 157,
+ "execution_count": 160,
"metadata": {},
"output_type": "execute_result"
}
@@ -6837,7 +6956,7 @@
},
{
"cell_type": "code",
- "execution_count": 158,
+ "execution_count": 161,
"metadata": {},
"outputs": [
{
@@ -6848,7 +6967,7 @@
" 'L3': [0.14231876063832774, (0.19325746190524654, 0.6804926643446272)]}"
]
},
- "execution_count": 158,
+ "execution_count": 161,
"metadata": {},
"output_type": "execute_result"
}
@@ -6859,7 +6978,7 @@
},
{
"cell_type": "code",
- "execution_count": 159,
+ "execution_count": 162,
"metadata": {},
"outputs": [
{
@@ -6868,7 +6987,7 @@
"[0.14231876063832777, (0.2805568916340536, 0.8343177950165198)]"
]
},
- "execution_count": 159,
+ "execution_count": 162,
"metadata": {},
"output_type": "execute_result"
}
@@ -6879,7 +6998,7 @@
},
{
"cell_type": "code",
- "execution_count": 160,
+ "execution_count": 163,
"metadata": {},
"outputs": [
{
@@ -6888,7 +7007,7 @@
"[0.14231876063832777, (0.30438856248221097, 0.8622781041844558)]"
]
},
- "execution_count": 160,
+ "execution_count": 163,
"metadata": {},
"output_type": "execute_result"
}
@@ -6989,7 +7108,7 @@
},
{
"cell_type": "code",
- "execution_count": 161,
+ "execution_count": 164,
"metadata": {},
"outputs": [
{
@@ -6998,7 +7117,7 @@
"{'L1': 0.25, 'L2': 0.0735, 'L3': 0.23525}"
]
},
- "execution_count": 161,
+ "execution_count": 164,
"metadata": {},
"output_type": "execute_result"
}
@@ -7062,7 +7181,7 @@
},
{
"cell_type": "code",
- "execution_count": 162,
+ "execution_count": 165,
"metadata": {},
"outputs": [
{
@@ -7071,7 +7190,7 @@
"0.6111111111111112"
]
},
- "execution_count": 162,
+ "execution_count": 165,
"metadata": {},
"output_type": "execute_result"
}
@@ -7082,7 +7201,7 @@
},
{
"cell_type": "code",
- "execution_count": 163,
+ "execution_count": 166,
"metadata": {},
"outputs": [
{
@@ -7091,7 +7210,7 @@
"0.5651515151515151"
]
},
- "execution_count": 163,
+ "execution_count": 166,
"metadata": {},
"output_type": "execute_result"
}
@@ -7102,7 +7221,7 @@
},
{
"cell_type": "code",
- "execution_count": 164,
+ "execution_count": 167,
"metadata": {},
"outputs": [
{
@@ -7111,7 +7230,7 @@
"3.0000000000000004"
]
},
- "execution_count": 164,
+ "execution_count": 167,
"metadata": {},
"output_type": "execute_result"
}
@@ -7178,16 +7297,16 @@
},
{
"cell_type": "code",
- "execution_count": 165,
+ "execution_count": 168,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "0.6805555555555557"
+ "0.6805555555555555"
]
},
- "execution_count": 165,
+ "execution_count": 168,
"metadata": {},
"output_type": "execute_result"
}
@@ -7198,16 +7317,16 @@
},
{
"cell_type": "code",
- "execution_count": 166,
+ "execution_count": 169,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "0.606439393939394"
+ "0.6064393939393938"
]
},
- "execution_count": 166,
+ "execution_count": 169,
"metadata": {},
"output_type": "execute_result"
}
@@ -7218,7 +7337,7 @@
},
{
"cell_type": "code",
- "execution_count": 167,
+ "execution_count": 170,
"metadata": {},
"outputs": [
{
@@ -7227,7 +7346,7 @@
"2.5714285714285716"
]
},
- "execution_count": 167,
+ "execution_count": 170,
"metadata": {},
"output_type": "execute_result"
}
@@ -7238,7 +7357,7 @@
},
{
"cell_type": "code",
- "execution_count": 168,
+ "execution_count": 171,
"metadata": {},
"outputs": [
{
@@ -7247,7 +7366,7 @@
"0.7152097902097903"
]
},
- "execution_count": 168,
+ "execution_count": 171,
"metadata": {},
"output_type": "execute_result"
}
@@ -7328,7 +7447,7 @@
},
{
"cell_type": "code",
- "execution_count": 169,
+ "execution_count": 172,
"metadata": {},
"outputs": [
{
@@ -7337,7 +7456,7 @@
"{'L1': 'None', 'L2': 0.8416212335729143, 'L3': 0.4333594729285047}"
]
},
- "execution_count": 169,
+ "execution_count": 172,
"metadata": {},
"output_type": "execute_result"
}
@@ -7401,7 +7520,7 @@
},
{
"cell_type": "code",
- "execution_count": 170,
+ "execution_count": 173,
"metadata": {},
"outputs": [
{
@@ -7410,7 +7529,7 @@
"{'L1': 2, 'L2': 3, 'L3': 5}"
]
},
- "execution_count": 170,
+ "execution_count": 173,
"metadata": {},
"output_type": "execute_result"
}
@@ -7465,7 +7584,7 @@
},
{
"cell_type": "code",
- "execution_count": 171,
+ "execution_count": 174,
"metadata": {},
"outputs": [
{
@@ -7474,7 +7593,7 @@
"0.35483870967741943"
]
},
- "execution_count": 171,
+ "execution_count": 174,
"metadata": {},
"output_type": "execute_result"
}
@@ -7517,7 +7636,7 @@
},
{
"cell_type": "code",
- "execution_count": 172,
+ "execution_count": 175,
"metadata": {},
"outputs": [
{
@@ -7526,7 +7645,7 @@
"0.34426229508196726"
]
},
- "execution_count": 172,
+ "execution_count": 175,
"metadata": {},
"output_type": "execute_result"
}
@@ -7567,7 +7686,7 @@
},
{
"cell_type": "code",
- "execution_count": 173,
+ "execution_count": 176,
"metadata": {},
"outputs": [
{
@@ -7576,7 +7695,7 @@
"0.16666666666666674"
]
},
- "execution_count": 173,
+ "execution_count": 176,
"metadata": {},
"output_type": "execute_result"
}
@@ -7638,7 +7757,7 @@
},
{
"cell_type": "code",
- "execution_count": 174,
+ "execution_count": 177,
"metadata": {},
"outputs": [
{
@@ -7647,7 +7766,7 @@
"0.39130434782608675"
]
},
- "execution_count": 174,
+ "execution_count": 177,
"metadata": {},
"output_type": "execute_result"
}
@@ -7658,14 +7777,14 @@
},
{
"cell_type": "code",
- "execution_count": 175,
+ "execution_count": 178,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.7-py3.5.egg\\pycm\\pycm_obj.py:802: RuntimeWarning: The weight format is wrong, the result is for unweighted kappa.\n"
+ "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.8-py3.5.egg\\pycm\\pycm_obj.py:839: RuntimeWarning: The weight format is wrong, the result is for unweighted kappa.\n"
]
},
{
@@ -7674,7 +7793,7 @@
"0.35483870967741943"
]
},
- "execution_count": 175,
+ "execution_count": 178,
"metadata": {},
"output_type": "execute_result"
}
@@ -7743,7 +7862,7 @@
},
{
"cell_type": "code",
- "execution_count": 176,
+ "execution_count": 179,
"metadata": {},
"outputs": [
{
@@ -7752,7 +7871,7 @@
"0.2203645326012817"
]
},
- "execution_count": 176,
+ "execution_count": 179,
"metadata": {},
"output_type": "execute_result"
}
@@ -7793,7 +7912,7 @@
},
{
"cell_type": "code",
- "execution_count": 177,
+ "execution_count": 180,
"metadata": {},
"outputs": [
{
@@ -7802,7 +7921,7 @@
"(-0.07707577422109269, 0.7867531935759315)"
]
},
- "execution_count": 177,
+ "execution_count": 180,
"metadata": {},
"output_type": "execute_result"
}
@@ -7852,7 +7971,7 @@
},
{
"cell_type": "code",
- "execution_count": 178,
+ "execution_count": 181,
"metadata": {},
"outputs": [
{
@@ -7861,7 +7980,7 @@
"6.6000000000000005"
]
},
- "execution_count": 178,
+ "execution_count": 181,
"metadata": {},
"output_type": "execute_result"
}
@@ -7902,7 +8021,7 @@
},
{
"cell_type": "code",
- "execution_count": 179,
+ "execution_count": 182,
"metadata": {},
"outputs": [
{
@@ -7911,7 +8030,7 @@
"4"
]
},
- "execution_count": 179,
+ "execution_count": 182,
"metadata": {},
"output_type": "execute_result"
}
@@ -7954,7 +8073,7 @@
},
{
"cell_type": "code",
- "execution_count": 180,
+ "execution_count": 183,
"metadata": {},
"outputs": [
{
@@ -7963,7 +8082,7 @@
"0.55"
]
},
- "execution_count": 180,
+ "execution_count": 183,
"metadata": {},
"output_type": "execute_result"
}
@@ -8008,7 +8127,7 @@
},
{
"cell_type": "code",
- "execution_count": 181,
+ "execution_count": 184,
"metadata": {},
"outputs": [
{
@@ -8017,7 +8136,7 @@
"0.5244044240850758"
]
},
- "execution_count": 181,
+ "execution_count": 184,
"metadata": {},
"output_type": "execute_result"
}
@@ -8060,7 +8179,7 @@
},
{
"cell_type": "code",
- "execution_count": 182,
+ "execution_count": 185,
"metadata": {},
"outputs": [
{
@@ -8069,7 +8188,7 @@
"0.14231876063832777"
]
},
- "execution_count": 182,
+ "execution_count": 185,
"metadata": {},
"output_type": "execute_result"
}
@@ -8112,7 +8231,7 @@
},
{
"cell_type": "code",
- "execution_count": 183,
+ "execution_count": 186,
"metadata": {},
"outputs": [
{
@@ -8121,7 +8240,7 @@
"(0.30438856248221097, 0.8622781041844558)"
]
},
- "execution_count": 183,
+ "execution_count": 186,
"metadata": {},
"output_type": "execute_result"
}
@@ -8181,7 +8300,7 @@
},
{
"cell_type": "code",
- "execution_count": 184,
+ "execution_count": 187,
"metadata": {},
"outputs": [
{
@@ -8190,7 +8309,7 @@
"0.37500000000000006"
]
},
- "execution_count": 184,
+ "execution_count": 187,
"metadata": {},
"output_type": "execute_result"
}
@@ -8243,7 +8362,7 @@
},
{
"cell_type": "code",
- "execution_count": 185,
+ "execution_count": 188,
"metadata": {},
"outputs": [
{
@@ -8252,7 +8371,7 @@
"0.34426229508196726"
]
},
- "execution_count": 185,
+ "execution_count": 188,
"metadata": {},
"output_type": "execute_result"
}
@@ -8307,7 +8426,7 @@
},
{
"cell_type": "code",
- "execution_count": 186,
+ "execution_count": 189,
"metadata": {},
"outputs": [
{
@@ -8316,7 +8435,7 @@
"0.3893129770992367"
]
},
- "execution_count": 186,
+ "execution_count": 189,
"metadata": {},
"output_type": "execute_result"
}
@@ -8371,7 +8490,7 @@
},
{
"cell_type": "code",
- "execution_count": 187,
+ "execution_count": 190,
"metadata": {},
"outputs": [
{
@@ -8380,7 +8499,7 @@
"1.4833557549816874"
]
},
- "execution_count": 187,
+ "execution_count": 190,
"metadata": {},
"output_type": "execute_result"
}
@@ -8435,7 +8554,7 @@
},
{
"cell_type": "code",
- "execution_count": 188,
+ "execution_count": 191,
"metadata": {},
"outputs": [
{
@@ -8444,7 +8563,7 @@
"1.5"
]
},
- "execution_count": 188,
+ "execution_count": 191,
"metadata": {},
"output_type": "execute_result"
}
@@ -8508,7 +8627,7 @@
},
{
"cell_type": "code",
- "execution_count": 189,
+ "execution_count": 192,
"metadata": {},
"outputs": [
{
@@ -8517,7 +8636,7 @@
"1.5833333333333335"
]
},
- "execution_count": 189,
+ "execution_count": 192,
"metadata": {},
"output_type": "execute_result"
}
@@ -8572,7 +8691,7 @@
},
{
"cell_type": "code",
- "execution_count": 190,
+ "execution_count": 193,
"metadata": {},
"outputs": [
{
@@ -8581,7 +8700,7 @@
"2.4591479170272446"
]
},
- "execution_count": 190,
+ "execution_count": 193,
"metadata": {},
"output_type": "execute_result"
}
@@ -8638,7 +8757,7 @@
},
{
"cell_type": "code",
- "execution_count": 191,
+ "execution_count": 194,
"metadata": {},
"outputs": [
{
@@ -8647,7 +8766,7 @@
"0.9757921620455572"
]
},
- "execution_count": 191,
+ "execution_count": 194,
"metadata": {},
"output_type": "execute_result"
}
@@ -8704,7 +8823,7 @@
},
{
"cell_type": "code",
- "execution_count": 192,
+ "execution_count": 195,
"metadata": {},
"outputs": [
{
@@ -8713,7 +8832,7 @@
"0.09997757835164581"
]
},
- "execution_count": 192,
+ "execution_count": 195,
"metadata": {},
"output_type": "execute_result"
}
@@ -8785,7 +8904,7 @@
},
{
"cell_type": "code",
- "execution_count": 193,
+ "execution_count": 196,
"metadata": {},
"outputs": [
{
@@ -8794,7 +8913,7 @@
"0.5242078379544428"
]
},
- "execution_count": 193,
+ "execution_count": 196,
"metadata": {},
"output_type": "execute_result"
}
@@ -8837,7 +8956,7 @@
},
{
"cell_type": "code",
- "execution_count": 194,
+ "execution_count": 197,
"metadata": {},
"outputs": [
{
@@ -8846,7 +8965,7 @@
"0.42857142857142855"
]
},
- "execution_count": 194,
+ "execution_count": 197,
"metadata": {},
"output_type": "execute_result"
}
@@ -8889,7 +9008,7 @@
},
{
"cell_type": "code",
- "execution_count": 195,
+ "execution_count": 198,
"metadata": {},
"outputs": [
{
@@ -8898,7 +9017,7 @@
"0.16666666666666666"
]
},
- "execution_count": 195,
+ "execution_count": 198,
"metadata": {},
"output_type": "execute_result"
}
@@ -8970,7 +9089,7 @@
},
{
"cell_type": "code",
- "execution_count": 196,
+ "execution_count": 199,
"metadata": {},
"outputs": [
{
@@ -8979,7 +9098,7 @@
"'Fair'"
]
},
- "execution_count": 196,
+ "execution_count": 199,
"metadata": {},
"output_type": "execute_result"
}
@@ -9039,7 +9158,7 @@
},
{
"cell_type": "code",
- "execution_count": 197,
+ "execution_count": 200,
"metadata": {},
"outputs": [
{
@@ -9048,7 +9167,7 @@
"'Poor'"
]
},
- "execution_count": 197,
+ "execution_count": 200,
"metadata": {},
"output_type": "execute_result"
}
@@ -9116,7 +9235,7 @@
},
{
"cell_type": "code",
- "execution_count": 198,
+ "execution_count": 201,
"metadata": {},
"outputs": [
{
@@ -9125,7 +9244,7 @@
"'Fair'"
]
},
- "execution_count": 198,
+ "execution_count": 201,
"metadata": {},
"output_type": "execute_result"
}
@@ -9189,7 +9308,7 @@
},
{
"cell_type": "code",
- "execution_count": 199,
+ "execution_count": 202,
"metadata": {},
"outputs": [
{
@@ -9198,7 +9317,7 @@
"'Poor'"
]
},
- "execution_count": 199,
+ "execution_count": 202,
"metadata": {},
"output_type": "execute_result"
}
@@ -9270,7 +9389,7 @@
},
{
"cell_type": "code",
- "execution_count": 200,
+ "execution_count": 203,
"metadata": {},
"outputs": [
{
@@ -9279,7 +9398,7 @@
"'Relatively Strong'"
]
},
- "execution_count": 200,
+ "execution_count": 203,
"metadata": {},
"output_type": "execute_result"
}
@@ -9348,7 +9467,7 @@
},
{
"cell_type": "code",
- "execution_count": 201,
+ "execution_count": 204,
"metadata": {},
"outputs": [
{
@@ -9357,7 +9476,7 @@
"'Weak'"
]
},
- "execution_count": 201,
+ "execution_count": 204,
"metadata": {},
"output_type": "execute_result"
}
@@ -9388,48 +9507,71 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "### Overall_ACC"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "For more information visit [[3]](#ref3)."
+ "### SOA7 (Goodman & Kruskal's lambda A benchmark)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "$$ACC_{Overall}=\\frac{\\sum_{i=1}^{|C|}TP_i}{POP}$$"
+ "For more information visit [[84]](#ref84)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "Equals to [TPR Micro](#TPR_Micro), [F1 Micro](#F1_Micro) and [PPV Micro](#PPV_Micro)"
+ "\n",
+ " \n",
+ " Lambda A | \n",
+ " Strength of Association | \n",
+ "
\n",
+ " \n",
+ " 0 - 0.2 | \n",
+ " Very Weak | \n",
+ "
\n",
+ " \n",
+ " 0.2 - 0.4 | \n",
+ " Weak | \n",
+ "
\n",
+ " \n",
+ " 0.4 - 0.6 | \n",
+ " Moderate | \n",
+ "
\n",
+ " \n",
+ " 0.6 - 0.8 | \n",
+ " Strong | \n",
+ "
\n",
+ " \n",
+ " 0.8 - 1.0 | \n",
+ " Very Strong | \n",
+ "
\n",
+ " \n",
+ " 1.0 | \n",
+ " Perfect | \n",
+ "
\n",
+ " \n",
+ "
"
]
},
{
"cell_type": "code",
- "execution_count": 202,
+ "execution_count": 205,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "0.5833333333333334"
+ "'Moderate'"
]
},
- "execution_count": 202,
+ "execution_count": 205,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
- "cm.Overall_ACC"
+ "cm.SOA7"
]
},
{
@@ -9437,7 +9579,7 @@
"metadata": {},
"source": [
"\n",
- " - Notice : new in version 0.4
\n",
+ " - Notice : new in version 3.8
\n",
"
"
]
},
@@ -9445,35 +9587,310 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "### Overall_RACC"
+ "### SOA8 (Goodman & Kruskal's lambda B benchmark)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "For more information visit [[24]](#ref24)."
+ "For more information visit [[84]](#ref84)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "$$RACC_{Overall}=\\sum_{i=1}^{|C|}RACC_i$$"
+ "\n",
+ " \n",
+ " Lambda B | \n",
+ " Strength of Association | \n",
+ "
\n",
+ " \n",
+ " 0 - 0.2 | \n",
+ " Very Weak | \n",
+ "
\n",
+ " \n",
+ " 0.2 - 0.4 | \n",
+ " Weak | \n",
+ "
\n",
+ " \n",
+ " 0.4 - 0.6 | \n",
+ " Moderate | \n",
+ "
\n",
+ " \n",
+ " 0.6 - 0.8 | \n",
+ " Strong | \n",
+ "
\n",
+ " \n",
+ " 0.8 - 1.0 | \n",
+ " Very Strong | \n",
+ "
\n",
+ " \n",
+ " 1.0 | \n",
+ " Perfect | \n",
+ "
\n",
+ " \n",
+ "
"
]
},
{
"cell_type": "code",
- "execution_count": 203,
+ "execution_count": 206,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "0.3541666666666667"
+ "'Very Weak'"
]
},
- "execution_count": 203,
+ "execution_count": 206,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.SOA8"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### SOA9 (Krippendorff's alpha benchmark)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "For more information visit [[85]](#ref85)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " \n",
+ " Alpha | \n",
+ " Strength of Agreement | \n",
+ "
\n",
+ " \n",
+ " 0.667 > | \n",
+ " Low | \n",
+ "
\n",
+ " \n",
+ " 0.667 - 0.8 | \n",
+ " Tentative | \n",
+ "
\n",
+ " \n",
+ " 0.8 < | \n",
+ " High | \n",
+ "
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 207,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "'Low'"
+ ]
+ },
+ "execution_count": 207,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.SOA9"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### SOA10 (Pearson's C benchmark)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "For more information visit [[86]](#ref86)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " \n",
+ " C | \n",
+ " Strength of Association | \n",
+ "
\n",
+ " \n",
+ " 0 - 0.1 | \n",
+ " Not Appreciable | \n",
+ "
\n",
+ " \n",
+ " 0.1 - 0.2 | \n",
+ " Weak | \n",
+ "
\n",
+ " \n",
+ " 0.2 - 0.3 | \n",
+ " Medium | \n",
+ "
\n",
+ " \n",
+ " 0.3 < | \n",
+ " Strong | \n",
+ "
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 208,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "'Strong'"
+ ]
+ },
+ "execution_count": 208,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.SOA10"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 3.8
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### Overall_ACC"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "For more information visit [[3]](#ref3)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$ACC_{Overall}=\\frac{\\sum_{i=1}^{|C|}TP_i}{POP}$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Equals to [TPR Micro](#TPR_Micro), [F1 Micro](#F1_Micro) and [PPV Micro](#PPV_Micro)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 209,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "0.5833333333333334"
+ ]
+ },
+ "execution_count": 209,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "cm.Overall_ACC"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ " - Notice : new in version 0.4
\n",
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### Overall_RACC"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "For more information visit [[24]](#ref24)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "$$RACC_{Overall}=\\sum_{i=1}^{|C|}RACC_i$$"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 210,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "0.3541666666666667"
+ ]
+ },
+ "execution_count": 210,
"metadata": {},
"output_type": "execute_result"
}
@@ -9514,7 +9931,7 @@
},
{
"cell_type": "code",
- "execution_count": 204,
+ "execution_count": 211,
"metadata": {},
"outputs": [
{
@@ -9523,7 +9940,7 @@
"0.3645833333333333"
]
},
- "execution_count": 204,
+ "execution_count": 211,
"metadata": {},
"output_type": "execute_result"
}
@@ -9571,7 +9988,7 @@
},
{
"cell_type": "code",
- "execution_count": 205,
+ "execution_count": 212,
"metadata": {},
"outputs": [
{
@@ -9580,7 +9997,7 @@
"0.5833333333333334"
]
},
- "execution_count": 205,
+ "execution_count": 212,
"metadata": {},
"output_type": "execute_result"
}
@@ -9628,7 +10045,7 @@
},
{
"cell_type": "code",
- "execution_count": 206,
+ "execution_count": 213,
"metadata": {},
"outputs": [
{
@@ -9637,7 +10054,7 @@
"0.5833333333333334"
]
},
- "execution_count": 206,
+ "execution_count": 213,
"metadata": {},
"output_type": "execute_result"
}
@@ -9678,7 +10095,7 @@
},
{
"cell_type": "code",
- "execution_count": 207,
+ "execution_count": 214,
"metadata": {},
"outputs": [
{
@@ -9687,7 +10104,7 @@
"0.7916666666666666"
]
},
- "execution_count": 207,
+ "execution_count": 214,
"metadata": {},
"output_type": "execute_result"
}
@@ -9728,7 +10145,7 @@
},
{
"cell_type": "code",
- "execution_count": 208,
+ "execution_count": 215,
"metadata": {},
"outputs": [
{
@@ -9737,7 +10154,7 @@
"0.20833333333333337"
]
},
- "execution_count": 208,
+ "execution_count": 215,
"metadata": {},
"output_type": "execute_result"
}
@@ -9778,7 +10195,7 @@
},
{
"cell_type": "code",
- "execution_count": 209,
+ "execution_count": 216,
"metadata": {},
"outputs": [
{
@@ -9787,7 +10204,7 @@
"0.41666666666666663"
]
},
- "execution_count": 209,
+ "execution_count": 216,
"metadata": {},
"output_type": "execute_result"
}
@@ -9835,7 +10252,7 @@
},
{
"cell_type": "code",
- "execution_count": 210,
+ "execution_count": 217,
"metadata": {},
"outputs": [
{
@@ -9844,7 +10261,7 @@
"0.5833333333333334"
]
},
- "execution_count": 210,
+ "execution_count": 217,
"metadata": {},
"output_type": "execute_result"
}
@@ -9885,7 +10302,7 @@
},
{
"cell_type": "code",
- "execution_count": 211,
+ "execution_count": 218,
"metadata": {},
"outputs": [
{
@@ -9894,7 +10311,7 @@
"0.611111111111111"
]
},
- "execution_count": 211,
+ "execution_count": 218,
"metadata": {},
"output_type": "execute_result"
}
@@ -9935,7 +10352,7 @@
},
{
"cell_type": "code",
- "execution_count": 212,
+ "execution_count": 219,
"metadata": {},
"outputs": [
{
@@ -9944,7 +10361,7 @@
"0.5666666666666668"
]
},
- "execution_count": 212,
+ "execution_count": 219,
"metadata": {},
"output_type": "execute_result"
}
@@ -9985,7 +10402,7 @@
},
{
"cell_type": "code",
- "execution_count": 213,
+ "execution_count": 220,
"metadata": {},
"outputs": [
{
@@ -9994,7 +10411,7 @@
"0.7904761904761904"
]
},
- "execution_count": 213,
+ "execution_count": 220,
"metadata": {},
"output_type": "execute_result"
}
@@ -10035,7 +10452,7 @@
},
{
"cell_type": "code",
- "execution_count": 214,
+ "execution_count": 221,
"metadata": {},
"outputs": [
{
@@ -10044,7 +10461,7 @@
"0.20952380952380956"
]
},
- "execution_count": 214,
+ "execution_count": 221,
"metadata": {},
"output_type": "execute_result"
}
@@ -10085,7 +10502,7 @@
},
{
"cell_type": "code",
- "execution_count": 215,
+ "execution_count": 222,
"metadata": {},
"outputs": [
{
@@ -10094,7 +10511,7 @@
"0.43333333333333324"
]
},
- "execution_count": 215,
+ "execution_count": 222,
"metadata": {},
"output_type": "execute_result"
}
@@ -10135,7 +10552,7 @@
},
{
"cell_type": "code",
- "execution_count": 216,
+ "execution_count": 223,
"metadata": {},
"outputs": [
{
@@ -10144,7 +10561,7 @@
"0.5651515151515151"
]
},
- "execution_count": 216,
+ "execution_count": 223,
"metadata": {},
"output_type": "execute_result"
}
@@ -10185,7 +10602,7 @@
},
{
"cell_type": "code",
- "execution_count": 217,
+ "execution_count": 224,
"metadata": {},
"outputs": [
{
@@ -10194,7 +10611,7 @@
"0.7222222222222223"
]
},
- "execution_count": 217,
+ "execution_count": 224,
"metadata": {},
"output_type": "execute_result"
}
@@ -10249,7 +10666,7 @@
},
{
"cell_type": "code",
- "execution_count": 218,
+ "execution_count": 225,
"metadata": {},
"outputs": [
{
@@ -10258,7 +10675,7 @@
"(1.225, 0.4083333333333334)"
]
},
- "execution_count": 218,
+ "execution_count": 225,
"metadata": {},
"output_type": "execute_result"
}
@@ -10299,7 +10716,7 @@
},
{
"cell_type": "code",
- "execution_count": 219,
+ "execution_count": 226,
"metadata": {},
"outputs": [
{
@@ -10308,7 +10725,7 @@
"0.41666666666666663"
]
},
- "execution_count": 219,
+ "execution_count": 226,
"metadata": {},
"output_type": "execute_result"
}
@@ -10349,7 +10766,7 @@
},
{
"cell_type": "code",
- "execution_count": 220,
+ "execution_count": 227,
"metadata": {},
"outputs": [
{
@@ -10358,7 +10775,7 @@
"5"
]
},
- "execution_count": 220,
+ "execution_count": 227,
"metadata": {},
"output_type": "execute_result"
}
@@ -10399,7 +10816,7 @@
},
{
"cell_type": "code",
- "execution_count": 221,
+ "execution_count": 228,
"metadata": {},
"outputs": [
{
@@ -10408,7 +10825,7 @@
"0.4166666666666667"
]
},
- "execution_count": 221,
+ "execution_count": 228,
"metadata": {},
"output_type": "execute_result"
}
@@ -10476,7 +10893,7 @@
},
{
"cell_type": "code",
- "execution_count": 222,
+ "execution_count": 229,
"metadata": {},
"outputs": [
{
@@ -10485,7 +10902,7 @@
"0.18926430237560654"
]
},
- "execution_count": 222,
+ "execution_count": 229,
"metadata": {},
"output_type": "execute_result"
}
@@ -10533,7 +10950,7 @@
},
{
"cell_type": "code",
- "execution_count": 223,
+ "execution_count": 230,
"metadata": {},
"outputs": [
{
@@ -10542,7 +10959,7 @@
"0.4638112995385119"
]
},
- "execution_count": 223,
+ "execution_count": 230,
"metadata": {},
"output_type": "execute_result"
}
@@ -10597,7 +11014,7 @@
},
{
"cell_type": "code",
- "execution_count": 224,
+ "execution_count": 231,
"metadata": {},
"outputs": [
{
@@ -10606,7 +11023,7 @@
"0.5189369467580801"
]
},
- "execution_count": 224,
+ "execution_count": 231,
"metadata": {},
"output_type": "execute_result"
}
@@ -10670,7 +11087,7 @@
},
{
"cell_type": "code",
- "execution_count": 225,
+ "execution_count": 232,
"metadata": {},
"outputs": [
{
@@ -10679,7 +11096,7 @@
"0.36666666666666664"
]
},
- "execution_count": 225,
+ "execution_count": 232,
"metadata": {},
"output_type": "execute_result"
}
@@ -10720,7 +11137,7 @@
},
{
"cell_type": "code",
- "execution_count": 226,
+ "execution_count": 233,
"metadata": {},
"outputs": [
{
@@ -10729,7 +11146,7 @@
"4.0"
]
},
- "execution_count": 226,
+ "execution_count": 233,
"metadata": {},
"output_type": "execute_result"
}
@@ -10772,7 +11189,7 @@
},
{
"cell_type": "code",
- "execution_count": 227,
+ "execution_count": 234,
"metadata": {},
"outputs": [
{
@@ -10781,7 +11198,7 @@
"0.4777777777777778"
]
},
- "execution_count": 227,
+ "execution_count": 234,
"metadata": {},
"output_type": "execute_result"
}
@@ -10822,7 +11239,7 @@
},
{
"cell_type": "code",
- "execution_count": 228,
+ "execution_count": 235,
"metadata": {},
"outputs": [
{
@@ -10831,7 +11248,7 @@
"0.6785714285714285"
]
},
- "execution_count": 228,
+ "execution_count": 235,
"metadata": {},
"output_type": "execute_result"
}
@@ -10872,7 +11289,7 @@
},
{
"cell_type": "code",
- "execution_count": 229,
+ "execution_count": 236,
"metadata": {},
"outputs": [
{
@@ -10881,7 +11298,7 @@
"0.6857142857142857"
]
},
- "execution_count": 229,
+ "execution_count": 236,
"metadata": {},
"output_type": "execute_result"
}
@@ -10944,7 +11361,7 @@
},
{
"cell_type": "code",
- "execution_count": 230,
+ "execution_count": 237,
"metadata": {},
"outputs": [
{
@@ -10953,7 +11370,7 @@
"0.3533932006492363"
]
},
- "execution_count": 230,
+ "execution_count": 237,
"metadata": {},
"output_type": "execute_result"
}
@@ -10994,7 +11411,7 @@
},
{
"cell_type": "code",
- "execution_count": 231,
+ "execution_count": 238,
"metadata": {},
"outputs": [
{
@@ -11003,7 +11420,7 @@
"0.5956833971812706"
]
},
- "execution_count": 231,
+ "execution_count": 238,
"metadata": {},
"output_type": "execute_result"
}
@@ -11045,7 +11462,7 @@
},
{
"cell_type": "code",
- "execution_count": 232,
+ "execution_count": 239,
"metadata": {},
"outputs": [
{
@@ -11054,7 +11471,7 @@
"0.1777777777777778"
]
},
- "execution_count": 232,
+ "execution_count": 239,
"metadata": {},
"output_type": "execute_result"
}
@@ -11106,7 +11523,7 @@
},
{
"cell_type": "code",
- "execution_count": 233,
+ "execution_count": 240,
"metadata": {},
"outputs": [
{
@@ -11115,7 +11532,7 @@
"0.09206349206349207"
]
},
- "execution_count": 233,
+ "execution_count": 240,
"metadata": {},
"output_type": "execute_result"
}
@@ -11167,7 +11584,7 @@
},
{
"cell_type": "code",
- "execution_count": 234,
+ "execution_count": 241,
"metadata": {},
"outputs": [
{
@@ -11176,7 +11593,7 @@
"0.37254901960784315"
]
},
- "execution_count": 234,
+ "execution_count": 241,
"metadata": {},
"output_type": "execute_result"
}
@@ -11241,7 +11658,7 @@
},
{
"cell_type": "code",
- "execution_count": 235,
+ "execution_count": 242,
"metadata": {},
"outputs": [
{
@@ -11250,7 +11667,7 @@
"0.3715846994535519"
]
},
- "execution_count": 235,
+ "execution_count": 242,
"metadata": {},
"output_type": "execute_result"
}
@@ -11326,7 +11743,7 @@
},
{
"cell_type": "code",
- "execution_count": 236,
+ "execution_count": 243,
"metadata": {},
"outputs": [
{
@@ -11335,7 +11752,7 @@
"0.374757281553398"
]
},
- "execution_count": 236,
+ "execution_count": 243,
"metadata": {},
"output_type": "execute_result"
}
@@ -11346,14 +11763,14 @@
},
{
"cell_type": "code",
- "execution_count": 237,
+ "execution_count": 244,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.7-py3.5.egg\\pycm\\pycm_obj.py:824: RuntimeWarning: The weight format is wrong, the result is for unweighted alpha.\n"
+ "C:\\Users\\Sepkjaer\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pycm-3.8-py3.5.egg\\pycm\\pycm_obj.py:861: RuntimeWarning: The weight format is wrong, the result is for unweighted alpha.\n"
]
},
{
@@ -11362,7 +11779,7 @@
"0.3715846994535519"
]
},
- "execution_count": 237,
+ "execution_count": 244,
"metadata": {},
"output_type": "execute_result"
}
@@ -11466,7 +11883,7 @@
},
{
"cell_type": "code",
- "execution_count": 238,
+ "execution_count": 245,
"metadata": {},
"outputs": [
{
@@ -11475,7 +11892,7 @@
"0.38540577344968524"
]
},
- "execution_count": 238,
+ "execution_count": 245,
"metadata": {},
"output_type": "execute_result"
}
@@ -11486,7 +11903,7 @@
},
{
"cell_type": "code",
- "execution_count": 239,
+ "execution_count": 246,
"metadata": {},
"outputs": [
{
@@ -11495,7 +11912,7 @@
"0.38545857383594895"
]
},
- "execution_count": 239,
+ "execution_count": 246,
"metadata": {},
"output_type": "execute_result"
}
@@ -11574,7 +11991,7 @@
},
{
"cell_type": "code",
- "execution_count": 240,
+ "execution_count": 247,
"metadata": {},
"outputs": [
{
@@ -11583,7 +12000,7 @@
"0.03749999999999999"
]
},
- "execution_count": 240,
+ "execution_count": 247,
"metadata": {},
"output_type": "execute_result"
}
@@ -11595,7 +12012,7 @@
},
{
"cell_type": "code",
- "execution_count": 241,
+ "execution_count": 248,
"metadata": {},
"outputs": [
{
@@ -11604,7 +12021,7 @@
"0.6875"
]
},
- "execution_count": 241,
+ "execution_count": 248,
"metadata": {},
"output_type": "execute_result"
}
@@ -11684,7 +12101,7 @@
},
{
"cell_type": "code",
- "execution_count": 242,
+ "execution_count": 249,
"metadata": {},
"outputs": [
{
@@ -11761,6 +12178,10 @@
"SOA4(Cicchetti) Poor\n",
"SOA5(Cramer) Relatively Strong\n",
"SOA6(Matthews) Weak\n",
+ "SOA7(Lambda A) Moderate\n",
+ "SOA8(Lambda B) Very Weak\n",
+ "SOA9(Krippendorff Alpha) Low\n",
+ "SOA10(Pearson C) Strong\n",
"Scott PI 0.34426\n",
"Standard Error 0.14232\n",
"TNR Macro 0.79048\n",
@@ -11852,7 +12273,7 @@
},
{
"cell_type": "code",
- "execution_count": 243,
+ "execution_count": 250,
"metadata": {},
"outputs": [
{
@@ -11877,7 +12298,7 @@
},
{
"cell_type": "code",
- "execution_count": 244,
+ "execution_count": 251,
"metadata": {},
"outputs": [
{
@@ -11888,7 +12309,7 @@
" 'L3': {'L1': 0, 'L2': 2, 'L3': 3}}"
]
},
- "execution_count": 244,
+ "execution_count": 251,
"metadata": {},
"output_type": "execute_result"
}
@@ -11899,7 +12320,7 @@
},
{
"cell_type": "code",
- "execution_count": 245,
+ "execution_count": 252,
"metadata": {},
"outputs": [
{
@@ -11922,7 +12343,7 @@
},
{
"cell_type": "code",
- "execution_count": 246,
+ "execution_count": 253,
"metadata": {},
"outputs": [],
"source": [
@@ -11931,7 +12352,7 @@
},
{
"cell_type": "code",
- "execution_count": 247,
+ "execution_count": 254,
"metadata": {},
"outputs": [
{
@@ -12004,7 +12425,7 @@
},
{
"cell_type": "code",
- "execution_count": 248,
+ "execution_count": 255,
"metadata": {},
"outputs": [
{
@@ -12029,7 +12450,7 @@
},
{
"cell_type": "code",
- "execution_count": 249,
+ "execution_count": 256,
"metadata": {},
"outputs": [
{
@@ -12040,7 +12461,7 @@
" 'L3': {'L1': 0.0, 'L2': 0.4, 'L3': 0.6}}"
]
},
- "execution_count": 249,
+ "execution_count": 256,
"metadata": {},
"output_type": "execute_result"
}
@@ -12051,7 +12472,7 @@
},
{
"cell_type": "code",
- "execution_count": 250,
+ "execution_count": 257,
"metadata": {},
"outputs": [
{
@@ -12074,7 +12495,7 @@
},
{
"cell_type": "code",
- "execution_count": 251,
+ "execution_count": 258,
"metadata": {},
"outputs": [
{
@@ -12147,7 +12568,7 @@
},
{
"cell_type": "code",
- "execution_count": 252,
+ "execution_count": 259,
"metadata": {},
"outputs": [
{
@@ -12212,6 +12633,10 @@
"SOA4(Cicchetti) Poor\n",
"SOA5(Cramer) Relatively Strong\n",
"SOA6(Matthews) Weak\n",
+ "SOA7(Lambda A) Moderate\n",
+ "SOA8(Lambda B) Very Weak\n",
+ "SOA9(Krippendorff Alpha) Low\n",
+ "SOA10(Pearson C) Strong\n",
"Scott PI 0.34426\n",
"Standard Error 0.14232\n",
"TNR Macro 0.79048\n",
@@ -12296,7 +12721,7 @@
},
{
"cell_type": "code",
- "execution_count": 253,
+ "execution_count": 260,
"metadata": {},
"outputs": [
{
@@ -12323,7 +12748,7 @@
},
{
"cell_type": "code",
- "execution_count": 254,
+ "execution_count": 261,
"metadata": {},
"outputs": [
{
@@ -12350,7 +12775,7 @@
},
{
"cell_type": "code",
- "execution_count": 255,
+ "execution_count": 262,
"metadata": {},
"outputs": [
{
@@ -12458,7 +12883,7 @@
},
{
"cell_type": "code",
- "execution_count": 256,
+ "execution_count": 263,
"metadata": {},
"outputs": [
{
@@ -12468,8 +12893,8 @@
"Best : cm2\n",
"\n",
"Rank Name Class-Score Overall-Score\n",
- "1 cm2 0.50278 0.425\n",
- "2 cm3 0.33611 0.33056\n",
+ "1 cm2 0.50278 0.58095\n",
+ "2 cm3 0.33611 0.52857\n",
"\n"
]
}
@@ -12480,7 +12905,7 @@
},
{
"cell_type": "code",
- "execution_count": 257,
+ "execution_count": 264,
"metadata": {},
"outputs": [
{
@@ -12490,8 +12915,8 @@
"Best : cm2\n",
"\n",
"Rank Name Class-Score Overall-Score\n",
- "1 cm2 0.50278 0.425\n",
- "2 cm3 0.33611 0.33056\n",
+ "1 cm2 0.50278 0.58095\n",
+ "2 cm3 0.33611 0.52857\n",
"\n"
]
}
@@ -12509,7 +12934,7 @@
},
{
"cell_type": "code",
- "execution_count": 258,
+ "execution_count": 265,
"metadata": {},
"outputs": [],
"source": [
@@ -12527,7 +12952,7 @@
},
{
"cell_type": "code",
- "execution_count": 259,
+ "execution_count": 266,
"metadata": {},
"outputs": [
{
@@ -12537,7 +12962,7 @@
" 'Status': True}"
]
},
- "execution_count": 259,
+ "execution_count": 266,
"metadata": {},
"output_type": "execute_result"
}
@@ -12555,7 +12980,7 @@
},
{
"cell_type": "code",
- "execution_count": 260,
+ "execution_count": 267,
"metadata": {},
"outputs": [
{
@@ -12565,7 +12990,7 @@
" 'Status': True}"
]
},
- "execution_count": 260,
+ "execution_count": 267,
"metadata": {},
"output_type": "execute_result"
}
@@ -12583,7 +13008,7 @@
},
{
"cell_type": "code",
- "execution_count": 261,
+ "execution_count": 268,
"metadata": {},
"outputs": [
{
@@ -12593,7 +13018,7 @@
" 'Status': True}"
]
},
- "execution_count": 261,
+ "execution_count": 268,
"metadata": {},
"output_type": "execute_result"
}
@@ -12611,7 +13036,7 @@
},
{
"cell_type": "code",
- "execution_count": 262,
+ "execution_count": 269,
"metadata": {},
"outputs": [
{
@@ -12621,7 +13046,7 @@
" 'Status': True}"
]
},
- "execution_count": 262,
+ "execution_count": 269,
"metadata": {},
"output_type": "execute_result"
}
@@ -12639,7 +13064,7 @@
},
{
"cell_type": "code",
- "execution_count": 263,
+ "execution_count": 270,
"metadata": {},
"outputs": [
{
@@ -12649,7 +13074,7 @@
" 'Status': True}"
]
},
- "execution_count": 263,
+ "execution_count": 270,
"metadata": {},
"output_type": "execute_result"
}
@@ -12667,7 +13092,7 @@
},
{
"cell_type": "code",
- "execution_count": 264,
+ "execution_count": 271,
"metadata": {},
"outputs": [
{
@@ -12677,7 +13102,7 @@
" 'Status': False}"
]
},
- "execution_count": 264,
+ "execution_count": 271,
"metadata": {},
"output_type": "execute_result"
}
@@ -12760,7 +13185,7 @@
},
{
"cell_type": "code",
- "execution_count": 265,
+ "execution_count": 272,
"metadata": {},
"outputs": [
{
@@ -12770,7 +13195,7 @@
" 'Status': True}"
]
},
- "execution_count": 265,
+ "execution_count": 272,
"metadata": {},
"output_type": "execute_result"
}
@@ -12788,7 +13213,7 @@
},
{
"cell_type": "code",
- "execution_count": 266,
+ "execution_count": 273,
"metadata": {},
"outputs": [
{
@@ -12798,7 +13223,7 @@
" 'Status': True}"
]
},
- "execution_count": 266,
+ "execution_count": 273,
"metadata": {},
"output_type": "execute_result"
}
@@ -12816,7 +13241,7 @@
},
{
"cell_type": "code",
- "execution_count": 267,
+ "execution_count": 274,
"metadata": {},
"outputs": [
{
@@ -12826,7 +13251,7 @@
" 'Status': True}"
]
},
- "execution_count": 267,
+ "execution_count": 274,
"metadata": {},
"output_type": "execute_result"
}
@@ -12844,7 +13269,7 @@
},
{
"cell_type": "code",
- "execution_count": 268,
+ "execution_count": 275,
"metadata": {},
"outputs": [
{
@@ -12854,7 +13279,7 @@
" 'Status': True}"
]
},
- "execution_count": 268,
+ "execution_count": 275,
"metadata": {},
"output_type": "execute_result"
}
@@ -12872,7 +13297,7 @@
},
{
"cell_type": "code",
- "execution_count": 269,
+ "execution_count": 276,
"metadata": {},
"outputs": [
{
@@ -12882,7 +13307,7 @@
" 'Status': True}"
]
},
- "execution_count": 269,
+ "execution_count": 276,
"metadata": {},
"output_type": "execute_result"
}
@@ -12900,7 +13325,7 @@
},
{
"cell_type": "code",
- "execution_count": 270,
+ "execution_count": 277,
"metadata": {},
"outputs": [
{
@@ -12910,7 +13335,7 @@
" 'Status': True}"
]
},
- "execution_count": 270,
+ "execution_count": 277,
"metadata": {},
"output_type": "execute_result"
}
@@ -12928,7 +13353,7 @@
},
{
"cell_type": "code",
- "execution_count": 271,
+ "execution_count": 278,
"metadata": {},
"outputs": [
{
@@ -12938,7 +13363,7 @@
" 'Status': True}"
]
},
- "execution_count": 271,
+ "execution_count": 278,
"metadata": {},
"output_type": "execute_result"
}
@@ -12956,7 +13381,7 @@
},
{
"cell_type": "code",
- "execution_count": 272,
+ "execution_count": 279,
"metadata": {},
"outputs": [
{
@@ -12966,7 +13391,7 @@
" 'Status': False}"
]
},
- "execution_count": 272,
+ "execution_count": 279,
"metadata": {},
"output_type": "execute_result"
}
@@ -13079,7 +13504,7 @@
},
{
"cell_type": "code",
- "execution_count": 273,
+ "execution_count": 280,
"metadata": {},
"outputs": [
{
@@ -13089,7 +13514,7 @@
" 'Status': True}"
]
},
- "execution_count": 273,
+ "execution_count": 280,
"metadata": {},
"output_type": "execute_result"
}
@@ -13109,7 +13534,7 @@
},
{
"cell_type": "code",
- "execution_count": 274,
+ "execution_count": 281,
"metadata": {},
"outputs": [
{
@@ -13119,7 +13544,7 @@
" 'Status': True}"
]
},
- "execution_count": 274,
+ "execution_count": 281,
"metadata": {},
"output_type": "execute_result"
}
@@ -13139,7 +13564,7 @@
},
{
"cell_type": "code",
- "execution_count": 275,
+ "execution_count": 282,
"metadata": {},
"outputs": [
{
@@ -13149,7 +13574,7 @@
" 'Status': True}"
]
},
- "execution_count": 275,
+ "execution_count": 282,
"metadata": {},
"output_type": "execute_result"
}
@@ -13169,7 +13594,7 @@
},
{
"cell_type": "code",
- "execution_count": 276,
+ "execution_count": 283,
"metadata": {},
"outputs": [
{
@@ -13179,7 +13604,7 @@
" 'Status': True}"
]
},
- "execution_count": 276,
+ "execution_count": 283,
"metadata": {},
"output_type": "execute_result"
}
@@ -13199,7 +13624,7 @@
},
{
"cell_type": "code",
- "execution_count": 277,
+ "execution_count": 284,
"metadata": {},
"outputs": [
{
@@ -13209,7 +13634,7 @@
" 'Status': True}"
]
},
- "execution_count": 277,
+ "execution_count": 284,
"metadata": {},
"output_type": "execute_result"
}
@@ -13229,7 +13654,7 @@
},
{
"cell_type": "code",
- "execution_count": 278,
+ "execution_count": 285,
"metadata": {},
"outputs": [
{
@@ -13239,7 +13664,7 @@
" 'Status': True}"
]
},
- "execution_count": 278,
+ "execution_count": 285,
"metadata": {},
"output_type": "execute_result"
}
@@ -13257,7 +13682,7 @@
},
{
"cell_type": "code",
- "execution_count": 279,
+ "execution_count": 286,
"metadata": {},
"outputs": [
{
@@ -13267,7 +13692,7 @@
" 'Status': False}"
]
},
- "execution_count": 279,
+ "execution_count": 286,
"metadata": {},
"output_type": "execute_result"
}
@@ -13360,7 +13785,7 @@
},
{
"cell_type": "code",
- "execution_count": 280,
+ "execution_count": 287,
"metadata": {},
"outputs": [
{
@@ -13370,7 +13795,7 @@
" 'Status': True}"
]
},
- "execution_count": 280,
+ "execution_count": 287,
"metadata": {},
"output_type": "execute_result"
}
@@ -13388,7 +13813,7 @@
},
{
"cell_type": "code",
- "execution_count": 281,
+ "execution_count": 288,
"metadata": {},
"outputs": [
{
@@ -13398,7 +13823,7 @@
" 'Status': True}"
]
},
- "execution_count": 281,
+ "execution_count": 288,
"metadata": {},
"output_type": "execute_result"
}
@@ -13416,7 +13841,7 @@
},
{
"cell_type": "code",
- "execution_count": 282,
+ "execution_count": 289,
"metadata": {},
"outputs": [
{
@@ -13426,7 +13851,7 @@
" 'Status': True}"
]
},
- "execution_count": 282,
+ "execution_count": 289,
"metadata": {},
"output_type": "execute_result"
}
@@ -13444,7 +13869,7 @@
},
{
"cell_type": "code",
- "execution_count": 283,
+ "execution_count": 290,
"metadata": {},
"outputs": [
{
@@ -13454,7 +13879,7 @@
" 'Status': False}"
]
},
- "execution_count": 283,
+ "execution_count": 290,
"metadata": {},
"output_type": "execute_result"
}
@@ -13516,7 +13941,7 @@
},
{
"cell_type": "code",
- "execution_count": 284,
+ "execution_count": 291,
"metadata": {},
"outputs": [
{
@@ -13526,7 +13951,7 @@
" 'Status': True}"
]
},
- "execution_count": 284,
+ "execution_count": 291,
"metadata": {},
"output_type": "execute_result"
}
@@ -13544,7 +13969,7 @@
},
{
"cell_type": "code",
- "execution_count": 285,
+ "execution_count": 292,
"metadata": {},
"outputs": [
{
@@ -13554,7 +13979,7 @@
" 'Status': False}"
]
},
- "execution_count": 285,
+ "execution_count": 292,
"metadata": {},
"output_type": "execute_result"
}
@@ -13596,7 +14021,7 @@
},
{
"cell_type": "code",
- "execution_count": 286,
+ "execution_count": 293,
"metadata": {},
"outputs": [
{
@@ -13616,7 +14041,7 @@
},
{
"cell_type": "code",
- "execution_count": 287,
+ "execution_count": 294,
"metadata": {
"scrolled": true
},
@@ -13638,7 +14063,7 @@
},
{
"cell_type": "code",
- "execution_count": 288,
+ "execution_count": 295,
"metadata": {},
"outputs": [
{
@@ -13658,7 +14083,7 @@
},
{
"cell_type": "code",
- "execution_count": 289,
+ "execution_count": 296,
"metadata": {},
"outputs": [
{
@@ -13678,7 +14103,7 @@
},
{
"cell_type": "code",
- "execution_count": 290,
+ "execution_count": 297,
"metadata": {},
"outputs": [
{
@@ -13698,7 +14123,7 @@
},
{
"cell_type": "code",
- "execution_count": 291,
+ "execution_count": 298,
"metadata": {},
"outputs": [
{
@@ -13718,7 +14143,7 @@
},
{
"cell_type": "code",
- "execution_count": 292,
+ "execution_count": 299,
"metadata": {},
"outputs": [
{
@@ -13738,7 +14163,7 @@
},
{
"cell_type": "code",
- "execution_count": 293,
+ "execution_count": 300,
"metadata": {},
"outputs": [
{
@@ -13758,7 +14183,7 @@
},
{
"cell_type": "code",
- "execution_count": 294,
+ "execution_count": 301,
"metadata": {},
"outputs": [
{
@@ -13778,7 +14203,7 @@
},
{
"cell_type": "code",
- "execution_count": 295,
+ "execution_count": 302,
"metadata": {},
"outputs": [
{
@@ -13798,7 +14223,7 @@
},
{
"cell_type": "code",
- "execution_count": 296,
+ "execution_count": 303,
"metadata": {},
"outputs": [
{
@@ -13818,7 +14243,7 @@
},
{
"cell_type": "code",
- "execution_count": 297,
+ "execution_count": 304,
"metadata": {},
"outputs": [
{
@@ -13838,7 +14263,7 @@
},
{
"cell_type": "code",
- "execution_count": 298,
+ "execution_count": 305,
"metadata": {},
"outputs": [
{
@@ -13858,7 +14283,7 @@
},
{
"cell_type": "code",
- "execution_count": 299,
+ "execution_count": 306,
"metadata": {},
"outputs": [
{
@@ -13878,7 +14303,7 @@
},
{
"cell_type": "code",
- "execution_count": 300,
+ "execution_count": 307,
"metadata": {},
"outputs": [
{
@@ -13899,7 +14324,7 @@
},
{
"cell_type": "code",
- "execution_count": 301,
+ "execution_count": 308,
"metadata": {},
"outputs": [
{
@@ -13919,7 +14344,7 @@
},
{
"cell_type": "code",
- "execution_count": 302,
+ "execution_count": 309,
"metadata": {},
"outputs": [
{
@@ -13939,7 +14364,7 @@
},
{
"cell_type": "code",
- "execution_count": 303,
+ "execution_count": 310,
"metadata": {},
"outputs": [
{
@@ -13959,7 +14384,7 @@
},
{
"cell_type": "code",
- "execution_count": 304,
+ "execution_count": 311,
"metadata": {},
"outputs": [
{
@@ -13979,7 +14404,7 @@
},
{
"cell_type": "code",
- "execution_count": 305,
+ "execution_count": 312,
"metadata": {},
"outputs": [
{
@@ -13999,7 +14424,7 @@
},
{
"cell_type": "code",
- "execution_count": 306,
+ "execution_count": 313,
"metadata": {},
"outputs": [
{
@@ -14019,7 +14444,7 @@
},
{
"cell_type": "code",
- "execution_count": 307,
+ "execution_count": 314,
"metadata": {},
"outputs": [
{
@@ -14039,7 +14464,7 @@
},
{
"cell_type": "code",
- "execution_count": 308,
+ "execution_count": 315,
"metadata": {},
"outputs": [
{
@@ -14059,7 +14484,7 @@
},
{
"cell_type": "code",
- "execution_count": 309,
+ "execution_count": 316,
"metadata": {},
"outputs": [
{
@@ -14079,7 +14504,7 @@
},
{
"cell_type": "code",
- "execution_count": 310,
+ "execution_count": 317,
"metadata": {},
"outputs": [
{
@@ -14099,7 +14524,7 @@
},
{
"cell_type": "code",
- "execution_count": 311,
+ "execution_count": 318,
"metadata": {},
"outputs": [
{
@@ -14119,7 +14544,7 @@
},
{
"cell_type": "code",
- "execution_count": 312,
+ "execution_count": 319,
"metadata": {},
"outputs": [
{
@@ -14139,7 +14564,7 @@
},
{
"cell_type": "code",
- "execution_count": 313,
+ "execution_count": 320,
"metadata": {},
"outputs": [
{
@@ -14159,7 +14584,7 @@
},
{
"cell_type": "code",
- "execution_count": 314,
+ "execution_count": 321,
"metadata": {},
"outputs": [
{
@@ -14179,7 +14604,7 @@
},
{
"cell_type": "code",
- "execution_count": 315,
+ "execution_count": 322,
"metadata": {},
"outputs": [
{
@@ -14199,7 +14624,7 @@
},
{
"cell_type": "code",
- "execution_count": 316,
+ "execution_count": 323,
"metadata": {},
"outputs": [
{
@@ -14219,7 +14644,7 @@
},
{
"cell_type": "code",
- "execution_count": 317,
+ "execution_count": 324,
"metadata": {},
"outputs": [
{
@@ -14239,7 +14664,7 @@
},
{
"cell_type": "code",
- "execution_count": 318,
+ "execution_count": 325,
"metadata": {},
"outputs": [
{
@@ -14259,7 +14684,7 @@
},
{
"cell_type": "code",
- "execution_count": 319,
+ "execution_count": 326,
"metadata": {},
"outputs": [
{
@@ -14279,7 +14704,7 @@
},
{
"cell_type": "code",
- "execution_count": 320,
+ "execution_count": 327,
"metadata": {},
"outputs": [
{
@@ -14299,7 +14724,7 @@
},
{
"cell_type": "code",
- "execution_count": 321,
+ "execution_count": 328,
"metadata": {},
"outputs": [
{
@@ -14605,7 +15030,13 @@
"\n",
"82- J. Braun-Blanquet, \"Plant sociology. The study of plant communities,\" Plant sociology. The study of plant communities. First ed., 1932.
\n",
"\n",
- "83- C. C. Little, \"Abydos Documentation,\" 2020.
\n"
+ "83- C. C. Little, \"Abydos Documentation,\" 2020.
\n",
+ "\n",
+ "84- K. Villela, A. Silva, T. Vale, and E. S. de Almeida, \"A survey on software variability management approaches,\" in Proceedings of the 18th International Software Product Line Conference-Volume 1, 2014, pp. 147-156.
\n",
+ " \n",
+ "85- J. R. Saura, A. Reyes-Menendez, and P. Palos-Sanchez, \"Are black Friday deals worth it? Mining Twitter users’ sentiment and behavior response,\" Journal of Open Innovation: Technology, Market, and Complexity, vol. 5, no. 3, p. 58, 2019.
\n",
+ "\n",
+ "86- P. Schubert and U. Leimstoll, \"Importance and use of information technology in small and medium‐sized companies,\" Electronic Markets, vol. 17, no. 1, pp. 38-55, 2007.
\n"
]
}
],
diff --git a/Document/Document_Files/cm1.html b/Document/Document_Files/cm1.html
index d0bdbf2d..cb79547e 100644
--- a/Document/Document_Files/cm1.html
+++ b/Document/Document_Files/cm1.html
@@ -284,6 +284,22 @@ Overall Statistics :
Weak |
+SOA7(Lambda A) |
+Moderate |
+
+
+SOA8(Lambda B) |
+Very Weak |
+
+
+SOA9(Krippendorff Alpha) |
+Low |
+
+
+SOA10(Pearson C) |
+Strong |
+
+
Scott PI |
0.34426 |
@@ -763,6 +779,6 @@ Class Statistics :
Similarity index |
-Generated By PyCM Version 3.7
+Generated By PyCM Version 3.8