pub struct DataDictionary { /* private fields */ }
Expand description

Mapping from original string based identifiers to internal u32 indexes.

Implementations§

Returns the overall number of users in the dataset.

Returns the overall number of items in the dataset.

Returns the overall number of interactions in the dataset.

Returns the internal index for the user with the string identifier name

Returns the internal index for the item with the string identifier name

Builds up a DataDictionary by consuming an iterator over string tuples representing user-item interactions. We assume that the first string in the tuple identifies a user and the second string identifies an item

Builds up a DataDictionary by reading an iterator over references to string tuples representing user-item interactions. We assume that the first string in the tuple identifies a user and the second string identifies an item

Trait Implementations§

Consume a DataDictionary to produce a Renaming for the reverse mapping

Converts to this type from the input type.

Builds up a DataDictionary by reading an iterator over string tuples representing user-item interactions. We assume that the first string in the tuple identifies a user and the second string identifies an item

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.