seqgra.schema module

MIT - CSAIL - Gifford Lab - seqgra

@author: Konstantin Krismer

class AnnotatedExample(x: str, y: str, annotation: str)[source]

Bases: object

annotation: str
x: str
y: str
class AnnotatedExampleSet(x, y, annotations)[source]

Bases: tuple

annotations: List[str]

Alias for field number 2

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

x: List[str]

Alias for field number 0

y: List[str]

Alias for field number 1

class AnnotationSet(annotations, y)[source]

Bases: tuple

annotations: List[str]

Alias for field number 0

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

y: List[str]

Alias for field number 1

class DataSessionInfo(seqgra_version, numpy_version, python_version)[source]

Bases: tuple

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

numpy_version: str

Alias for field number 1

python_version: str

Alias for field number 2

seqgra_version: str

Alias for field number 0

class Example(x: str, y: str)[source]

Bases: object

x: str
y: str
class ExampleSet(x, y)[source]

Bases: tuple

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

x: List[str]

Alias for field number 0

y: List[str]

Alias for field number 1

class Metrics(loss, accuracy)[source]

Bases: tuple

accuracy: float

Alias for field number 1

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

loss: float

Alias for field number 0

class ModelSessionInfo(seqgra_version, numpy_version, python_version, library, library_version)[source]

Bases: tuple

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

library: str

Alias for field number 3

library_version: str

Alias for field number 4

numpy_version: str

Alias for field number 1

python_version: str

Alias for field number 2

seqgra_version: str

Alias for field number 0

class ModelSize(num_trainable_params, num_non_trainable_params)[source]

Bases: tuple

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

num_non_trainable_params: int

Alias for field number 1

num_trainable_params: int

Alias for field number 0

class ProbabilisticToken(token, probability)[source]

Bases: tuple

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

probability: float

Alias for field number 1

token: str

Alias for field number 0