examples Package

kmeans Module

spartan.examples.kmeans.run(num_pts, num_centers, num_dim)[source]

netflix Module

spartan.examples.netflix.fake_netflix_mapper(inputs, ex, p_rating=None)[source]

Create “Netflix-like” data for the given extent.

Parameters:p_rating – Sparsity factor (probability a given cell will have a rating)
spartan.examples.netflix.load_netflix_mapper(inputs, ex, load_file=None)[source]
spartan.examples.netflix.sgd(V, M, U)[source]
spartan.examples.netflix.sgd_netflix_mapper(inputs, ex, V=None, M=None, U=None, worklist=None)[source]
spartan.examples.netflix.strata_overlap(extents, v)[source]

netflix_core Module