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

pub struct Interactions { /* fields omitted */ }

A collection of individual interactions.

Methods

impl Interactions
[src]

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 From<Vec<Interaction>> for Interactions
[src]

Performs the conversion.

impl<'a> From<&'a Interactions> for CompressedInteractions
[src]

Performs the conversion.

impl<'a> From<&'a Interactions> for TripletInteractions
[src]

Performs the conversion.

Auto Trait Implementations