A2KA
A2KA is a novel web architecture designed to identify crucial areas by extracting biological information from the embedding space of large language models. Make sure pytorch is installed firstly. The github storage is: https://github.com/Dsadd4/NLSExplorer_1.0
Installation
You can install A2KA via pip:
pip install A2KA
Usage
A2KA
from A2KA import A2KA
import torch
hidden_dimention = 512
#configure your A2KA sturcture
config = [8,8,32]
#If your datasize is significant large, extending the scale of the network may be a good choice.
#Such a config = 18*[64] means it has 18 layers and each layer has 64 basic attention units.
model =A2KA( hidden_dimention,config)
# tensor in a shape of (Batchsize,sequence_length, embedding dimension)
exampletensor = torch.randn(5,100,512)
prediction,layerattention = model(exampletensor)
print(prediction)
print(layerattention)
SCNLS (in linux system)
from A2KA import SCNLS
#Example
sequence_for_analysis = ['MSSAKRRKK','LSSSSKVR','MTNLP']
kth_set = 3
max_gap = 3
processorsnumber = 2
result = SCNLS(sequence_for_analysis,kth_set,max_gap,processorsnumber)
print(result)
Metadata
Release files for A2KA 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| A2KA-0.1.7.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| A2KA-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / A2KA-0.1.7.tar.gz
| Download URL | A2KA-0.1.7.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0b6c125742b1e875c1d66d6500eb099d1af4b5b2e57a49b9828ea73db08c139
|
|
BLAKE2b-256 checksum How to use checksums |
091e189e1ec868548545717ec4fcd0e84d7c1e2e262a99f57aba1fc30eb8694b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.0
|
Release files / A2KA-0.1.7-py3-none-any.whl
| Download URL | A2KA-0.1.7-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a620a0214880d36bad8df5f3cbbbbebc9c4d5165f8c782b3988cb50e0a09bea
|
|
BLAKE2b-256 checksum How to use checksums |
2c6045ae156a989307fc93d66e1ca95d007dd3379c2d9ffbfeabaf3df76c7798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.0
|