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

Port some data container functionality out of FastAI.jl #14

Closed
lorenzoh opened this issue Jan 11, 2022 · 0 comments · Fixed by #21
Closed

Port some data container functionality out of FastAI.jl #14

lorenzoh opened this issue Jan 11, 2022 · 0 comments · Fixed by #21

Comments

@lorenzoh
Copy link
Contributor

FastAI.jl currently has some data container functionality that I've found very useful. On the last ML ecosystem call, I and @darsnack + @ToucheSir discussed that it makes sense to have some of that in MLUtils.jl. The relevant FastAI.jl code can be found here: transformations.jl

Specifically, there are some data container transformations that I believe should be ported:

  • mapobs(f, data), a lazy map over any data container. Generally useful
  • groupobs(f, data), returns a Dict with keys return values of f(obs) and values a datasubset of obss that returned the same f(obs). Not sure if Dict is the right type here, but NamedTuple is too restrictive. Useful for example to create train/test splits based on some value in each observation.
  • filterobs(f, data), does what you'd expect, returning a datasubset
  • joinobs(datas...) treats multiple data containers as a single one. Open to a better name for this.

There are also some data container primitives for working with tables and files, but let's put that into another 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.

1 participant