MCPcopy Create free account

hub / github.com/MaxHalford/prince / functions

Functions259 in github.com/MaxHalford/prince

Methodgroup_cosine_similarities_
Returns the quality of representation of each group on each component.
prince/mfa.py:451
Methodinverse_transform
(self, X)
prince/mfa.py:386
Methodinverse_transform
(self, X)
prince/famd.py:126
Methodinverse_transform
Map projected coordinates back to quaternions on the manifold. Parameters ---------- X Projected coordinates from
prince/pga.py:158
Functionload_beers
Beers dataset. The data is taken from https://github.com/philipperemy/beer-dataset.
prince/datasets.py:121
Functionload_burgundy_wines
Burgundy wines dataset. Source: https://personal.utdallas.edu/~herve/Abdi-MCA2007-pretty.pdf
prince/datasets.py:85
Functionload_decathlon
The Decathlon dataset from FactoMineR.
prince/datasets.py:42
Functionload_energy_mix
Per capita energy mix by country in 2019. Each row corresponds to a country. There is one column for each energy source. A value corresponds
prince/datasets.py:10
Functionload_french_elections
Voting data for the 2022 French elections, by region. The [original dataset](https://www.data.gouv.fr/fr/datasets/resultats-du-premier-tour-de-le
prince/datasets.py:51
Functionload_hearthstone_cards
Hearthstone standard cards. Source: https://gist.github.com/MaxHalford/32ed2c80672d7391ec5b4e6f291f14c1
prince/datasets.py:76
Functionload_poison
The Poison dataset from FactoMineR. Survey of 55 children who fell sick during a school meal. The first two columns are numeric (``Age``, ``T
prince/datasets.py:150
Functionload_premier_league
Premier League dataset. The data is taken from Wikipedia, using pd.read_html.
prince/datasets.py:141
Functionload_punctuation_marks
Punctuation marks of six French writers.
prince/datasets.py:71
Functionload_rotations
Robot IMU quaternion rotations on different surfaces. Each row is a unit quaternion (qw, qx, qy, qz) in scalar-first convention representing
prince/datasets.py:130
Methodlog
Logarithmic map: project manifold points to tangent space at base. Parameters ---------- base The base point on t
prince/manifolds.py:16
Functionmake_labels_and_names
(X)
prince/utils.py:33
Methodpartial_contributions_
Returns the contribution of each group's PCA axes to each global MFA component.
prince/mfa.py:516
Methodpartial_correlations_
Returns the correlations between each group's PCA axes and the global MFA axes.
prince/mfa.py:506
Methodpercentage_of_variance_
Returns the percentage of explained inertia per principal component.
prince/utils.py:57
Methodpercentage_of_variance_
Returns the percentage of explained inertia per principal component.
prince/mca.py:159
Methodplot
(self, X, x_component=0, y_component=1, show_partial_rows=False, **params)
prince/mfa.py:618
Methodplot
Plot the projected data in the tangent space. Parameters ---------- X Rotation data (same format as fit).
prince/pga.py:187
Methodplot_partial
Plot the partial axes correlations. Each arrow represents a group's PCA component projected onto the global MFA space. Arrows close t
prince/mfa.py:527
Methodreference_shape
Returns the final reference shape.
prince/gpa.py:182
Functionrotations_df
()
tests/test_pga.py:21
Methodrow_coordinates
Returns the row principal coordinates. Equivalent to transform().
prince/pga.py:178
Methodrow_cosine_similarities
Returns the cosine similarities between the rows and their principal components. The row cosine similarities are obtained by calculating the
prince/pca.py:299
Methodrow_cosine_similarities
(self, X)
prince/mfa.py:398
Methodrow_cosine_similarities
(self, X)
prince/famd.py:138
Methodrow_cosine_similarities
Squared cosine similarities (cos2) of each row on each component.
prince/mca.py:279
Methodrow_standard_coordinates
Returns the row standard coordinates. The row standard coordinates are obtained by dividing each row principal coordinate by it's ass
prince/pca.py:287
Methodrow_standard_coordinates
(self, X)
prince/mfa.py:392
Methodrow_standard_coordinates
(self, X)
prince/famd.py:132
Functionselect_active_columns
(method)
prince/ca.py:18
Functionselect_active_rows
(method)
prince/ca.py:28
Functionselect_active_variables
(method)
prince/pca.py:22
MethodsetUp
(self)
tests/test_gpa.py:12
Functionsmall_quats
Small synthetic quaternion dataset with known structure.
tests/test_pga.py:26
Functionstylize_axis
(ax, grid=True)
prince/plot.py:11
Methodtangent_dim
Dimension of the tangent space.
prince/manifolds.py:72
Methodtangent_dim
(self)
prince/manifolds.py:86
Methodtest_U
(self)
tests/test_svd.py:63
Methodtest_V
(self)
tests/test_svd.py:77
Functiontest_abdi_2007_correction
>>> wines = prince.datasets.load_burgundy_wines() >>> wines = wines.drop(columns=["Oak type"], level=0) >>> mca = prince.MCA(n_componen
tests/test_mca.py:361
Methodtest_cat_cols
(self)
tests/test_famd.py:65
Methodtest_category_coordinates
Figure 4: category-level coordinates (barycentres of row coordinates). FactoMineR: famd$quali.var$coord Each category's coordinate is
tests/test_famd.py:287
Methodtest_check_is_fitted
(self)
tests/test_famd.py:53
Methodtest_check_is_fitted
(self)
tests/test_mfa.py:63
Methodtest_check_is_fitted
(self)
tests/test_mfa.py:315
Methodtest_check_is_fitted
(self)
tests/test_pca.py:114
Methodtest_check_is_fitted
(self)
tests/test_ca.py:72
Methodtest_col_contrib
(self)
tests/test_famd.py:94
Methodtest_col_contrib
(self)
tests/test_mfa.py:140
Methodtest_col_contrib
(self)
tests/test_pca.py:184
Methodtest_col_contrib
(self)
tests/test_ca.py:133
Methodtest_col_coords
(self)
tests/test_famd.py:89
Methodtest_col_coords
(self)
tests/test_mfa.py:116
Methodtest_col_coords
(self)
tests/test_pca.py:170
Methodtest_col_coords
(self)
tests/test_mca.py:87
Methodtest_col_coords
(self)
tests/test_ca.py:126
Methodtest_col_cor
(self)
tests/test_mfa.py:124
Methodtest_col_cor
(self)
tests/test_pca.py:189
Methodtest_col_cos2
(self)
tests/test_mfa.py:132
Methodtest_col_cos2
(self)
tests/test_pca.py:177
Methodtest_col_cos2
(self)
tests/test_mca.py:100
Methodtest_col_cos2
(self)
tests/test_ca.py:138
Methodtest_column_contributions
(self)
tests/test_famd.py:234
Methodtest_column_contributions_sum_to_one
(self)
tests/test_famd.py:250
Methodtest_column_coordinates
(self, rotations_df)
tests/test_pga.py:116
Methodtest_column_coordinates
Figure 2: relationship square (r² for quanti, η² for quali). FactoMineR: famd$var$coord.
tests/test_famd.py:217
Methodtest_column_coordinates_index
Column outputs use a clean 2-level (group, variable) MultiIndex (issue #242). Categorical indicator labels read ``variable__category`` rather
tests/test_mfa.py:400
Functiontest_column_coordinates_labels_issue_242
Reproduce issue #242: clean (group, variable) MultiIndex labels for a mixed MFA.
tests/test_mfa.py:220
Methodtest_column_coordinates_method_not_implemented
The X-taking column_coordinates method is not implemented yet (see #242).
tests/test_mfa.py:427
Methodtest_copy
(self)
tests/test_gpa.py:77
Methodtest_correlation_circle
Figure 3: correlation circle for quantitative variables. FactoMineR: famd$quanti.var$coord Signed correlations between standardized q
tests/test_famd.py:256
Methodtest_different_seeds_give_different_output
(self, engine)
tests/test_svd.py:109
Methodtest_dominant_component_axis
The first component should align with the z-axis (largest variance).
tests/test_pga.py:123
Methodtest_eigenvalues
(self)
tests/test_famd.py:68
Methodtest_eigenvalues
(self)
tests/test_famd.py:128
Methodtest_eigenvalues
(self)
tests/test_mfa.py:75
Methodtest_eigenvalues
(self)
tests/test_mfa.py:325
Methodtest_eigenvalues
(self)
tests/test_pca.py:126
Methodtest_eigenvalues
(self)
tests/test_ca.py:95
Methodtest_eigenvalues_descending
(self, rotations_df)
tests/test_pga.py:61
Methodtest_eigenvalues_summary
(self, rotations_df)
tests/test_pga.py:104
Methodtest_explained_variance_ratio
(self, small_quats)
tests/test_pga.py:167
Methodtest_fit
(self)
tests/test_gpa.py:32
Methodtest_fit_bad_init
(self)
tests/test_gpa.py:44
Methodtest_fit_bad_input_size
(self)
tests/test_gpa.py:50
Methodtest_fit_mean
(self)
tests/test_gpa.py:40
Methodtest_fit_random
(self)
tests/test_gpa.py:36
Methodtest_fit_returns_self
(self, rotations_df)
tests/test_pga.py:47
Methodtest_fit_transform_equal
In our specific case of all-same-shape circles, the shapes should align perfectly.
tests/test_gpa.py:62
Methodtest_fit_transform_single
Aligning a single shape should return the same shape, just normalized.
tests/test_gpa.py:70
Methodtest_frechet_mean_is_unit_quaternion
(self, rotations_df)
tests/test_pga.py:56
Methodtest_global_random_state_is_not_mutated
(self, engine)
tests/test_svd.py:114
Methodtest_group_contrib
(self)
tests/test_mfa.py:150
Methodtest_group_contrib
(self)
tests/test_mfa.py:360
Methodtest_group_coords
(self)
tests/test_mfa.py:145
Methodtest_group_coords
(self)
tests/test_mfa.py:355
← previousnext →101–200 of 259, ranked by callers