Struct consalign::FeatureCountSets
source · [−]pub struct FeatureCountSets {Show 31 fields
pub hairpin_loop_length_counts: [f32; 31],
pub bulge_loop_length_counts: [f32; 30],
pub interior_loop_length_counts: [f32; 29],
pub interior_loop_length_counts_symm: [f32; 15],
pub interior_loop_length_counts_asymm: [f32; 28],
pub stack_count_mat: [[[[f32; 4]; 4]; 4]; 4],
pub terminal_mismatch_count_mat: [[[[f32; 4]; 4]; 4]; 4],
pub left_dangle_count_mat: [[[f32; 4]; 4]; 4],
pub right_dangle_count_mat: [[[f32; 4]; 4]; 4],
pub helix_end_count_mat: [[f32; 4]; 4],
pub base_pair_count_mat: [[f32; 4]; 4],
pub interior_loop_length_count_mat_explicit: [[f32; 4]; 4],
pub bulge_loop_0x1_length_counts: [f32; 4],
pub interior_loop_1x1_length_count_mat: [[f32; 4]; 4],
pub multi_loop_base_count: f32,
pub multi_loop_basepairing_count: f32,
pub multi_loop_accessible_baseunpairing_count: f32,
pub external_loop_accessible_basepairing_count: f32,
pub external_loop_accessible_baseunpairing_count: f32,
pub match_2_match_count: f32,
pub match_2_insert_count: f32,
pub insert_extend_count: f32,
pub init_match_count: f32,
pub init_insert_count: f32,
pub insert_counts: [f32; 4],
pub align_count_mat: [[f32; 4]; 4],
pub hairpin_loop_length_counts_cumulative: [f32; 31],
pub bulge_loop_length_counts_cumulative: [f32; 30],
pub interior_loop_length_counts_cumulative: [f32; 29],
pub interior_loop_length_counts_symm_cumulative: [f32; 15],
pub interior_loop_length_counts_asymm_cumulative: [f32; 28],
}Fields
hairpin_loop_length_counts: [f32; 31]bulge_loop_length_counts: [f32; 30]interior_loop_length_counts: [f32; 29]interior_loop_length_counts_symm: [f32; 15]interior_loop_length_counts_asymm: [f32; 28]stack_count_mat: [[[[f32; 4]; 4]; 4]; 4]terminal_mismatch_count_mat: [[[[f32; 4]; 4]; 4]; 4]left_dangle_count_mat: [[[f32; 4]; 4]; 4]right_dangle_count_mat: [[[f32; 4]; 4]; 4]helix_end_count_mat: [[f32; 4]; 4]base_pair_count_mat: [[f32; 4]; 4]interior_loop_length_count_mat_explicit: [[f32; 4]; 4]bulge_loop_0x1_length_counts: [f32; 4]interior_loop_1x1_length_count_mat: [[f32; 4]; 4]multi_loop_base_count: f32multi_loop_basepairing_count: f32multi_loop_accessible_baseunpairing_count: f32external_loop_accessible_basepairing_count: f32external_loop_accessible_baseunpairing_count: f32match_2_match_count: f32match_2_insert_count: f32insert_extend_count: f32init_match_count: f32init_insert_count: f32insert_counts: [f32; 4]align_count_mat: [[f32; 4]; 4]hairpin_loop_length_counts_cumulative: [f32; 31]bulge_loop_length_counts_cumulative: [f32; 30]interior_loop_length_counts_cumulative: [f32; 29]interior_loop_length_counts_symm_cumulative: [f32; 15]interior_loop_length_counts_asymm_cumulative: [f32; 28]Implementations
sourceimpl FeatureCountSets
impl FeatureCountSets
pub fn load_trained_score_params() -> FeatureCountSets
sourceimpl FeatureCountSets
impl FeatureCountSets
pub fn new(init_val: f32) -> FeatureCountSets
pub fn get_len(&self) -> usize
pub fn update_regularizers(
&self,
regularizers: &mut ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>
)
pub fn update<T>(
&mut self,
train_data: &[TrainDatum<T>],
regularizers: &mut ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>
)where
T: Unsigned + PrimInt + Hash + FromPrimitive + Integer + Ord,
pub fn mirror(&mut self)
pub fn accumulate(&mut self)
pub fn get_grad<T>(
&self,
train_data: &[TrainDatum<T>],
regularizers: &ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>
) -> ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>where
T: Unsigned + PrimInt + Hash + FromPrimitive + Integer + Ord,
pub fn get_cost<T>(
&self,
train_data: &[TrainDatum<T>],
regularizers: &ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>
) -> f32where
T: Unsigned + PrimInt + Hash + FromPrimitive + Integer + Ord,
pub fn rand_init(&mut self)
pub fn transfer(&mut self)
Trait Implementations
sourceimpl Clone for FeatureCountSets
impl Clone for FeatureCountSets
sourcefn clone(&self) -> FeatureCountSets
fn clone(&self) -> FeatureCountSets
Returns a copy of the value. Read more
1.0.0 · sourcefn 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 FeatureCountSets
impl Send for FeatureCountSets
impl Sync for FeatureCountSets
impl Unpin for FeatureCountSets
impl UnwindSafe for FeatureCountSets
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more