Skip to content
프로젝트

pydata/parallel-tutorial

GitHub에서 보기

소개

Python 병렬 컴퓨팅 튜토리얼 자료입니다.

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Parallel Python: Analyzing Large Datasets

Join the chat at https://gitter.im/pydata/parallel-tutorial

Student Goals

Students will walk away with a high-level understanding of both parallel problems and how to reason about parallel computing frameworks. They will also walk away with hands-on experience using a variety of frameworks easily accessible from Python.

Student Level

Knowledge of Python and general familiarity with the Jupyter notebook are assumed. This is generally aimed at a beginning to intermediate audience.

Outline

For the first half we cover basic ideas and common patterns in parallel computing, including embarrassingly parallel map, unstructured asynchronous submit, and large collections.

For the second half we cover complications arising from distributed memory computing and exercise the lessons learned in the first section by running informative examples on provided clusters.

  • Part one
    • Parallel Map
    • Asynchronous Futures
    • High Level Datasets
  • Part two
    • Scaling cross validation parameter search
    • Tabular data with map/submit
    • Tabular data with dataframes

Installation

  1. Download this repository:

    git clone https://github.com/pydata/parallel-tutorial
    

    or download as a zip file.

  2. Install Anaconda (large) or Miniconda (small)

  3. Create a new conda environment:

     conda env create -f environment.yml
     source activate parallel  # Linux OS/X
     activate parallel         # Windows
    
  4. If you want to use Spark (this is a large download):

     conda install -c conda-forge pyspark
    

Test your installation:

python -c "import concurrent.futures, dask, jupyter"

Dataset Preparation

We will generate a dataset for use locally. This will take up about 1GB of space in a new local directory, data/.

python prep.py

Part 1: Local Notebooks

Part one of this tutorial takes place on your laptop, using multiple cores. Run Jupyter Notebook locally and navigate to the notebooks/ directory.

jupyter notebook

The notebooks are ordered 1, 2, 3, so you can start with 01-map.ipynb

Part 2: Remote Clusters

Part two of this tutorial takes place on a remote cluster.

Visit the following page to start an eight-node cluster: https://pydata-parallel.jovyan.org/

If at any point your cluster fails you can always start a new one by re-visiting this page.

Warning: your cluster will be deleted when you close out. If you want to save your work you will need to Download your notebooks explicitly.

Slides

Brief, high level slides exist at http://pydata.github.io/parallel-tutorial/.

Sponsored Cloud Provider

We thank Google for generously providing compute credits on Google Compute Engine.

관련 프로젝트 살펴보기

불러오는 중…