Module Expr Str Import alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Num Assign NameStore Call NameLoad Lambda arguments args defaults ListLoad Assign NameStore BinOpMult Call NameLoad NameLoad Call NameLoad NameLoad For NameStore NameLoad body For NameStore NameLoad body AugAssignAdd NameStore Num Print Str Print BinOpMod Str TupleLoad NameLoad NameLoad Print Str Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Print Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpSub Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Print Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad keyword Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpSub Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Print BinOpMod Str NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index BinOpMod Str NameLoad attr BinOpSub Call NameLoad NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body ImportFrom alias Import alias identifier Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num Num Num attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Str Call NameLoad Call AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Num keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num ListLoad Num ListLoad Num keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A Benchmarks of Singular Value Decomposition (Exact and Approximate)

The data is mostly low rank but is a fat infinite tail.
 N/A gc time time N/A numpy np collections defaultdict scipy.linalg svd sklearn.utils.extmath randomized_svd sklearn.datasets.samples_generator make_low_rank_matrix compute_bench N/A N/A samples_range features_range n_iter rank N/A 3 50 N/A N/A it 0 N/A results N/A defaultdict N/A N/A N/A N/A N/A N/A max_it N/A N/A len samples_range N/A len features_range N/A n_samples samples_range N/A N/A n_features features_range N/A N/A it 1 N/A ==================== N/A N/A Iteration %03d of %03d N/A it max_it N/A ==================== N/A X N/A make_low_rank_matrix n_samples n_features effective_rank rank tail_strength 0.2 N/A N/A N/A gc collect N/A benchmarking scipy svd:  N/A tstart N/A time N/A N/A svd X full_matrices False N/A N/A N/A N/A results N/A scipy svd append N/A N/A time tstart N/A N/A N/A gc collect N/A benchmarking scikit-learn randomized_svd: n_iter=0 N/A tstart N/A time N/A N/A randomized_svd X rank n_iter 0 N/A N/A N/A N/A results N/A scikit-learn randomized_svd (n_iter=0) append N/A N/A time tstart N/A N/A N/A gc collect N/A N/A benchmarking scikit-learn randomized_svd: n_iter=%d  n_iter N/A tstart N/A time N/A N/A randomized_svd X rank n_iter n_iter N/A N/A N/A N/A results N/A N/A scikit-learn randomized_svd (n_iter=%d) n_iter append N/A N/A time tstart N/A results N/A N/A N/A __name__ __main__ N/A mpl_toolkits.mplot3d axes3d N/A matplotlib.pyplot plt N/A samples_range N/A N/A N/A N/A np linspace 2 1000 4 astype N/A np int N/A features_range N/A N/A N/A N/A np linspace 2 1000 4 astype N/A np int N/A results N/A compute_bench samples_range features_range N/A label scikit-learn singular value decomposition benchmark results N/A fig N/A N/A plt figure label N/A ax N/A N/A fig gca projection 3d N/A N/A c N/A label timings N/A zip rbg N/A sorted N/A N/A results iteritems N/A N/A N/A X Y N/A N/A np meshgrid samples_range features_range N/A Z N/A N/A N/A N/A np asarray timings reshape N/A N/A samples_range shape N/A 0 N/A N/A features_range shape N/A 0 N/A N/A N/A ax plot_surface X Y Z rstride 8 cstride 8 alpha 0.3 color c N/A N/A N/A ax plot N/A 1 N/A 1 N/A 1 color c label label N/A N/A N/A ax set_xlabel n_samples N/A N/A N/A ax set_ylabel n_features N/A N/A N/A ax set_zlabel Time (s) N/A N/A N/A ax legend N/A N/A N/A plt show