Skip to content

Commit

Permalink
Change directory name...
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviagyg committed Nov 24, 2023
1 parent 0549dea commit f48d25f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ customers / number of visitors) by at least 1%.
You initialize Basemath using the following Python code:

```python
import basemath as bm
import basemath_analysis as bm
bm_test = bm.BaseMathsTest(cr_A, mde, alpha, beta, seed="experiment_name")
```
The parameters are as follows:
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
[tool.poetry]
name = "basemath"
name = "basemath-analysis"
version = "0.1.0"
description = "A library for BaseMath's test, a novel Group Sequential Testing approach that enables the user to stop early."
authors = ["Data Products GYG <[email protected]>"]
license = "Apache License 2.0"
readme = "README.md"
repository = "https://github.com/getyourguide/basemath"

[project]
# Name for PYPI package
name = "basemath-analysis"

[tool.poetry.dependencies]
python = "^3.8"
numpy = "^1.14.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from basemath.basemath import AnalysisException, BaseMathsTest
from basemath_analysis.basemath import AnalysisException, BaseMathsTest


def test_experiment_success():
Expand Down Expand Up @@ -225,7 +225,7 @@ def test_guarantee_crossing_bound():
basemath = BaseMathsTest(0.3, 0.9, 0.05, 0.2, seed="test-experiment")
assert basemath.required_samples == 42
assert basemath.evaluate_experiment(0, -1, 0, 10) == 0
with patch("basemath.basemath.stats.uniform.rvs") as mock_rvs:
with patch("basemath_analysis.basemath.stats.uniform.rvs") as mock_rvs:
mock_rvs.return_value = 0.999999999
assert basemath.evaluate_experiment(-1, -10, 10, 40) == -1

Expand Down

0 comments on commit f48d25f

Please sign in to comment.