mlquantify 0.0.11.1__tar.gz → 0.0.11.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/PKG-INFO +9 -1
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/plots/protocol_plot.py +38 -2
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify.egg-info/PKG-INFO +9 -1
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/setup.py +1 -1
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/README.md +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/base.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/classification/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/classification/pwkclf.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/ae.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/bias.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/kld.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/mse.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/nae.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/nkld.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/nrae.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/rae.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/measures/se.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/protocol/_Protocol.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/protocol/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/protocol/app.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/evaluation/protocol/npp.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/_ThreholdOptimization.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/acc.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/max.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/ms.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/ms2.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/pacc.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/t50.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/x.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/cc.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/emq.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/fm.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/gac.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/gpac.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/_MixtureModel.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/dys.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/dys_syn.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/hdy.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/smm.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/sord.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/pcc.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/pwk.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/meta/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/meta/ensemble.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/non_aggregative/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/non_aggregative/hdx.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/model_selection.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/plots/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/plots/distribution_plot.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/convert_col_to_array.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/generate_artificial_indexes.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/get_real_prev.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/load_quantifier.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/make_prevs.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/normalize.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/parallel.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/round_protocol_df.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/__init__.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/distances.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/getHist.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/get_scores.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/moss.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/ternary_search.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/tprfpr.py +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify.egg-info/SOURCES.txt +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify.egg-info/dependency_links.txt +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify.egg-info/requires.txt +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify.egg-info/top_level.txt +0 -0
- {mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mlquantify
|
|
3
|
-
Version: 0.0.11.
|
|
3
|
+
Version: 0.0.11.2
|
|
4
4
|
Summary: Quantification Library
|
|
5
5
|
Home-page: https://github.com/luizfernandolj/QuantifyML/tree/master
|
|
6
6
|
Maintainer: Luiz Fernando Luth Junior
|
|
@@ -12,6 +12,14 @@ Classifier: Operating System :: Unix
|
|
|
12
12
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
13
13
|
Classifier: Operating System :: Microsoft :: Windows
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: scikit-learn
|
|
16
|
+
Requires-Dist: numpy
|
|
17
|
+
Requires-Dist: scipy
|
|
18
|
+
Requires-Dist: joblib
|
|
19
|
+
Requires-Dist: tqdm
|
|
20
|
+
Requires-Dist: pandas
|
|
21
|
+
Requires-Dist: xlrd
|
|
22
|
+
Requires-Dist: matplotlib
|
|
15
23
|
|
|
16
24
|
<h1 align="center">MLQuantify</h1>
|
|
17
25
|
<h4 align="center">A Python Package for Quantification</h4>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import matplotlib.pyplot as plt
|
|
2
|
+
import matplotlib.colors as mcolors
|
|
2
3
|
import matplotlib.patches as mpatches
|
|
3
4
|
import pandas as pd
|
|
4
5
|
from typing import List, Optional, Dict, Any, Union
|
|
5
6
|
from pathlib import Path
|
|
6
7
|
|
|
7
8
|
plt.rcParams.update({
|
|
9
|
+
'lines.markersize': 6,
|
|
8
10
|
'axes.facecolor': "#F8F8F8",
|
|
9
11
|
'figure.facecolor': "#F8F8F8",
|
|
10
12
|
'font.family': 'sans-serif',
|
|
@@ -41,6 +43,28 @@ COLORS = [
|
|
|
41
43
|
|
|
42
44
|
MARKERS = ["o", "s", "^", "D", "p", "*", "+", "x", "H", "1", "2", "3", "4", "|", "_"]
|
|
43
45
|
|
|
46
|
+
def adjust_color_saturation(color: str, saturation_factor: float = 5) -> str:
|
|
47
|
+
"""
|
|
48
|
+
Adjusts the saturation of a given color.
|
|
49
|
+
|
|
50
|
+
Parameters:
|
|
51
|
+
- color (str): The original color in hexadecimal format.
|
|
52
|
+
- saturation_factor (float): The factor by which to adjust the saturation.
|
|
53
|
+
Values > 1 will increase saturation,
|
|
54
|
+
values < 1 will decrease it. Default is 1.5.
|
|
55
|
+
|
|
56
|
+
Returns:
|
|
57
|
+
- str: The color with adjusted saturation in hexadecimal format.
|
|
58
|
+
"""
|
|
59
|
+
# Convert color to HSV (Hue, Saturation, Value)
|
|
60
|
+
h, s, v = mcolors.rgb_to_hsv(mcolors.to_rgb(color))
|
|
61
|
+
|
|
62
|
+
# Adjust saturation
|
|
63
|
+
s = min(1, s * saturation_factor)
|
|
64
|
+
|
|
65
|
+
# Convert back to RGB and then to hex
|
|
66
|
+
return mcolors.to_hex(mcolors.hsv_to_rgb((h, s, v)))
|
|
67
|
+
|
|
44
68
|
|
|
45
69
|
|
|
46
70
|
def protocol_boxplot(
|
|
@@ -100,6 +124,10 @@ def protocol_boxplot(
|
|
|
100
124
|
|
|
101
125
|
|
|
102
126
|
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
103
131
|
def protocol_lineplot(
|
|
104
132
|
table_protocol: pd.DataFrame,
|
|
105
133
|
methods: Union[List[str], str, None],
|
|
@@ -135,10 +163,16 @@ def protocol_lineplot(
|
|
|
135
163
|
|
|
136
164
|
# Create plot with custom figsize
|
|
137
165
|
fig, ax = plt.subplots(figsize=figsize)
|
|
138
|
-
for i, (method, marker) in enumerate(zip(methods, MARKERS[:len(methods)])):
|
|
166
|
+
for i, (method, marker) in enumerate(zip(methods, MARKERS[:len(methods)+1])):
|
|
139
167
|
method_data = table[table['QUANTIFIER'] == method]
|
|
140
168
|
y_data = real if y == "ALPHA" else method_data[y]
|
|
141
|
-
|
|
169
|
+
color = adjust_color_saturation(COLORS[i % len(COLORS)]) # Aumenta a saturação das cores
|
|
170
|
+
ax.plot(method_data[x],
|
|
171
|
+
y_data, color=color,
|
|
172
|
+
marker=marker,
|
|
173
|
+
label=method,
|
|
174
|
+
alpha=1.0,
|
|
175
|
+
**plot_params)
|
|
142
176
|
|
|
143
177
|
# Add legend
|
|
144
178
|
if legend:
|
|
@@ -155,3 +189,5 @@ def protocol_lineplot(
|
|
|
155
189
|
if save_path:
|
|
156
190
|
plt.savefig(save_path, bbox_inches='tight')
|
|
157
191
|
plt.show()
|
|
192
|
+
|
|
193
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mlquantify
|
|
3
|
-
Version: 0.0.11.
|
|
3
|
+
Version: 0.0.11.2
|
|
4
4
|
Summary: Quantification Library
|
|
5
5
|
Home-page: https://github.com/luizfernandolj/QuantifyML/tree/master
|
|
6
6
|
Maintainer: Luiz Fernando Luth Junior
|
|
@@ -12,6 +12,14 @@ Classifier: Operating System :: Unix
|
|
|
12
12
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
13
13
|
Classifier: Operating System :: Microsoft :: Windows
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: scikit-learn
|
|
16
|
+
Requires-Dist: numpy
|
|
17
|
+
Requires-Dist: scipy
|
|
18
|
+
Requires-Dist: joblib
|
|
19
|
+
Requires-Dist: tqdm
|
|
20
|
+
Requires-Dist: pandas
|
|
21
|
+
Requires-Dist: xlrd
|
|
22
|
+
Requires-Dist: matplotlib
|
|
15
23
|
|
|
16
24
|
<h1 align="center">MLQuantify</h1>
|
|
17
25
|
<h4 align="center">A Python Package for Quantification</h4>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/__init__.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/acc.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/max.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/ms.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/ms2.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/pacc.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/t50.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/ThreholdOptm/x.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/__init__.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/dys.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/dys_syn.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/hdy.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/smm.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/methods/aggregative/mixtureModels/sord.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/get_real_prev.py
RENAMED
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/load_quantifier.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/general_purposes/round_protocol_df.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mlquantify-0.0.11.1 → mlquantify-0.0.11.2}/mlquantify/utils/method_purposes/ternary_search.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|