Skip to content

Commit

Permalink
Hotfix 0.1.2 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
xandaau authored Nov 16, 2022
1 parent de9f009 commit 6050398
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release Notes
=============

Version 0.1.2 (16.11.2022)
---------------------------

Hotfix for Ttest stat criterion absolute effect calculation.
Url to main image deleted from docs.

Version 0.1.1 (04.10.2022)
---------------------------

Expand Down
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. title
.. shields start
Ambrosia
========
Expand All @@ -20,8 +20,11 @@ Ambrosia
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/ambrozia.svg
:target: https://pypi.org/project/ambrozia

.. shields end
.. image:: https://github.com/MobileTeleSystems/Ambrosia/blob/main/docs/source/_static/ambrosia.png?sanitize=true

.. title
**Ambrosia** is a Python library for A/B tests design, split and effect
measurement. It provides rich set of methods for conducting full
Expand Down
2 changes: 1 addition & 1 deletion ambrozia/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
2 changes: 1 addition & 1 deletion ambrozia/tools/stat_criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_calc_effect_ttest(group_a: np.ndarray, group_b: np.ndarray, effect_type:
Calculation effect for ttest
"""
if effect_type == "absolute":
return np.mean(group_b - group_a, axis=0)
return np.mean(group_b, axis=0) - np.mean(group_a, axis=0)
elif effect_type == "relative":
return np.mean(group_b, axis=0) / np.mean(group_a, axis=0) - 1
else:
Expand Down
4 changes: 4 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.. include:: ../../README.rst
:end-before: shields end

.. include:: ../../README.rst
:start-after: title
:end-before: documentation

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Ambrozia"
version = "0.1.1"
version = "0.1.2"
description = "A Python library for working with A/B tests."
license = "Apache-2.0"
authors = [
Expand Down

0 comments on commit 6050398

Please sign in to comment.