semvec/pypi-packages huggingface dataset:
pinn 0.2.0
Python bindings for the Pinn REST API
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Keywords: pinn api client library authentication

![Pinn Python Library](https://github.com/pinntech/pinn-python/raw/master/docs/_static/pinn-python-logo.png)
---

[![PyPI version shields.io](https://img.shields.io/pypi/v/pinn.svg)](https://pypi.python.org/pypi/pinn/)
[![PyPI license](https://img.shields.io/pypi/l/pinn.svg)](https://pypi.python.org/pypi/pinn/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pinn.svg)](https://pypi.python.org/pypi/pinn/)
[![PyPI status](https://img.shields.io/pypi/status/pinn.svg)](https://pypi.python.org/pypi/pinn/)
[![Documentation Status](https://readthedocs.org/projects/pinn/badge/?version=latest)](http://pinn.readthedocs.io/?badge=latest)
[![Build Status](https://travis-ci.com/pinntech/pinn-python.svg?branch=master)](https://travis-ci.com/pinntech/pinn-python)


The Pinn Python library is the easiest, fastest and most enjoyable way to integrate
Pinn into your existing or new python project. This interface around our REST API
provides an idiomatic, ORM-style usage that will make life easy.

## Table of Contents
* [Installation](#installation)
* [Documentation](#documentation)
* [Changelog](#changelog)
* [License](#license)

## Installation

The easiest way to get started is:
```shell
pip install --upgrade pinn
```

Alternatively you could also install directly from source like so:
```shell
python setup.py install
```

## Documentation

For a full run down of the library please see the reference documentation [here](https://pinn.readthedocs.io), or keep reading on for just the basics.

## Changelog

For a detailed account of each release, please refer to the [CHANGELOG](CHANGELOG.md).

## License

Copyright (c) 2019 Pinn Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
markov-rlzoo 0.0.1
Markov Decision Process Python Library
License: MIT

![MDP Image](https://cdn-images-1.medium.com/max/1200/1*QuBOz2yQ5Fy6YnZyvSPXzw.png)

## Markov: Simple Python Library for Markov Decision Processes
#### Author: Stephen Offer

Markov is an easy to use collection of functions and objects to create MDP 
functions.

Markov allows for synchronous and asynchronous execution to experiment with 
the performance advantages of distributed systems.

#### States:

- Reward, Terminal State, Actions, Value, Previous States, Next States, State 
Policy Probabilities.

#### Policies:

- Greedy Policy
- e-Greedy Policy
- More to come...

#### Algorithms:

- Dynamic Programming
- Linear coming soon

#### Optimizers:

- Value/Policy Iteration
- More to come...

#### Environments:

- Gridworld (ASCII, PyGame coming soon)
- Gym coming soon
- More to come...

### Example:
```python
import numpy as np
import argparse

from markov import GreedyPolicy
from markov.envs.gridworld import GridWorld


def value_iteration(K=1,discount_factor=1.):

    env = GridWorld()

    P = GreedyPolicy(env)

    values = np.zeros(env.n_states)

    for k in range(K):
        for state in env.states:
            v = 0
            for i, action in enumerate(state.actions):
                policy = state.policy[i]
                next_state = action(env, state.action_args)
                r = next_state.reward
                v += policy * (r + discount_factor * next_state.value)

            values[state.index] = v

        for state in env.states:
            state.value = values[state.index]

    env.print()


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--k", help="number of k-iterations",
                        type=int,default=1)
    args = parser.parse_args()
    k = args.k

    value_iteration(k)


if __name__ == "__main__":
    main()


```

#### Contributors Welcome