Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

decouple parser from feature-loading/transform #155

Merged
merged 1 commit into from
Aug 5, 2022
Merged

Conversation

cosmicBboy
Copy link
Contributor

Signed-off-by: Niels Bantilan niels.bantilan@gmail.com

This PR decouples the runtime and type dependency between the feature loader/transformer and parser. Before this PR, the Dataset.get_features method invokes feature_loader -> parser -> feature_transformer. This was so that the parser is re-used to grab features from the raw feature data.

This isn't great because it adds a level of complexity that isn't needed: basically the predictor should be able to handle inputs from both parser and feature_loader -> feature_transformer. This PR does this decoupling so that the end-user only has to think about predicting from:

  • reader -> ... -> parser -> predictor : when calling model.predict(**reader_kwargs)
  • feature_loader -> feature_transformer -> predictor: when calling model.predict(features=features)

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
@cosmicBboy cosmicBboy merged commit 34fe421 into main Aug 5, 2022
@cosmicBboy cosmicBboy deleted the feature-loading branch August 5, 2022 19:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant