semvec/pypi-packages huggingface dataset:
py-paretoarchive 1.0
Efficient incremental Pareto archive based on BSP
License: MIT
Requires Python: >=3.8

# Archive of non-dominated points
[![PyPI version fury.io](https://badge.fury.io/py/py-paretoarchive.svg)](https://pypi.python.org/pypi/py-paretoarchive/)
[![PyPI license](https://img.shields.io/pypi/l/py-paretoarchive.svg)](https://pypi.python.org/pypi/py-paretoarchive/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/py-paretoarchive.svg)](https://pypi.python.org/pypi/py-paretoarchive/)



Previous version (0.21) used to achive of all non-dominated points using Fast Incremental BSP Tree. This package provides a Python wrapper for code provided as [a fast incremental BSP archive](https://www.ini.rub.de/PEOPLE/glasmtbl/code/ParetoArchive/index.html).

In order to not needing to install Cython, the package uses numpy implementation only


#### Debuging
```bash
python -m venv -r requirements.txt .venv
source .venv/bin/activate
pip install --upgrade pip

python -m pip install -e .[dev]
```
#### Testing
```bash
# Run tests
PYTHONPATH=src /usr/bin/python -m pytest tests/ -v  




# PYTHONPATH=src /usr/bin/python -m pytest tests/ -v
```

### USAGE

```python
obj1 = [1, 2, 3]
obj2 = [3, 2, 1]
from paretoarchive import np_pareto
dom = np_pareto(obj1, obj2, minimize=[False, True])
print(dom) # [True, False, True] (first and third points are non-dominated)
```

## Using in Pandas
You can easily use the library to filter a Pandas DataFrame. Note that the selected columns cannot have a "NaN" values (you should use `df.dropna(subset=["c1", "c2"])` function.

```python
from paretoarchive.pandas import pareto
par_df = pareto(df, ["area", "energy", "weight"], minimize=[False, True, True])
```

### SOURCE

* Tobias Glasmachers: **A Fast Incremental BSP Tree Archive for Non-dominated Points**
  * https://link.springer.com/chapter/10.1007/978-3-319-54157-0_18
  * https://www.ini.rub.de/PEOPLE/glasmtbl/code/ParetoArchive/index.html
* Similar problem (SKYLINE)
  https://github.com/sean-chester/SkyBench
nonebot-plugin-flo-luck 0.2.1
nonebot plugin for today's luck.
License: MIT
Requires Python: <4.0,>=3.9

<div align="center">
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-flo-luck

_✨ NoneBot 插件: Florenz 版本的 jrrp ✨_


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/florenz0707/nonebot-plugin-flo-luck.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-flo-luck">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-flo-luck.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">

</div>



## 📖 介绍

Florenz 版本的 jrrp。主要追加了特殊列表与排行功能。
列表内容：QQ号，该用户使用时发送的特别问候，该用户幸运值的下限和上限。

## 💿 安装

<details open>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-flo-luck

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>

<summary>pip</summary>

    pip install nonebot-plugin-flo-luck
</details>

<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-flo-luck
</details>

打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

    plugins = ["nonebot_plugin_flo_luck"]

</details>

## ⚙️ 配置

无

## 🎉 使用
### 指令表
|             指令              |    权限     | 需要@ | 范围 |           说明            |
|:---------------------------:|:---------:|:---:|:--:|:-----------------------:|
|            jrrp             |    所有     |  否  | 所有 |         查看今日幸运值         |
|         jrrp.today          |    所有     |  否  | 所有 |      查看今日大家的平均幸运值。      |
| jrrp.week  (month/year/all) |    所有     |  否  | 所有 |         查看平均幸运值         |
|          jrrp.rank          |    所有     |  否  | 所有 |     查看自己的幸运值在当日的排行      |
|       jrrp.add/del id       | SUPERUSER |  否  | 所有 | 从特殊列表中加入/移除该条目  (参见元数据) |
|         jrrp.check          | SUPERUSER |  否  | 所有 |        查看特殊列表信息         |

### 其他
大部分代码源于：[nonebot-plugin-jrrp2](https://github.com/Rene8028/nonebot_plugin_jrrp2)
本插件主要增加了特殊列表与排行功能
Version: 0.2.1