diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index bb4afd6..c8b29d7 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.11.2","generation_timestamp":"2024-12-13T10:09:44","documenter_version":"1.8.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.11.2","generation_timestamp":"2024-12-13T10:17:23","documenter_version":"1.8.0"}} \ No newline at end of file diff --git a/dev/index.html b/dev/index.html index 3097548..9f3f31c 100644 --- a/dev/index.html +++ b/dev/index.html @@ -1,5 +1,5 @@ -Home · InvariantPointAttention.jl

InvariantPointAttention

Documentation for InvariantPointAttention.

InvariantPointAttention.IPA_settingsMethod
IPA_settings(
+Home · InvariantPointAttention.jl

InvariantPointAttention

Documentation for InvariantPointAttention.

InvariantPointAttention.IPA_settingsMethod
IPA_settings(
     dims;
     c = 16,
     N_head = 12,
@@ -9,4 +9,4 @@
     Typ = Float32,
     use_softmax1 = false,
     scaling_qk = :default,
-)

Returns a tuple of the IPA settings, with defaults for everything except dims. This can be passed to the IPA and IPCrossAStructureModuleLayer.

source
InvariantPointAttention.dotproductsMethod

function RoPEdotproducts(iparope::IPARoPE, q, k; chain_diffs = nothing)

chain_diffs is either nothing or a array of 0's and 1's describing the ij-pair as pertaining to the same chain if the entry at ij is 1, else 0.
source
InvariantPointAttention.get_TMethod
get_T(coords::Array{<:Real, 3})

Get the assosciated SE(3) frame for all residues in a protein backbone represented as a 3x3xL array of coordinates.

source
InvariantPointAttention.right_to_left_maskMethod
right_to_left_mask([T=Float32,] N::Integer)

Create a right-to-left mask for the self-attention mechanism. The mask is a matrix of size N x N where the diagonal and the lower triangular part are set to zero and the upper triangular part is set to infinity.

source
InvariantPointAttention.softmax1Method
softmax1(x, dims = 1)

Behaves like softmax, but as though there was an additional logit of zero along dims (which is excluded from the output). So the values will sum to a value between zero and 1.

See https://www.evanmiller.org/attention-is-off-by-one.html

source
+)

Returns a tuple of the IPA settings, with defaults for everything except dims. This can be passed to the IPA and IPCrossAStructureModuleLayer.

source
InvariantPointAttention.dotproductsMethod

function RoPEdotproducts(iparope::IPARoPE, q, k; chain_diffs = nothing)

chain_diffs is either nothing or a array of 0's and 1's describing the ij-pair as pertaining to the same chain if the entry at ij is 1, else 0.
source
InvariantPointAttention.get_TMethod
get_T(coords::Array{<:Real, 3})

Get the assosciated SE(3) frame for all residues in a protein backbone represented as a 3x3xL array of coordinates.

source
InvariantPointAttention.right_to_left_maskMethod
right_to_left_mask([T=Float32,] N::Integer)

Create a right-to-left mask for the self-attention mechanism. The mask is a matrix of size N x N where the diagonal and the lower triangular part are set to zero and the upper triangular part is set to infinity.

source
InvariantPointAttention.softmax1Method
softmax1(x, dims = 1)

Behaves like softmax, but as though there was an additional logit of zero along dims (which is excluded from the output). So the values will sum to a value between zero and 1.

See https://www.evanmiller.org/attention-is-off-by-one.html

source