crf-beam-0.1.7
توضیحات
crf beam search
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | crf-beam-0.1.7 |
| نام | crf-beam |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Oxford Nanoporetech Technologies, Ltd. |
| ایمیل نویسنده | support@nanoporetech.com |
| آدرس صفحه اصلی | https://nanoporetech.com |
| آدرس اینترنتی | https://pypi.org/project/crf-beam/ |
| مجوز | - |
# crf-beam
Beam search for Bonito CRF models.
## Usage
```python
>>> import torch
>>> from crf_beam import beam_search
>>>
>>> T, C = 1000, 320
>>> scores = torch.rand(T, C)
>>> back_guides = torch.rand(T + 1, C)
>>> post = torch.rand(T, C)
>>>
>>> sequence, qstring, moves = beam_search(scores, back_guides, post)
>>> sequence
'ACACTCGCAGCGCGATACGACTGATCGAGATATACTCAGTGTACACAGT...'
>>> qstring
'(&''(****95444"@732"55",--/5555"5"@@E"E4""","-#**...'
```
## Developer Quickstart
```
$ python3 -m venv venv3
$ source venv3/bin/activate
(venv3) $ pip install -r requirements.txt
(venv3) $ make build
(venv3) $ make test
```
نیازمندی
| مقدار | نام |
|---|---|
| ~=1.10.0 | torch |
نحوه نصب
نصب پکیج whl crf-beam-0.1.7:
pip install crf-beam-0.1.7.whl
نصب پکیج tar.gz crf-beam-0.1.7:
pip install crf-beam-0.1.7.tar.gz