Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

38 add support to label logs #44

Merged
merged 8 commits into from
Jul 15, 2024

Conversation

Broden222
Copy link
Contributor

@Broden222 Broden222 commented Jun 27, 2024

Closes #38 cc @EandrewJones
Should be logs = setup(json_file, "datetime")

Copy link
Contributor

@EandrewJones EandrewJones left a comment

Choose a reason for hiding this comment

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

Alright, I set up the file this way to help structure things in a digestible way for you, but now we need to actually integrate this into our library. Right now this file lives at examples/labels.py which is actually outside the distill library and therefore won't get bundled up and shipped to users.

So a few things need to happen:

  1. Pull out the FeatureDefinition class and put it in its own file located at distill/core/feature_definition.py, you will have to create the core directory.
  2. Pull out the label_features function and add it to distill/process/transform.py
  3. We need to take the test cases under if __name__ == "__main__" and convert them into proper tests. See the code located at tests/.

Try to taking a stab at number three on your own. If you need help. Let me know.

…, should the label function remain in the transform.py as well?
Comment on lines 74 to 75
#file = open(os.path.join(DATA_DIR, "sample_data.json"), "r")
#logs = json.load(file)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove.

@EandrewJones EandrewJones merged commit c127bc9 into apache:master Jul 15, 2024
4 checks passed
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.

feat(FeatureDefintion): Add support to label logs
2 participants