Struct sbr::data::Interactions[][src]

pub struct Interactions { /* fields omitted */ }

A collection of individual interactions.


impl Interactions

Crate a new interactions object.

Add a new interaction.

Return the underlying data.

Give the number of contained interactions.

Shuffle the interactions in-place.

Split interactions at idx.

Split interactions by predicate.

Covert to triplet representation.

Convert to compressed representation.

Return number of users.

Return number of items.

Return (num_users, num_items).

Trait Implementations

impl Clone for Interactions

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Interactions

Formats the value using the given formatter. Read more

impl From<Vec<Interaction>> for Interactions

Performs the conversion.

impl<'a> From<&'a Interactions> for CompressedInteractions

Performs the conversion.

impl<'a> From<&'a Interactions> for TripletInteractions

Performs the conversion.

Auto Trait Implementations