semvec/pypi-packages huggingface dataset:
abito 0.1.3
Package for hypothesis testing in A/B-experiments
License: MIT

# abito
[![Build Status](https://travis-ci.com/avito-tech/abito.svg?branch=master)](https://travis-ci.com/avito-tech/abito)
[![Coverage Status](https://coveralls.io/repos/github/avito-tech/abito/badge.svg?branch=master)](https://coveralls.io/github/avito-tech/abito?branch=master)

Python package for hypothesis testing. Suitable for using in A/B-testing software.
Tested for Python >= 3.5. Based on numpy and scipy.

##### Features
1. Convenient interface to run significance tests.
2. Support of ratio-samples. Linearization included (delta-method).
3. Bootstrapping: can measure significance of any statistic, even quantiles. Multiprocessing is supported.
4. Ntile-bucketing: compress samples to get better performance.
5. Trim: get rid of heavy tails.


## Installation
```
pip install abito
```

## Usage

The most powerful tool in this package is the Sample:
```python
import abito as ab
```

Let's draw some observations from Poisson distribution and initiate Sample instance from them.
```python
import numpy as np

observations = np.random.poisson(1, size=10**6)
sample = ab.sample(observations)
```

Now we can calculate any statistic in numpy-way.
```python
print(sample.mean())
print(sample.std())
print(sample.quantile(q=[0.05, 0.95]))
```

To compare with other sample we can use t_test or mann_whitney_u_test:
```python
observations_control = np.random.poisson(1.005, size=10**6)
sample_control = Sample(observations_control)

print(sample.t_test(sample_control))
print(sample.mann_whitney_u_test(sample_control))
```

### Bootstrap
Or we can use bootstrap to compare any statistic:
```python
sample.bootstrap_test(sample_control, stat='mean', n_iters=100)
```

To improve performance, it's better to provide observations in weighted form: unique values + counts. Or, we can compress samples, using built-in method:
```python
sample.reweigh(inplace=True)
sample_control.reweigh(inplace=True)
sample.bootstrap_test(sample_control, stat='mean', n_iters=10000)
```
Now bootstrap is working lightning-fast. To improve performance further you can set parameter n_threads > 1 to run bootstrapping using multiprocessing.

### Compress
```python
observations = np.random.normal(100, size=10**8)
sample = ab.sample(observations)

compressed = sample.compress(n_buckets=100, stat='mean')

%timeit sample.std()
%timeit compressed.std()
```
kvdiff 0.2.5
Compare two text files by key columns
License: MIT
Requires Python: >=3.5

# KVDiff

Compare two text files by key columns

# Getting Started

Let's say we have two text files maintaining a list of systems with versions.

```
$ cat a.txt
MacOS 10.12
Windows 10
Ubuntu 16
```

```
$ cat b.txt
MacOS 10.14
Windows 10
Manjaro 17
```

To see which systems are new in `b.txt`, deleted in `b.txt`, and version changed in `b.txt`, run `kvdiff -k1 a.txt b.txt` in the terminal:

```
$ kvdiff -k1 a.txt b.txt
* MacOS 10.12
> MacOS 10.14
+ Manjaro 17
- Ubuntu 16
```

KVDiff reports that MacOS has a version change, new system Manjaro with version 17 is added, and Ubuntu is deleted.

# Requirements

+ Python >=3.5
+ [sort(1)](http://man7.org/linux/man-pages/man1/sort.1.html)

# Installation

	$ pip install kvdiff

# Usage

Run `kvdiff --help` for more infomation

# License

MIT licensed

# How It Works

[KVDiff: Compare Two Large Text Files by Key Columns](http://dongyuxuan.me/posts/kvdiff.html)
pelican-xref 0.1.1
A Pelican plugin that allows you to cross-reference articles
License: MIT
Requires Python: >=3.6,<4.0
Keywords: pelican,plugin

# Pelican Xref: A Plugin for Pelican

A Pelican plugin that allows you to cross-reference articles in an easy way

## Motivation for this plugin

In Pelican, you can reference other articles in the following way:

```markdown
Title: The second article
Date: 2012-12-01 10:02

See below intra-site link examples in Markdown format.

[a link relative to the current file]({filename}category/article1.rst)
[a link relative to the content root]({filename}/category/article1.rst)
```

The issue I have with this is that your file structure becomes very rigid.
When you move or rename a file or directory all your references are broken.

That is why I created this plugin.

## Usage

### Step 1: Add `xref` attribute to your articles

You have to add an attribute named `xref` to the article attributes, which is only required for articles you want to reference to.
The attribute value can contain upper- and lowercase letters, numbers, hyphens (`-`) and underscores (`_`).

```markdown
---
Title: The first article
xref: ref-1
---

...
```

After you add the `xref` attribute to an article, you can use it in other articles:

```markdown
---
Title: The second article
---

This article references the first article with the following syntax: [xref:ref-1]
```

The syntax has two optional attributes: `title` and `blank`.
You can use the `title` attribute if you want to use a custom text instead of the title of the referenced article.
The `blank` attribute is used in case you want the created link to open a new window.

Input | Generated html
--- | ---
<code>[xref:ref-1]</code> | `<a href="/category/the-first-article">The first article</a>`
<code>[xref:ref-1 title="Title override"]</code> | `<a href="/category/the-first-article">Title override</a>`
<code>[xref:ref-1 blank=1]</code> | `<a href="/category/the-first-article" target="_blank">The first article</a>`
<code>[xref:ref-1 title="Title override" blank=1]</code> | `<a href="/category/the-first-article" target="_blank">Title override</a>`

## Installation

This plugin can be installed via:

    pip install pelican-xref


## Contributing

Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on [existing issues][].

To start contributing to this plugin, review the [Contributing to Pelican][] documentation, beginning with the **Contributing Code** section.

[existing issues]: https://github.com/johanvergeer/pelican-xref/issues
[Contributing to Pelican]: https://docs.getpelican.com/en/latest/contribute.html