AutoStatLib 0.2.24__tar.gz → 0.2.26__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.
- {autostatlib-0.2.24/src/AutoStatLib.egg-info → autostatlib-0.2.26}/PKG-INFO +1 -1
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/_version.py +1 -1
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/helpers.py +15 -7
- {autostatlib-0.2.24 → autostatlib-0.2.26/src/AutoStatLib.egg-info}/PKG-INFO +1 -1
- {autostatlib-0.2.24 → autostatlib-0.2.26}/LICENSE +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/MANIFEST.in +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/README.md +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/pyproject.toml +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/requirements.txt +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/setup.cfg +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/AutoStatLib.py +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/StatPlots.py +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/__init__.py +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/__main__.py +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/normality_tests.py +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/statistical_tests.py +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib/text_formatting.py +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/SOURCES.txt +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/dependency_links.txt +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/requires.txt +0 -0
- {autostatlib-0.2.24 → autostatlib-0.2.26}/src/AutoStatLib.egg-info/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# AutoStatLib package version:
|
|
2
|
-
__version__ = "0.2.
|
|
2
|
+
__version__ = "0.2.26"
|
|
@@ -47,26 +47,34 @@ class Helpers():
|
|
|
47
47
|
|
|
48
48
|
def create_results_dict(self) -> dict:
|
|
49
49
|
|
|
50
|
+
# evaluate successfullness
|
|
51
|
+
if self.p_value != None:
|
|
52
|
+
self.successfull = True
|
|
53
|
+
else:
|
|
54
|
+
self.successfull = False
|
|
55
|
+
self.error = True
|
|
56
|
+
|
|
50
57
|
self.stars_int = self.make_stars(
|
|
51
|
-
self.p_value.item()) if self.
|
|
58
|
+
self.p_value.item()) if self.successfull else None
|
|
52
59
|
self.stars_str = self.make_stars_printed(
|
|
53
|
-
self.stars_int) if self.
|
|
60
|
+
self.stars_int) if self.successfull else ''
|
|
54
61
|
|
|
55
62
|
return {
|
|
56
|
-
'p_value': self.make_p_value_printed(self.p_value.item()) if self.
|
|
57
|
-
'Significance(p<0.05)': True if self.
|
|
63
|
+
'p_value': self.make_p_value_printed(self.p_value.item()) if self.successfull else None,
|
|
64
|
+
'Significance(p<0.05)': True if self.successfull and self.p_value.item() < 0.05 else False,
|
|
58
65
|
'Stars_Printed': self.stars_str,
|
|
59
66
|
'Test_Name': self.test_name,
|
|
60
67
|
'Groups_Compared': self.n_groups,
|
|
61
68
|
'Population_Mean': self.popmean if self.n_groups == 1 else 'N/A',
|
|
62
|
-
'Data_Normaly_Distributed': self.parametric if self.
|
|
69
|
+
'Data_Normaly_Distributed': self.parametric if self.successfull else None,
|
|
63
70
|
'Parametric_Test_Applied': True if self.test_id in self.test_ids_parametric else False,
|
|
64
|
-
'Paired_Test_Applied': self.paired if self.
|
|
71
|
+
'Paired_Test_Applied': self.paired if self.successfull else None,
|
|
65
72
|
'Tails': self.tails,
|
|
66
|
-
'p_value_exact': self.p_value.item() if self.
|
|
73
|
+
'p_value_exact': self.p_value.item() if self.successfull else None,
|
|
67
74
|
'Stars': self.stars_int,
|
|
68
75
|
# 'Stat_Value': self.test_stat.item(),
|
|
69
76
|
'Warnings': self.warnings,
|
|
77
|
+
'Successfull_Test': (self.successfull and not self.error),
|
|
70
78
|
'Groups_Name': self.groups_name,
|
|
71
79
|
'Groups_N': [len(self.data[i]) for i in range(len(self.data))],
|
|
72
80
|
'Groups_Median': [np.median(self.data[i]).item() for i in range(len(self.data))],
|
|
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
|