pub struct AlignfoldScores {Show 31 fields
pub hairpin_scores_len: HairpinScoresLen,
pub bulge_scores_len: BulgeScoresLen,
pub interior_scores_len: InteriorScoresLen,
pub interior_scores_symmetric: InteriorScoresSymmetric,
pub interior_scores_asymmetric: InteriorScoresAsymmetric,
pub stack_scores: StackScores,
pub terminal_mismatch_scores: TerminalMismatchScores,
pub dangling_scores_left: DanglingScores,
pub dangling_scores_right: DanglingScores,
pub helix_close_scores: HelixCloseScores,
pub basepair_scores: BasepairScores,
pub interior_scores_explicit: InteriorScoresExplicit,
pub bulge_scores_0x1: BulgeScores0x1,
pub interior_scores_1x1: InteriorScores1x1Contra,
pub multibranch_score_base: Score,
pub multibranch_score_basepair: Score,
pub multibranch_score_unpair: Score,
pub external_score_basepair: Score,
pub external_score_unpair: Score,
pub match2match_score: Score,
pub match2insert_score: Score,
pub insert_extend_score: Score,
pub init_match_score: Score,
pub init_insert_score: Score,
pub insert_scores: InsertScores,
pub match_scores: MatchScores,
pub hairpin_scores_len_cumulative: HairpinScoresLen,
pub bulge_scores_len_cumulative: BulgeScoresLen,
pub interior_scores_len_cumulative: InteriorScoresLen,
pub interior_scores_symmetric_cumulative: InteriorScoresSymmetric,
pub interior_scores_asymmetric_cumulative: InteriorScoresAsymmetric,
}Fields§
§hairpin_scores_len: HairpinScoresLen§bulge_scores_len: BulgeScoresLen§interior_scores_len: InteriorScoresLen§interior_scores_symmetric: InteriorScoresSymmetric§interior_scores_asymmetric: InteriorScoresAsymmetric§stack_scores: StackScores§terminal_mismatch_scores: TerminalMismatchScores§dangling_scores_left: DanglingScores§dangling_scores_right: DanglingScores§helix_close_scores: HelixCloseScores§basepair_scores: BasepairScores§interior_scores_explicit: InteriorScoresExplicit§bulge_scores_0x1: BulgeScores0x1§interior_scores_1x1: InteriorScores1x1Contra§multibranch_score_base: Score§multibranch_score_basepair: Score§multibranch_score_unpair: Score§external_score_basepair: Score§external_score_unpair: Score§match2match_score: Score§match2insert_score: Score§insert_extend_score: Score§init_match_score: Score§init_insert_score: Score§insert_scores: InsertScores§match_scores: MatchScores§hairpin_scores_len_cumulative: HairpinScoresLen§bulge_scores_len_cumulative: BulgeScoresLen§interior_scores_len_cumulative: InteriorScoresLen§interior_scores_symmetric_cumulative: InteriorScoresSymmetric§interior_scores_asymmetric_cumulative: InteriorScoresAsymmetricImplementations§
Source§impl AlignfoldScores
impl AlignfoldScores
pub fn load_trained_scores() -> AlignfoldScores
Source§impl AlignfoldScores
impl AlignfoldScores
pub fn load_trained_scores_randinit() -> AlignfoldScores
Source§impl AlignfoldScores
impl AlignfoldScores
pub fn new(init_val: Score) -> AlignfoldScores
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn update_regularizers(&self, regularizers: &mut Regularizers)
pub fn update<T: HashIndex>( &mut self, train_data: &[TrainDatum<T>], regularizers: &mut Regularizers, )
pub fn mirror(&mut self)
pub fn accumulate(&mut self)
pub fn get_grad<T: HashIndex>( &self, train_data: &[TrainDatum<T>], regularizers: &Regularizers, ) -> Scores
pub fn get_cost<T: HashIndex>( &self, train_data: &[TrainDatum<T>], regularizers: &Regularizers, ) -> Score
pub fn rand_init(&mut self)
pub fn transfer(&mut self)
Trait Implementations§
Source§impl Clone for AlignfoldScores
impl Clone for AlignfoldScores
Source§fn clone(&self) -> AlignfoldScores
fn clone(&self) -> AlignfoldScores
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AlignfoldScores
impl RefUnwindSafe for AlignfoldScores
impl Send for AlignfoldScores
impl Sync for AlignfoldScores
impl Unpin for AlignfoldScores
impl UnwindSafe for AlignfoldScores
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.