semvec/pypi-packages huggingface dataset:
pytorch-ema 1.1.0
Exponential moving average for pytorch
License: MIT
Keywords: artificial intelligence,machine learning,deep learning,exponential moving average,pytorch

# Torch EMA

Exponential Moving Average (EMA) is a type of moving average, which applies more weight to the most recent data points than to those that happened earlier in the past.
So to say it focuses more on the most recent data than to older ones. 

## Requirements

```
python
torch
```

## Example

```python
import torch
from torch_ema import TorchEMA as EMA

model = torch.nn.Linear(128, 128)

ema = EMA(
    model=model,
    beta = 0.9999,
    update_after_step = 100,
    update_every = 10,
)

with torch.no_grad():
    model.weight.copy_(torch.randn_like(model.weight))
    model.bias.copy_(torch.randn_like(model.bias))

ema.update()

rnd_data = torch.randn(1, 128)

output     = model(rnd_data)
ema_output = ema(rnd_data)
```
no-optional 0.4.0
Replace `Optional[T]` by `Union[T, None]`! 🎉
License: MIT
Requires Python: >=3.7

<h1 align="center">
    <strong>no-optional</strong>
</h1>
<p align="center">
    <a href="https://pypi.org/project/no-optional" target="_blank">
        <img src="https://img.shields.io/pypi/v/no-optional" alt="Package version">
    </a>
    <img src="https://img.shields.io/pypi/pyversions/no-optional">
    <img src="https://img.shields.io/github/license/Kludex/no-optional">
</p>

This [codemod](https://libcst.readthedocs.io/en/stable/codemods_tutorial.html) replaces `typing.Optional[T]` by `typing.Union[T, None]` in the codebase.

## Why?

This tool was inspired by a tweet from [Sebastián Ramírez](https://twitter.com/tiangolo) (as you see below), and a conversation between us.

<img width="599" alt="image" src="https://user-images.githubusercontent.com/7353520/173566552-6759f21e-e0d2-4bb6-9a7a-bac7c360e7fe.png">

As the tweet says, we have two reasons for doing this:

1. It's more explicit to write `Union[str, None]` than `Optional[str]`. Mainly because `Optional[str]` doesn't mean that the attribute is optional.
It only means that it accepts `None` as a possible value.
2. On Python 3.10+ you can type annotate as `str | None` instead of the above two. Which is more similar to `Union[str, None]` than `Optional[str]`.

## Installation

```bash
pip install no-optional
```

## Usage

Run the following on the repository you want to format:

```bash
python -m no_optional <files>
```

You can also use the pre-commit. Add the following to your `.pre-commit-config.yaml` file:

```yaml
  - repo: https://github.com/Kludex/no-optional
    rev: 0.4.0
    hooks:
      - id: no_optional
```

## License

This project is licensed under the terms of the MIT license.
baekjoon-solver 0.0.3
baekjoon solver 문제 풀이
License: MIT
Requires Python: >=3.7,<4.0
Keywords: baekjoon,online judge

## baekjoon-solver

### Installation
```shell
$ pip install baekjoon_solver
```

### Usage
```shell
$ solve <filename> -p <problem_id> # or
$ solve <filename> # 문제 파일 가장 상단에 주석으로 문제번호 명시 (# <problem _id>)


# ex)
$ solve test.py -p 11403

테스트 케이스 1
============================= 통과 0.024250507354736328s =============================
테스트 케이스 2
============================= 통과 0.02342987060546875s =============================
```