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

Allow dataset_names to update without package re-release #189

Open
trangdata opened this issue Feb 28, 2025 · 0 comments
Open

Allow dataset_names to update without package re-release #189

trangdata opened this issue Feb 28, 2025 · 0 comments

Comments

@trangdata
Copy link
Collaborator

Currently, metadata about the datasets like df_summary and dataset_names are static. This means each time a dataset is changed/added, we would need to re-release the package so everything is updated. I propose we make these into functions that fetch related metadata in real time (perhaps with a session cache). I already made this change in pmlbr EpistasisLab/pmlbr#5 (new release coming on CRAN in a day or two) but I'll leave the python implementation for someone else with more expertise. 🙏🏽 @lacava @weixuanfu

df_summary = pandas.read_csv(StringIO(data.decode("utf-8")) , sep='\t')
regression_dataset_names = df_summary.query('task=="regression"')['dataset'].tolist()
classification_dataset_names = df_summary.query('task=="classification"')['dataset'].tolist()
dataset_names = regression_dataset_names + classification_dataset_names

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

1 participant