ABalytics 3.0.4__tar.gz → 3.0.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abalytics
3
- Version: 3.0.4
3
+ Version: 3.0.6
4
4
  Summary: Advanced A/B Testing Statistical Analytics
5
5
  Author: Janis Berneker
6
6
  License: LICENSE
@@ -242,7 +242,7 @@ def get_games_howell_posthoc_results(
242
242
  key=lambda x: x["mean"],
243
243
  reverse=True,
244
244
  )
245
- result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.2f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.2f})"
245
+ result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.3f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.3f})"
246
246
  posthoc_results.add_result(
247
247
  "Games-Howell", result_pretty_text, row["pval"], groups_info
248
248
  )
@@ -338,7 +338,7 @@ def get_tukeyhsd_posthoc_results(
338
338
  key=lambda x: x["mean"],
339
339
  reverse=True,
340
340
  )
341
- result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.2f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.2f})"
341
+ result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.3f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.3f})"
342
342
  posthoc_results.add_result(
343
343
  "Tukey HSD", result_pretty_text, row["p-adj"], groups_info
344
344
  )
@@ -398,7 +398,7 @@ def get_dunn_posthoc_results(
398
398
  reverse=True,
399
399
  )
400
400
 
401
- result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.2f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.2f})"
401
+ result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.3f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.3f})"
402
402
  posthoc_results.add_result(
403
403
  "Dunn", result_pretty_text, p_value, groups_info
404
404
  )
@@ -445,7 +445,7 @@ def get_mcnemar_results(
445
445
  # Sort groups by mean for consistent presentation
446
446
  groups_info.sort(key=lambda x: x["mean"], reverse=True)
447
447
  # Format the result text
448
- result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.2f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.2f})"
448
+ result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.3f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.3f})"
449
449
  # Add the result to posthoc results
450
450
  posthoc_results.add_result(
451
451
  "McNemar", result_pretty_text, p_value, groups_info
@@ -528,7 +528,7 @@ def get_repeated_measures_anova_posthoc_results(
528
528
  ]
529
529
  # Sort groups by mean for consistent presentation
530
530
  groups_info.sort(key=lambda x: x["mean"], reverse=True)
531
- result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.2f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.2f})"
531
+ result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.3f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.3f})"
532
532
  posthoc_results.add_result(
533
533
  "Repeated Measures ANOVA",
534
534
  result_pretty_text,
@@ -576,7 +576,7 @@ def get_wilcoxon_results(
576
576
  ]
577
577
  groups_info.sort(key=lambda x: x["mean"], reverse=True)
578
578
 
579
- result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.2f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.2f})"
579
+ result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.3f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.3f})"
580
580
  posthoc_results.add_result("Wilcoxon", result_pretty_text, p_value, groups_info)
581
581
 
582
582
  return p_value, posthoc_results
@@ -633,7 +633,7 @@ def get_nemenyi_results(
633
633
  ]
634
634
  groups_info.sort(key=lambda x: x["mean"], reverse=True)
635
635
 
636
- result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.2f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.2f})"
636
+ result_pretty_text = f"{groups_info[0]['name']} ({groups_info[0]['mean']:.3f}) > {groups_info[1]['name']} ({groups_info[1]['mean']:.3f})"
637
637
  posthoc_results.add_result(
638
638
  "Nemenyi", result_pretty_text, posthoc_p_value, groups_info
639
639
  )
@@ -64,7 +64,7 @@ def format_results_as_table(
64
64
  row = identifiers_list[idx].copy()
65
65
  row["n"] = sample_size
66
66
  row["Result"] = result.result_pretty_text
67
- row["p-value"] = result.p_value # round(result.p_value,3)
67
+ row["p-value"] = result.p_value
68
68
  if show_details:
69
69
  row["Analysis method"] = result.analysis_method
70
70
  if info:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abalytics
3
- Version: 3.0.4
3
+ Version: 3.0.6
4
4
  Summary: Advanced A/B Testing Statistical Analytics
5
5
  Author: Janis Berneker
6
6
  License: LICENSE
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='abalytics',
5
- version='3.0.4',
5
+ version='3.0.6',
6
6
  author='Janis Berneker',
7
7
  packages=find_packages(),
8
8
  license='LICENSE',
File without changes
File without changes
File without changes