pub struct MergedModel {
pub feature_sets: Vec<MergedFeatureSet>,
pub matrix: Vec<HashMap<u32, f64>>,
pub left_conn_to_right_feats: Vec<Vec<Option<NonZeroU32>>>,
pub right_conn_to_left_feats: Vec<Vec<Option<NonZeroU32>>>,
}Expand description
Represents a merged model.
Fields§
§feature_sets: Vec<MergedFeatureSet>Feature sets corresponding to label IDs.
matrix: Vec<HashMap<u32, f64>>Bi-gram weight matrix.
left_conn_to_right_feats: Vec<Vec<Option<NonZeroU32>>>Relation between the left connection IDs and the right bi-gram feature IDs.
right_conn_to_left_feats: Vec<Vec<Option<NonZeroU32>>>Relation between the right connection IDs and the left bi-gram feature IDs.
Trait Implementations§
Source§impl<'de, __Context> BorrowDecode<'de, __Context> for MergedModel
impl<'de, __Context> BorrowDecode<'de, __Context> for MergedModel
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<Context> Decode<Context> for MergedModel
impl<Context> Decode<Context> for MergedModel
Source§impl Encode for MergedModel
impl Encode for MergedModel
Auto Trait Implementations§
impl Freeze for MergedModel
impl RefUnwindSafe for MergedModel
impl Send for MergedModel
impl Sync for MergedModel
impl Unpin for MergedModel
impl UnwindSafe for MergedModel
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