Code Monkey home page Code Monkey logo

Comments (5)

jklaise avatar jklaise commented on May 19, 2024

Thank you for your interest in the library! I appreciate that we are a bit heavy on the dependencies, but we would need to think carefully which packages to split out as it would make several algorithms not work out-of-the-box for all use cases (e.g. we use tensorflow internally for optimization, opencv-python for downloading image datasets and spacy for NLP corpus use cases. One option would be to try split the dependencies across use cases, e.g. to enable nlp one could install alibi[nlp] or for image usecases alibi[cv]. Did you have any particular thoughts about this?

from alibi.

jamesmyatt avatar jamesmyatt commented on May 19, 2024

Using opencv-python just to download datasets seems like overkill, but otherwise that's pretty much what I had in mind. Dask is a pretty good example of doing this, using both extras (https://github.com/dask/dask/blob/master/setup.py) and subsidiary packages: (e.g. https://github.com/dask/dask-ml, https://github.com/dask/dask-xgboost)

It's also worth considering that, if people want to explain keras models, then they will already have keras installed, so it may not be necessary to have it as an explicit extra.

If you're using tensorflow internally, then clearly it's OK to have that as an install dependency. Although if it's only used for a small subset of the functionality, then it might still be worth having as an extra, like some tools do for their CLI (e.g. https://github.com/theskumar/python-dotenv/blob/master/setup.py).

from alibi.

jklaise avatar jklaise commented on May 19, 2024

Thanks for the feedback, I'm working on stripping out some of the unnecessary deps. For image downloading we can probably go with PIL instead of opencv which is much lighter.

from alibi.

jklaise avatar jklaise commented on May 19, 2024

@jamesmyatt I've slimmed down the package a little in v0.2.1. For now we will not split it up depending on the use case, but this might change as the functionality grows and the API stabilises. Probably the heaviest dependency is tensorflow, it's quite key for some of the underlying optimization algorithms, but on the other hand not every method will use it. I will keep this issue open for now for further discussion.

from alibi.

jklaise avatar jklaise commented on May 19, 2024

Will close for now as currently running a fairly minimal set of dependencies for what we want to do.

from alibi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.