Skip to content

Commit

Permalink
v4
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilJl committed May 28, 2024
1 parent 249d31e commit ba5bf25
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion batchstats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
__all__ = ['BatchCov', 'BatchMax', 'BatchMean', 'BatchMin', 'BatchPeakToPeak', 'BatchStat', 'BatchStd', 'BatchSum',
'BatchVar', 'BatchNanMean', 'BatchNanStat', 'BatchNanSum']

__version__ = '0.3.3'
__version__ = '0.4'
26 changes: 4 additions & 22 deletions docs/source/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,8 @@
API Reference
=============

The class ``BatchStat`` is the parent class from which other classes inherit. It allows for the factorization of the ``_process_batch`` method, which removes samples containing at least one NaN and keeps track of the number of samples seen by the class up to date.
.. toctree::
:maxdepth: 1

.. autoclass:: batchstats.BatchStat

The following classes inherit from ``BatchStat``, and enable the user to compute various statistics over batch-accessed data:

.. automodule:: batchstats
:members: BatchCov, BatchMax, BatchMean, BatchMin, BatchSum, BatchVar, BatchStd, BatchPeakToPeak
:undoc-members:
:show-inheritance:


The class ``BatchNanStat`` is the parent class from which other classes that can treat NaNs inherit. It allows for the factorization of the ``_process_batch`` method, which keeps track of the number of NaNs per feature.

.. autoclass:: batchstats.BatchNanStat

The following classes inherit from ``BatchNanStat``:

.. automodule:: batchstats
:members: BatchNanMean, BatchNanSum
:undoc-members:
:show-inheritance:
:no-index:
stats
nan_stats
13 changes: 13 additions & 0 deletions docs/source/nan_stats.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
BatchNaNStat classes
====================

The class ``BatchNanStat`` is the parent class from which other classes that can treat NaNs inherit. It allows for the factorization of the ``_process_batch`` method, which keeps track of the number of NaNs per feature.

.. autoclass:: batchstats.BatchNanStat

The following classes inherit from ``BatchNanStat``:

.. automodule:: batchstats
:members: BatchNanMean, BatchNanSum
:undoc-members:
:show-inheritance:
13 changes: 13 additions & 0 deletions docs/source/stats.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
BatchStat classes
=================

The class ``BatchStat`` is the parent class from which other classes inherit. It allows for the factorization of the ``_process_batch`` method, which removes samples containing at least one NaN and keeps track of the number of samples seen by the class up to date.

.. autoclass:: batchstats.BatchStat

The following classes inherit from ``BatchStat``, and enable the user to compute various statistics over batch-accessed data:

.. automodule:: batchstats
:members: BatchCov, BatchMax, BatchMean, BatchMin, BatchSum, BatchVar, BatchStd, BatchPeakToPeak
:undoc-members:
:show-inheritance:

0 comments on commit ba5bf25

Please sign in to comment.