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

compute list of predictions given a dataset and list of selections #2

Closed
kirangadhave opened this issue May 30, 2023 · 0 comments
Closed
Assignees

Comments

@kirangadhave
Copy link
Member

kirangadhave commented May 30, 2023

If we decide on the shape of the prediction object, it would be helpful to generate Python type-hints to go along with Typescript types.

The prediction object should include the following:

name - display name
algorithm - the name of the exact algorithm
params - params that are required to rerun the algorithm
dimensions - list of dimensions considered during computation
output - list of points selected by the algorithm
rank - similarity score compared to the user selection
metadata - extra data that would be algorithm-specific. This is used to render the output on the screen. e.g., for linear regression, it includes the slope and intercept.

The dataset can be a dataframe for now, but we should ideally accept json, file paths, etc. and convert it to dataframe

The list of selections would be indexes of the dataset OR values of unique id field. I will have to think about this, but indexes should be fine for now

@kirangadhave kirangadhave transferred this issue from visdesignlab/persist May 30, 2023
@kirangadhave kirangadhave changed the title a function that takes a dataset and a list of selections and returns a ranked list of inferred intent predictions. compute list of predictions given a dataset and list of selections May 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

No branches or pull requests

2 participants