-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes fit_transform_with_metadata() API, refactors ProjectorModel.
* Removes fit_transform_with_metadata() API from LIT. * Moves ProjectorModel from components/projector.py to api/model.py to make it accessible to lib/ and components/ modules. * Updates components/projector.py type annotations to reference lit_nlp.api.model.ProjectorModel. * Refactors PCAModel to inherit from lit_nlp.api.model.ProjectorModel. * Refactors UmapModel to inherit from lit_nlp.api.model.ProjectorModel. * Refactors CachingModelWrapper.fit_transform() to check inheritance from ProjectorModel before calling wrapped.fit_transform(). * Removes fit_transform() API from Model base class. PiperOrigin-RevId: 552842861
- Loading branch information
1 parent
3f38adb
commit e30e59a
Showing
5 changed files
with
40 additions
and
58 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
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