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

Method to anonymise EmbeddedDataFrame #10

Closed
Tracked by #8
matweldon opened this issue Mar 26, 2024 · 2 comments · Fixed by #52
Closed
Tracked by #8

Method to anonymise EmbeddedDataFrame #10

matweldon opened this issue Mar 26, 2024 · 2 comments · Fixed by #52
Assignees

Comments

@matweldon
Copy link
Collaborator

No description provided.

@matweldon matweldon mentioned this issue Mar 26, 2024
5 tasks
@SStock1
Copy link
Collaborator

SStock1 commented May 8, 2024

@matweldon would you be able to add a description to this.

@matweldon
Copy link
Collaborator Author

The app already does this -- it would just be a convenience function to tidy up the API:

Basically a method that removes any columns except 'bf_indices', 'thresholds' and 'bf_norms' (and a user-provided list of cols to keep)

edf = EmbeddedDataFrame(df, embedder)
edf.anonymise()
# or edf.anonymise(cols_to_keep = ['idx']) to keep the 'idx' column
edf.to_json('path/to/file.json')

@SStock1 SStock1 self-assigned this May 10, 2024
@SStock1 SStock1 linked a pull request May 13, 2024 that will close this issue
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 a pull request may close this issue.

2 participants