Module Expr Str Import alias identifier Import alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Print BinOpMod Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword BinOpMod Str NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword BinOpMod Str NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr BinOpFloorDiv SubscriptLoad AttributeLoad NameLoad attr Index Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore DictComp NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr BinOpFloorDiv SubscriptLoad AttributeLoad NameLoad attr Index Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num For NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr BinOpFloorDiv SubscriptLoad AttributeLoad NameLoad attr Index Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num Assign NameStore DictComp NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpMult ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpMult ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpMult ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpMult ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore DictComp NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore ListLoad TupleLoad Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign TupleStore NameStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num AugAssignSub NameStore Call AttributeLoad NameLoad attr keyword Num AugAssignDiv NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
========================
IncrementalPCA benchmark
========================

Benchmarks for IncrementalPCA

 N/A numpy np N/A gc time time collections defaultdict N/A matplotlib.pyplot plt sklearn.datasets fetch_lfw_people sklearn.decomposition IncrementalPCA RandomizedPCA PCA plot_results N/A N/A X y label N/A N/A N/A N/A N/A plt plot X y label label marker o N/A benchmark N/A N/A estimator data N/A N/A N/A N/A N/A gc collect N/A N/A Benching %s estimator N/A t0 N/A time N/A N/A N/A estimator fit data N/A training_time N/A N/A time t0 N/A data_t N/A N/A estimator transform data N/A data_r N/A N/A estimator inverse_transform data_t N/A reconstruction_error N/A N/A np mean N/A N/A np abs N/A data data_r N/A N/A time error training_time reconstruction_error N/A plot_feature_times N/A N/A all_times batch_size all_components data N/A N/A N/A N/A N/A plt figure N/A N/A plot_results all_components N/A all_times N/A pca label PCA N/A N/A plot_results all_components N/A all_times N/A ipca label N/A IncrementalPCA, bsize=%i batch_size N/A N/A plot_results all_components N/A all_times N/A rpca label RandomizedPCA N/A N/A N/A plt legend loc upper left N/A N/A N/A plt suptitle N/A Algorithm runtime vs. n_components
                  LFW, size %i x %i N/A data shape N/A N/A N/A plt xlabel N/A Number of components (out of max %i) N/A N/A data shape N/A 1 N/A N/A N/A plt ylabel Time (seconds) N/A plot_feature_errors N/A N/A all_errors batch_size all_components data N/A N/A N/A N/A N/A plt figure N/A N/A plot_results all_components N/A all_errors N/A pca label PCA N/A N/A plot_results all_components N/A all_errors N/A ipca label N/A IncrementalPCA, bsize=%i batch_size N/A N/A plot_results all_components N/A all_errors N/A rpca label RandomizedPCA N/A N/A N/A plt legend loc lower left N/A N/A N/A plt suptitle N/A Algorithm error vs. n_components
