GithubHelp home page GithubHelp logo

datacamp_tutorials's Introduction

Introduction

This repository contains various tutorials written for DataCamp.

How to run code?

I like to keep the Python setup in my OS very simple and create virtual environments with required custom libraries depending on the project I want to run. I would very much like to use Docker for this purpose, as that is the de-facto standard for process isolation. However since I am using Windows there is no way for me to expose my GPU to Docker. Thus, I opt to conda and Python virtual environment.

Using conda environment

  1. Download and install Anaconda
  2. Make sure conda is in the system PATH by trying conda --version on a terminal
  3. Create a conda virtual environment using conda create -n datacamp.tutorials python=3.5
  4. cd into the project directory
  5. Install tensorflow as follows
    • If you do not have a GPU use: conda install -n datacamp.tutorial --yes --file requirements.txt
    • If you do have a GPU use: conda install -n datacamp.tutorials --yes --file requirements_gpu.txt
  6. Activate the newly created environment with activate datacamp.tutorials

Further reading on how to setup conda environments: Here

Using Python virtualenv

I prefer conda because numpy, pandas and tensorflow CPU operations are much faster than when used with pip according to this article. But if you prefer to use Python virtualenv, use the following steps.

  1. Download and install Python 3.5
  2. Now install virtualenv with pip3 install virtualenv
  3. cd into the project directory
  4. Create a virtual environment with virtualenv -p <path to python 3.5> datacamp.tutorials
  5. Activate the virtual environment as follows
    • If you are on Windows: <project_dir>\datacamp.tutorials\Scripts\activate
    • If you are on Ubuntu: source <project_dir>\datacamp.tutorials\bin\activate
  6. Install tensorflow as follows
    • If you do not have a GPU use: pip3 install -r requirements.txt
    • If you do have a GPU use: pip3 install -r requirements_gpu.txt

datacamp_tutorials's People

Contributors

thushv89 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.