Giter Club home page Giter Club logo

bayesian-tutorial_2019's Introduction

Introdution to Bayesian Inference

Chris Fonnesbeck

Senior Quantitative Analyst, The New York Yankees

Binder

Getting Python

How do you obtain and configure Python?

Python comes pre-installed on some systems, but I recommend using the Anaconda distribution because it includes enhancements that make configuring and maintaining Python on your computer much easier. Anaconda is freely available from the Anaconda download page.

Download the Python 3.7 installer for your system, and execute the file, following the on-screen instructions.

System requirements

  • Operating system: Windows 7 or newer, 64-bit macOS 10.10+, or Linux, including Ubuntu, RedHat, CentOS 6+, and others.
  • If your operating system is older than what is currently supported, you can find older versions of the Anaconda installers in our archive that might work for you.
  • System architecture: Windows- 64-bit x86, 32-bit x86; MacOS- 64-bit x86; Linux- 64-bit x86, 64-bit Power8/Power9.
  • Minimum 5 GB disk space to download and install.

On Windows, macOS, and Linux, it is best to install Anaconda for the local user, which does not require administrator permissions and is the most robust type of installation.

During the installation, you will be asked if Anaconda should modify the PATH variable on your machine. It is recommended that you allow this, as it permits Anaconda to become the default Python installation on your machine, incase there are other versions already on your system.

Once installed, you can run Python from either the native terminal (macOS or Linux) or the Anaconda Prompt (Windows).

conda

One of the great advantages to using the Anaconda Python distribution is the conda utility that is bundled with it. Conda is a powerful package manager and environment manager that you use with command line commands at the Anaconda Prompt for Windows, or in a terminal window for macOS or Linux.

For example, we can use it to install third-party packages via conda install:

Or it can be used to update packages that are already installed:

And if you are unsure about whether a package is available in the Conda repository, you can search for it:

conda environments

Conda allows you to create separate environments containing files, packages and their dependencies that will not interact with other environments.

Python environments

When you begin using conda, you already have a default environment named base. You don't want to put programs into your base environment, though. Create separate environments to keep your programs isolated from each other.

For example, we can create a new environment and install a package in it:

Conda will determine the dependencies of any package that you specify for installation, and install them as well.

(via xkcd)

Once created, Conda tells you how to activate the environment, via conda activate.

The repository for this tutorial contains a file called environment.yml that includes a list of all the packages used for the tutorial. If you run

conda env create

in the directory containing environment.yml it will create the environment for you and install all of the packages listed.

bayesian-tutorial_2019's People

Contributors

fonnesbeck avatar

Watchers

 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.