Skip to content

Commit

Permalink
shortening names of other classes
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrizzo committed Sep 17, 2018
1 parent 68399ae commit 8b08252
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .gitignore
@@ -1,3 +1,6 @@

.vscode

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -60,4 +63,4 @@ target/
*.ipynb

# PyCharm files
.idea
.idea
4 changes: 1 addition & 3 deletions Makefile
@@ -1,9 +1,7 @@
PACKNAME = catsim
all: install clean tests
clean:
rm -rf $(PACKNAME).egg-info dist build
find -name *.pyc -delete
find -name __pycache__ -delete
git clean -Xdf
install:
pip install .
tests:
Expand Down
2 changes: 1 addition & 1 deletion catsim/__init__.py
@@ -1 +1 @@
__version__ = '0.14.0'
__version__ = '0.15.0'
11 changes: 5 additions & 6 deletions catsim/selection.py
Expand Up @@ -848,11 +848,10 @@ def select(
return numpy.random.choice(list(organized_items)[:self._bin_size])


class IntervalIntegrationSelector(Selector):
"""Implementation of an interval integration selector in which, at every step of
the test, the item that maximizes the information function integral at a
predetermined ``interval`` :math:`\\delta` above and below the current
:math:`\\hat\\theta` is chosen.
class IntervalInfoSelector(Selector):
"""A selector in which, at every step of the test, the item that maximizes
the integral of the information function at a predetermined ``interval``
:math:`\\delta` above and below the current :math:`\\hat\\theta` is chosen.
.. math:: argmax_{i \\in I} \\int_{\\hat\\theta - \\delta}^{\\hat\\theta - \\delta}I_i(\\hat\\theta)
Expand All @@ -861,7 +860,7 @@ class IntervalIntegrationSelector(Selector):
"""

def __str__(self):
return 'Interval Integration Selector'
return 'Interval Information Selector'

def __init__(self, interval: float = None):
super().__init__()
Expand Down

0 comments on commit 8b08252

Please sign in to comment.