LFW, size %i x %i N/A data shape N/A N/A N/A plt xlabel N/A Number of components (out of max %i) N/A N/A data shape N/A 1 N/A N/A N/A plt ylabel Mean absolute error N/A plot_batch_times N/A N/A all_times n_features all_batch_sizes data N/A N/A N/A N/A N/A plt figure N/A N/A plot_results all_batch_sizes N/A all_times N/A pca label PCA N/A N/A plot_results all_batch_sizes N/A all_times N/A rpca label RandomizedPCA N/A N/A plot_results all_batch_sizes N/A all_times N/A ipca label IncrementalPCA N/A N/A N/A plt legend loc lower left N/A N/A N/A plt suptitle N/A Algorithm runtime vs. batch_size for n_components %i
                  LFW, size %i x %i N/A n_features N/A N/A data shape N/A 0 N/A N/A data shape N/A 1 N/A N/A N/A plt xlabel Batch size N/A N/A N/A plt ylabel Time (seconds) N/A plot_batch_errors N/A N/A all_errors n_features all_batch_sizes data N/A N/A N/A N/A N/A plt figure N/A N/A plot_results all_batch_sizes N/A all_errors N/A pca label PCA N/A N/A plot_results all_batch_sizes N/A all_errors N/A ipca label IncrementalPCA N/A N/A N/A plt legend loc lower left N/A N/A N/A plt suptitle N/A Algorithm error vs. batch_size for n_components %i
                  LFW, size %i x %i N/A n_features N/A N/A data shape N/A 0 N/A N/A data shape N/A 1 N/A N/A N/A plt xlabel Batch size N/A N/A N/A plt ylabel Mean absolute error N/A fixed_batch_size_comparison N/A N/A data N/A N/A N/A all_features N/A N/A N/A i astype int N/A i N/A N/A np linspace N/A N/A N/A data shape N/A 1 10 N/A N/A data shape N/A 1 num 5 N/A batch_size 1000 N/A all_times N/A defaultdict list N/A all_errors N/A defaultdict list N/A n_components all_features N/A N/A pca N/A PCA n_components n_components N/A rpca N/A RandomizedPCA n_components n_components random_state 1999 N/A ipca N/A IncrementalPCA n_components n_components batch_size batch_size N/A results_dict N/A k N/A benchmark est data N/A N/A k est N/A N/A pca pca N/A ipca ipca N/A rpca rpca N/A k N/A sorted N/A N/A results_dict keys N/A N/A N/A N/A N/A all_times N/A k append N/A N/A results_dict N/A k N/A time N/A N/A N/A N/A all_errors N/A k append N/A N/A results_dict N/A k N/A error N/A N/A plot_feature_times all_times batch_size all_features data N/A N/A plot_feature_errors all_errors batch_size all_features data N/A variable_batch_size_comparison N/A N/A data N/A N/A N/A batch_sizes N/A N/A N/A i astype int N/A i N/A N/A np linspace N/A N/A N/A data shape N/A 0 10 N/A N/A data shape N/A 0 num 10 N/A n_components N/A N/A N/A i astype int N/A i N/A N/A np linspace N/A N/A N/A data shape N/A 1 10 N/A N/A data shape N/A 1 num 4 N/A N/A all_times N/A defaultdict list N/A all_errors N/A defaultdict list N/A pca N/A PCA n_components n_components N/A rpca N/A RandomizedPCA n_components n_components random_state 1999 N/A results_dict N/A k N/A benchmark est data N/A N/A k est N/A N/A pca pca N/A rpca rpca N/A N/A N/A N/A all_times N/A pca extend N/A N/A N/A N/A results_dict N/A pca N/A time N/A len batch_sizes N/A N/A N/A N/A all_errors N/A pca extend N/A N/A N/A N/A results_dict N/A pca N/A error N/A len batch_sizes N/A N/A N/A N/A all_times N/A rpca extend N/A N/A N/A N/A results_dict N/A rpca N/A time N/A len batch_sizes N/A N/A N/A N/A all_errors N/A rpca extend N/A N/A N/A N/A results_dict N/A rpca N/A error N/A len batch_sizes N/A batch_size batch_sizes N/A N/A ipca N/A IncrementalPCA n_components n_components batch_size batch_size N/A results_dict N/A k N/A benchmark est data N/A N/A k est N/A N/A ipca ipca N/A N/A N/A N/A all_times N/A ipca append N/A N/A results_dict N/A ipca N/A time N/A N/A N/A N/A all_errors N/A ipca append N/A N/A results_dict N/A ipca N/A error N/A N/A plot_batch_times all_times n_components batch_sizes data N/A N/A plot_batch_errors all_errors n_components batch_sizes data N/A N/A faces N/A fetch_lfw_people resize 0.2 min_faces_per_person 5 N/A X N/A N/A faces data N/A 5000 N/A N/A n_samples h w N/A N/A faces images shape N/A n_features N/A N/A X shape N/A 1 N/A X N/A N/A X mean axis 0 N/A X N/A N/A X std axis 0 N/A N/A fixed_batch_size_comparison X N/A N/A variable_batch_size_comparison X N/A N/A N/A plt show