Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tachyonicClock authored Apr 12, 2024
1 parent 8295945 commit 49ebec5
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,34 @@ invoke docs.clean
### Auto-Generated Documentation
Auto-generated documentation from the source code using Autodoc. See this
[link](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html)
for more information.
for more information. CapyMOA, for now is using Sphinx/reStructuredText style
docstrings. Rather than having type information in the docstring, we prefer to
use Python-type hints.

```
class Stream:
"""A datastream that can be learnt instance by instance."""
def __init__(
self,
moa_stream: Optional[InstanceStream] = None,
schema: Optional[Schema] = None,
CLI: Optional[str] = None,
):
"""Construct a Stream from a MOA stream object.
Usually, you will want to construct a Stream using the :func:`stream_from_file`
function.
:param moa_stream: The MOA stream object to read instances from. Is None
if the stream is created from a numpy array.
:param schema: The schema of the stream. If None, the schema is inferred
from the moa_stream.
:param CLI: Additional command line arguments to pass to the MOA stream.
:raises ValueError: If no schema is provided and no moa_stream is provided.
:raises ValueError: If command line arguments are provided without a moa_stream.
"""
```

### Juptyer Notebooks

Expand Down

0 comments on commit 49ebec5

Please sign in to comment.