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)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
A2KA-0.1.6.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
A2KA-0.1.6-py3-none-any.whl
(7.3 kB
view details)
File details
Details for the file A2KA-0.1.6.tar.gz.
File metadata
- Download URL: A2KA-0.1.6.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb98c07431e8ef253cca5c37b300639d2742d9a0ebdc2c9849fb4ec26c1dcbb4
|
|
| MD5 |
c61a8a2d6a7536dbde1efd66267fffb3
|
|
| BLAKE2b-256 |
f61f7dbb95ec00c94331b633b9883173abef7cc3d03001e95d2bdd8078d380e9
|
File details
Details for the file A2KA-0.1.6-py3-none-any.whl.
File metadata
- Download URL: A2KA-0.1.6-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08faa2c9021928b8cf44d7477884391bc17a1a85b7a2e5a0b320a4a79798bd08
|
|
| MD5 |
743012d498ad5b1bf80dde7606513cdd
|
|
| BLAKE2b-256 |
f18f6f8291b1b3c3972fb8c2ec0d87c2890a8412e21c84df1a9508cab6a07747
|