Struct consprob_trained::AlignfoldScores
source · 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: InteriorScoresAsymmetric
Implementations§
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 copy 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 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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.