Code Monkey home page Code Monkey logo

ds-env's Introduction

An all-around data science conda environment focused on either pytorch or tensorflow with GPU support

*Only tried in Pop_OS (Ubuntu 22.04 LTS)
Use of mamba is highly recommended over the out-of-box conda for creating and removing the environment, since its significantly faster and works as a drop-in replacement, but be careful not to use to activate or deactivate the environment itself:

conda install mamba -n base -c conda-forge

Note: Makefile currently not working due to conda issues, see here.

Create environment:

mamba env create -f environment_{torch or tf}.yml
conda activate {torch or tf}_env

Re-create (first deactivate and remove, then create and activate with the previous steps)

conda deactivate
mamba env remove -n {torch or tf}_env -y

To test the correct configuration run (needs pytest to be installed in the base environment):

pytest

To install pretrained models:

python -m spacy download en_core_web_sm
python -m spacy download es_core_news_sm
python -m nltk.downloader popular
python -m textblob.download_corpora

TO-DO:

  • Rewrite makefile for automatic build and remove
  • Add option to makefile for tensorflow alternative
  • Add tests to check for gpu availability for each library

ds-env's People

Contributors

danielcastillac avatar

Watchers

 avatar  avatar

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.