semvec/pypi-packages huggingface dataset:
pydrobert-pytorch 0.3.0
"PyTorch utilities for ML, specifically speech"
License: Apache-2.0
Requires Python: >=3.6

[![Build status](https://ci.appveyor.com/api/projects/status/shj64c2ddtswndhq/branch/master?svg=true)](https://ci.appveyor.com/project/sdrobert/pydrobert-pytorch/branch/master)
[![Documentation Status](https://readthedocs.org/projects/pydrobert-pytorch/badge/?version=latest)](https://pydrobert-pytorch.readthedocs.io/en/latest/?badge=latest)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

# pydrobert-pytorch

PyTorch utilities for Machine Learning. This is an eclectic mix of utilities
that I've used in my various projects. There is a definite leaning towards
speech, specifically end-to-end ASR. The primary benefit `pydrobert-pytorch`
has over other packages is modularity: you can pick and choose the
functionality you desire without subscribing to an entire ecosystem. You can
find out more about what the package offers in the documentation links below.

**This is student-driven code, so don't expect a stable API. I'll try to use
semantic versioning, but the best way to keep functionality stable is by
pinning the version in the requirements or by forking.**

## Documentation

- [Latest](https://pydrobert-pytorch.readthedocs.io/en/latest/)
- [Stable](https://pydrobert-pytorch.readthedocs.io/en/stable/)

## Installation

`pydrobert-pytorch` is available through both Conda and PyPI.

``` bash
conda install -c sdrobert pydrobert-pytorch
pip install pydrobert-pytorch
```

## Licensing and How to Cite

Please see the [pydrobert page](https://github.com/sdrobert/pydrobert) for more
details.

Implementations of `pydrobert.torch.util.polyharmonic_spline` and
`pydrobert.torch.util.sparse_image_warp` are based off Tensorflow's codebase,
which is Apache 2.0 licensed.
pyopenfisheries 0.1.2
 PyOpenFisheries makes it even easier to access the OpenFisheries API in Python. A good usecase of this library is to gather data to plot in a Jupyter Notebook, or to collect data to run time-series analysis on.
License: Apache-2.0
Requires Python: >=3.8,<4.0
Keywords: openfisheries,fish,fish_api,plotting

PyOpenFisheries
===============

PyOpenFisheries makes it even easier to access the `OpenFisheries API`_
in Python.

A good usecase of this library is to gather data to plot in a Jupyter
Notebook, or to collect data to run time-series analysis on.


Learn more about `OpenFisheries.org`_.

.. _this-package-depends-on-requests:


`PyOpenFisheries(**kwargs)`
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Bases: ``object``

Base class for accessing the OpenFisheries API. Useful for gathering
data for plots or analysis.

Returns:

::

   instance: base OpenFisheries API wrapper

Examples:

::

   >>> open_fish_conn = PyOpenFisheries()
   >>> skipjack_tuna = open_fish_conn.annual_landings(species="SKJ").filter_years(start_year=1970,end_year=1991)
   >>> print(skipjack_tuna.landings)
   [{'year': 1970, 'catch': 402166}...{'year': 1991, 'catch': 1575170}]
   >>> print(skipjack_tuna.summarize())
   Landings of SKJ globally from 1970 to 1991

Attributes:

::

   landings: List of dictionaries containing the year and landing count.
   species: if present - three-letter ASFIS species code (i.e. “SKJ” - Skipjack Tuna).
   country: if present - ISO-3166 alpha 3 country code (i.e. “USA” - United States).
   start_year: if present - start year of filtered landings data.
   end_year : if present - end year of filtered landings data.

annual_landings(species=None, country=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Gathers annual fishery landings filtered by either species or country.
If neither fish nor country are specified, then this will return global
aggregate landings data.

Args:

::

   species: three-letter ASFIS species code (i.e. “SKJ” - Skipjack Tuna)
   country: ISO-3166 alpha 3 country code (i.e. “USA” - United States)

Returns:

::

   instance: PyOpenFisheries instance with landings populated

filter_years(start_year=1950, end_year=2018)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Filters annual fishing data to within a time-frame.

Args:

::

   start_year: 4 digit integer year (i.e. 1980)
   end_year: 4 digit integer year (i.e. 2015)

Returns:

::

   instance: PyOpenFisheries instance with years filtered.

summarize()
^^^^^^^^^^^

Summarizes what has been returned from OpenFisheries.

label()
^^^^^^^

Useful as a legend / for plots.

.. _OpenFisheries API: https://github.com/OpenFisheries/api.openfisheries.org
.. _OpenFisheries.org: openfisheries.org
.. _Requests: https://pypi.org/project/requests/