Struct sbr::data::CompressedInteractions[][src]

pub struct CompressedInteractions { /* fields omitted */ }

A compressed representation of interactions, where the interactions themselves are arranged by user and by timestamp.

Normally created by Interactions::to_compressed.

Methods

impl CompressedInteractions
[src]

Iterate over users.

Get a particular user's interactions.

Return number of users.

Return number of items.

Return (num_users, num_items).

Convert to Interactions.

Trait Implementations

impl Clone for CompressedInteractions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CompressedInteractions
[src]

Formats the value using the given formatter. Read more

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

Performs the conversion.

Auto Trait Implementations