Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Embedding mode #1163

Merged
merged 2 commits into from
Jun 28, 2023
Merged

[ENH] Embedding mode #1163

merged 2 commits into from
Jun 28, 2023

Conversation

paxcema
Copy link
Contributor

@paxcema paxcema commented Jun 26, 2023

This feature enables training a Lightwood predictor without any mixers or subsequent analysis if the embedding_only flag is enabled in the problem definition. The resulting output is the concatenation of encoded representations learnt by each encoder, a.k.a. the "embedding".

Alternatively, normally trained predictors can also return these "embeddings" if the return_embedding argument is set to True.

@paxcema paxcema requested a review from torrmal June 26, 2023 21:02
@@ -220,6 +221,7 @@ def from_dict(obj: Dict):
ignore_features = obj.get('ignore_features', [])
fit_on_all = obj.get('fit_on_all', True)
use_default_analysis = obj.get('use_default_analysis', True)
embedding_only = obj.get('embedding_only', False)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on the parameter name @torrmal?

@@ -453,6 +456,7 @@ class PredictionArguments:
simple_ts_bounds: bool = False
time_format: str = ''
force_ts_infer: bool = False
return_embedding: bool = False
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on the parameter name @torrmal?

@paxcema paxcema requested a review from dusvyat June 27, 2023 13:34
@paxcema paxcema merged commit 7d01b45 into staging Jun 28, 2023
7 checks passed
@paxcema paxcema mentioned this pull request Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant