-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge: Refactor Strategies to Recommenders (#146)
- move strategies to recommender module - restructure recommender module to have `.meta` and `.pure` for subpackages - new class `MetaRecommender` from which old strategies now derive, their name has changed from `<xyz>Strategy` to `<xyz>MetaRecommender` - deprecations for old strategies - rename `Recommender` to `PureRecommender` in analogy to `MetaRecommender` - rename `NaiveHybridRecommender` to `NaiveHybridSpaceRecommender` - refactor tests - refactor examples - reduce transfer learning example parameters during SMOKE_TEST NOT included - Followup PR1: MyPy activation for recommenders - Followup PR2: user guide files in this PR can be mostly ignored, I have mainly fixed references in examples and user guides, but also their structure needs an overhaul (eg strategies don't exist anymore)
- Loading branch information
Showing
62 changed files
with
884 additions
and
638 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,33 @@ | ||
"""BayBE recommenders.""" | ||
|
||
from baybe.recommenders.bayesian.sequential_greedy import SequentialGreedyRecommender | ||
from baybe.recommenders.naive import NaiveHybridRecommender | ||
from baybe.recommenders.nonpredictive.clustering import ( | ||
from baybe.recommenders.meta.sequential import ( | ||
SequentialMetaRecommender, | ||
StreamingSequentialMetaRecommender, | ||
TwoPhaseMetaRecommender, | ||
) | ||
from baybe.recommenders.naive import NaiveHybridSpaceRecommender | ||
from baybe.recommenders.pure.bayesian.sequential_greedy import ( | ||
SequentialGreedyRecommender, | ||
) | ||
from baybe.recommenders.pure.nonpredictive.clustering import ( | ||
GaussianMixtureClusteringRecommender, | ||
KMeansClusteringRecommender, | ||
PAMClusteringRecommender, | ||
) | ||
from baybe.recommenders.nonpredictive.sampling import FPSRecommender, RandomRecommender | ||
from baybe.recommenders.pure.nonpredictive.sampling import ( | ||
FPSRecommender, | ||
RandomRecommender, | ||
) | ||
|
||
__all__ = [ | ||
"FPSRecommender", | ||
"GaussianMixtureClusteringRecommender", | ||
"KMeansClusteringRecommender", | ||
"PAMClusteringRecommender", | ||
"NaiveHybridRecommender", | ||
"NaiveHybridSpaceRecommender", | ||
"RandomRecommender", | ||
"TwoPhaseMetaRecommender", | ||
"SequentialGreedyRecommender", | ||
"SequentialMetaRecommender", | ||
"StreamingSequentialMetaRecommender", | ||
] |
Oops, something went wrong.