Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaxHalford/prince
/ functions
Functions
259 in github.com/MaxHalford/prince
⨍
Functions
259
◇
Types & classes
30
↳
Endpoints
34
Method
group_cosine_similarities_
Returns the quality of representation of each group on each component.
prince/mfa.py:451
Method
inverse_transform
(self, X)
prince/mfa.py:386
Method
inverse_transform
(self, X)
prince/famd.py:126
Method
inverse_transform
Map projected coordinates back to quaternions on the manifold. Parameters ---------- X Projected coordinates from
prince/pga.py:158
Function
load_beers
Beers dataset. The data is taken from https://github.com/philipperemy/beer-dataset.
prince/datasets.py:121
Function
load_burgundy_wines
Burgundy wines dataset. Source: https://personal.utdallas.edu/~herve/Abdi-MCA2007-pretty.pdf
prince/datasets.py:85
Function
load_decathlon
The Decathlon dataset from FactoMineR.
prince/datasets.py:42
Function
load_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
Function
load_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
Function
load_hearthstone_cards
Hearthstone standard cards. Source: https://gist.github.com/MaxHalford/32ed2c80672d7391ec5b4e6f291f14c1
prince/datasets.py:76
Function
load_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
Function
load_premier_league
Premier League dataset. The data is taken from Wikipedia, using pd.read_html.
prince/datasets.py:141
Function
load_punctuation_marks
Punctuation marks of six French writers.
prince/datasets.py:71
Function
load_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
Method
log
Logarithmic map: project manifold points to tangent space at base. Parameters ---------- base The base point on t
prince/manifolds.py:16
Function
make_labels_and_names
(X)
prince/utils.py:33
Method
partial_contributions_
Returns the contribution of each group's PCA axes to each global MFA component.
prince/mfa.py:516
Method
partial_correlations_
Returns the correlations between each group's PCA axes and the global MFA axes.
prince/mfa.py:506
Method
percentage_of_variance_
Returns the percentage of explained inertia per principal component.
prince/utils.py:57
Method
percentage_of_variance_
Returns the percentage of explained inertia per principal component.
prince/mca.py:159
Method
plot
(self, X, x_component=0, y_component=1, show_partial_rows=False, **params)
prince/mfa.py:618
Method
plot
Plot the projected data in the tangent space. Parameters ---------- X Rotation data (same format as fit).
prince/pga.py:187
Method
plot_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
Method
reference_shape
Returns the final reference shape.
prince/gpa.py:182
Function
rotations_df
()
tests/test_pga.py:21
Method
row_coordinates
Returns the row principal coordinates. Equivalent to transform().
prince/pga.py:178
Method
row_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
Method
row_cosine_similarities
(self, X)
prince/mfa.py:398
Method
row_cosine_similarities
(self, X)
prince/famd.py:138
Method
row_cosine_similarities
Squared cosine similarities (cos2) of each row on each component.
prince/mca.py:279
Method
row_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
Method
row_standard_coordinates
(self, X)
prince/mfa.py:392
Method
row_standard_coordinates
(self, X)
prince/famd.py:132
Function
select_active_columns
(method)
prince/ca.py:18
Function
select_active_rows
(method)
prince/ca.py:28
Function
select_active_variables
(method)
prince/pca.py:22
Method
setUp
(self)
tests/test_gpa.py:12
Function
small_quats
Small synthetic quaternion dataset with known structure.
tests/test_pga.py:26
Function
stylize_axis
(ax, grid=True)
prince/plot.py:11
Method
tangent_dim
Dimension of the tangent space.
prince/manifolds.py:72
Method
tangent_dim
(self)
prince/manifolds.py:86
Method
test_U
(self)
tests/test_svd.py:63
Method
test_V
(self)
tests/test_svd.py:77
Function
test_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
Method
test_cat_cols
(self)
tests/test_famd.py:65
Method
test_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
Method
test_check_is_fitted
(self)
tests/test_famd.py:53
Method
test_check_is_fitted
(self)
tests/test_mfa.py:63
Method
test_check_is_fitted
(self)
tests/test_mfa.py:315
Method
test_check_is_fitted
(self)
tests/test_pca.py:114
Method
test_check_is_fitted
(self)
tests/test_ca.py:72
Method
test_col_contrib
(self)
tests/test_famd.py:94
Method
test_col_contrib
(self)
tests/test_mfa.py:140
Method
test_col_contrib
(self)
tests/test_pca.py:184
Method
test_col_contrib
(self)
tests/test_ca.py:133
Method
test_col_coords
(self)
tests/test_famd.py:89
Method
test_col_coords
(self)
tests/test_mfa.py:116
Method
test_col_coords
(self)
tests/test_pca.py:170
Method
test_col_coords
(self)
tests/test_mca.py:87
Method
test_col_coords
(self)
tests/test_ca.py:126
Method
test_col_cor
(self)
tests/test_mfa.py:124
Method
test_col_cor
(self)
tests/test_pca.py:189
Method
test_col_cos2
(self)
tests/test_mfa.py:132
Method
test_col_cos2
(self)
tests/test_pca.py:177
Method
test_col_cos2
(self)
tests/test_mca.py:100
Method
test_col_cos2
(self)
tests/test_ca.py:138
Method
test_column_contributions
(self)
tests/test_famd.py:234
Method
test_column_contributions_sum_to_one
(self)
tests/test_famd.py:250
Method
test_column_coordinates
(self, rotations_df)
tests/test_pga.py:116
Method
test_column_coordinates
Figure 2: relationship square (r² for quanti, η² for quali). FactoMineR: famd$var$coord.
tests/test_famd.py:217
Method
test_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
Function
test_column_coordinates_labels_issue_242
Reproduce issue #242: clean (group, variable) MultiIndex labels for a mixed MFA.
tests/test_mfa.py:220
Method
test_column_coordinates_method_not_implemented
The X-taking column_coordinates method is not implemented yet (see #242).
tests/test_mfa.py:427
Method
test_copy
(self)
tests/test_gpa.py:77
Method
test_correlation_circle
Figure 3: correlation circle for quantitative variables. FactoMineR: famd$quanti.var$coord Signed correlations between standardized q
tests/test_famd.py:256
Method
test_different_seeds_give_different_output
(self, engine)
tests/test_svd.py:109
Method
test_dominant_component_axis
The first component should align with the z-axis (largest variance).
tests/test_pga.py:123
Method
test_eigenvalues
(self)
tests/test_famd.py:68
Method
test_eigenvalues
(self)
tests/test_famd.py:128
Method
test_eigenvalues
(self)
tests/test_mfa.py:75
Method
test_eigenvalues
(self)
tests/test_mfa.py:325
Method
test_eigenvalues
(self)
tests/test_pca.py:126
Method
test_eigenvalues
(self)
tests/test_ca.py:95
Method
test_eigenvalues_descending
(self, rotations_df)
tests/test_pga.py:61
Method
test_eigenvalues_summary
(self, rotations_df)
tests/test_pga.py:104
Method
test_explained_variance_ratio
(self, small_quats)
tests/test_pga.py:167
Method
test_fit
(self)
tests/test_gpa.py:32
Method
test_fit_bad_init
(self)
tests/test_gpa.py:44
Method
test_fit_bad_input_size
(self)
tests/test_gpa.py:50
Method
test_fit_mean
(self)
tests/test_gpa.py:40
Method
test_fit_random
(self)
tests/test_gpa.py:36
Method
test_fit_returns_self
(self, rotations_df)
tests/test_pga.py:47
Method
test_fit_transform_equal
In our specific case of all-same-shape circles, the shapes should align perfectly.
tests/test_gpa.py:62
Method
test_fit_transform_single
Aligning a single shape should return the same shape, just normalized.
tests/test_gpa.py:70
Method
test_frechet_mean_is_unit_quaternion
(self, rotations_df)
tests/test_pga.py:56
Method
test_global_random_state_is_not_mutated
(self, engine)
tests/test_svd.py:114
Method
test_group_contrib
(self)
tests/test_mfa.py:150
Method
test_group_contrib
(self)
tests/test_mfa.py:360
Method
test_group_coords
(self)
tests/test_mfa.py:145
Method
test_group_coords
(self)
tests/test_mfa.py:355
← previous
next →
101–200 of 259, ranked by callers