Catalog PyPI
PACKAGE EXPLORERView in registry

A2KA

PyPI

Attention to Key Area, a plug and play interpretable network.

Versions collected1
Direct dependencies0From release 0.1.7
Last observed20 Oct, 16:32 UTC

README

Version 0.1.7 documentation

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)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.717 Aug 20240

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
dsadd4/nlsexplorer_1.0

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f3656df412f81650ebc7e8bd00d9ee47e2caa96edb697a02261a4ca5c7f4862d