-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MRG] Uniformize initialization for all algorithms (#195)
* initiate PR * Revert "initiate PR" This reverts commit a2ae9e1. * FEAT: uniformize init for NCA and RCA * Let the check of num_dims be done in the other PR * Add metric initialization for algorithms that learn a mahalanobis matrix * Add initialization for MLKR * FIX: fix error message for dimension * FIX fix StringRepr for MLKR * FIX tests by reshaping to the right dataset size * Remove lda in docstring of MLKR * MAINT: Add deprecation for previous initializations * Update tests with new initialization * Make random init for mahalanobis metric generate an SPD matrix * Ensure the input mahalanobis metric initialization is symmetric, and say it should be SPD * various fixes * MAINT: various refactoring - MLKR: update default test init - SDML: refactor prior_inv * FIX fix default covariance for SDML in tests * Enhance docstring * Set random state for SDML * Fix merge remove_spaces that was forgotten * Fix indent * XP: try to change the way we choose n_components to see if it fixes the test * Revert "XP: try to change the way we choose n_components to see if it fixes the test" This reverts commit e86b61b. * Be more tolerant in test * Add test for singular covariance matrix * Fix test_singular_covariance_init * DOC: update docstring saying pseudo-inverse * Revert "Fix test_singular_covariance_init" This reverts commit d2cc7ce. * Ensure definiteness before returning the inverse * wip deal with non definiteness * Rename init to prior for SDML and LSML * Update error messages with either prior or init * Remove message * A few nitpicks * PEP8 errors + change init in test * STY: PEP8 fixes * Address and remove TODOs * Replace init by prior for ITML * TST: fix ITML test with init changed into prior * Add precision for MMC * Add ChangedBehaviorWarning for the algorithms that changed * Address #195 (review) * Remove the warnings check since we now have a ChangedBehaviorWarning * Be more precise: it should not raise any ConvergenceWarningError * Address #195 (review) * FIX remaining comment * TST: update test error message * Improve readability * Address #195 (review) * TST: Fix docsting lmnn * Fix warning messages * Fix warnings messages changed
- Loading branch information
1 parent
3899653
commit 130cbad
Showing
18 changed files
with
1,626 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.