semvec/pypi-packages huggingface dataset:
Simest 1.1
Simest - Simple and small code testing library for Python 3.8+
License: MIT

# Simest - Simple and small code testing library for Python 3.8+
Simest is a simple and small code testing library for Python 3.8+

## Installation
To install the Simest library, confirm you have Python 3.8 or higher and a usable installation of `pip`

```
$ pip install simest
OR
$ py -m pip install simest
```

## Example

```py
from simest import Tester

def foo(x: int) -> int:
    return x * 4

def runTests() -> None:
    tester = Tester()

    tester.equalCheck(32, foo, x = 8) # This will pass
    tester.equalCheck(16, foo, x = 16) # This will fail

if __name__ == "__main__":
    runTests()
```

## Functions and types

### `Value`

Class

```py
Value.__init__(self, value: typing.Any, passed: bool, expected: typing.Any, func: typing.Any, **kwargs: typing.Any)
```

### `Tester`

Class

```py
Tester.__init__(self, title: typing.Optional[str] = "Test")
Tester.__outputCheck__(self, val: Value) # Private/Internal
Tester.__outputCheckTime__(self, val: Value) # Private/Internal

Tester.equalCheck(self, expect: typing.Any, func: typing.Any, **kwargs: typing.Any)
Tester.ruleCheck(self, rule: str, expect: typing.Any, func: typing.Any, **kwargs: typing.Any)
"""
**Unsafe with user-provided string due to usage of `eval`**
## Syntax:

 - `&r` - return value
 - `&e` - expected value
"""

Tester.timeCheck(self, func: typing.Any, max: typing.Union[int, float], min: t.Optional[typing.Union[int, float]] = 0, **kwargs)
```
pyqt-ani-abstractbutton 0.0.4
PyQt QAbstractButton for animation
License: MIT


# pyqt-ani-abstractbutton
PyQt QAbstractButton for <a href="https://github.com/yjg30737/pyqt-ani-button.git">pyqt-ani-button</a>, <a href="https://github.com/yjg30737/pyqt-ani-toolbutton.git">pyqt-ani-toolbutton</a>, <a href="https://github.com/yjg30737/pyqt-ani-radiobutton.git">pyqt-ani-radiobutton</a>'s style and feature

## Requirements
* PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-ani-abstractbutton`
deepbayes 0.1.0
Package for doing approximate Bayesian inference on deep neural networks [based in TF 2.0+]
License: MIT

# deepbayes

deepbayes is a package that aims to make training Bayesian neural networks (BNNs) simple.

Implemented on top of TensorFlow 2.0 and working with tf.keras as a primary interface, one can simply declare a keras (or TF) model and pass it to 
the desired deepbayes optimizer and it will compile the model into an object that is ready to perform approximate inference.

deepbayes is actively under development, and location and names of packages may change (such changes will be noted at the bottom of this repo).  jax support coming soon :) 

#### Install:

`pip install deepbayes`

## Supported Optimizers 

  #### BayesByBackprop
  Implemented based on description in https://arxiv.org/abs/1505.05424
  #### Hamiltonian (Hybrid) Monte Carlo
  Implemented based on description in https://arxiv.org/abs/1206.1901
  #### NoisyAdam (aka Vadam)
  Implemented based on description in https://arxiv.org/abs/1712.02390
  #### Variational Online Gauss Newton (aka VOGN)
  Implemented based on description in https://arxiv.org/abs/1806.04854 and https://arxiv.org/abs/2002.10060
  #### Stochastic Weight Averaging - Gaussian (aka SWAG)
  Implemented bsed on description in https://arxiv.org/pdf/1902.02476.pdf
  #### Stochastic Gradient Descent
  Not sure what to reference you to here... a google will suffice

## Supported Analysis

In addition to producing posterior distributions for BNNs, deepbayes also supports some basic analysis including

- Adversarial attacks for BNNs (FGSM, PGD, CW)
- Uncertainty quantification 
- Statistical guarentees of robustness - https://arxiv.org/pdf/1903.01980.pdf
- Probabalistic safety estimates  - https://arxiv.org/pdf/2004.10281.pdf

#### Dependancies:

tensorflow, tensorflow-probability, numpy, tqdm, statsmodels,

### Future Support

Below we have a tentative to-do list of inference methods to impliment (7 to be exact) and other properties we want to tool to have. 

- [ ] HTML documentation 
- [ ] Non-Gaussian Posterior (requires extension of posterior representation as well)
- [ ] Stochastic Variational Inference (SVI)
- [ ] Probabilistic Backprop (PBP)
- [ ] Sequential Monte Carlo optimizer (SMC)
- [ ] Monte Carlo Dropout optimizer (MCD)
- [ ] Stochastic Gradient Langevin Dynamics optimizer (SGLD)
- [ ] Stochastic Gradient Markov Chain Monte Carlo (SGMCMC)
- [ ] Riemann manifold HMC (RMHMC)
- [ ] JAX autodif library instead of TF (deepbayes.jax.optimizers)
- [ ] Binary Bayesian neural networks
pyqt-single-image-graphics-view 0.0.13
PyQt one image only QGraphicsView
License: MIT


# pyqt-single-image-graphics-view
PyQt one image only QGraphicsView

## Requirements
* PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-single-image-graphics-view`

## Method Overview
* `setFilename(filename: str)`
* `setPixmap(p: QPixmap)`
* `setAspectRatioMode(mode)`

## See Also
* <a href="https://github.com/yjg30737/pyqt-fitting-graphics-view.git">pyqt-fitting-graphics-view</a>