• Complain

Holden Karau - Scaling Python with Dask

Here you can read online Holden Karau - Scaling Python with Dask full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2023, publisher: OReilly Media, Inc., genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Holden Karau Scaling Python with Dask

Scaling Python with Dask: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Scaling Python with Dask" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Dask is a free and open source library for parallel computing in Python that helps you scale your data science and machine learning workflows. With this quick but thorough resource, data scientists and Python programmers will learn how Dask provides APIs that make it easy to parallelize PyData libraries like NumPy, pandas, and scikit-learn.Author Holden Karau shows you how you can use Dask computations in local systems and then scale to the cloud for heavier workloads. This practical book explains why Dask is popular among industry experts and academics and used by organizations that include Walmart, Capital One, Harvard Medical School, and NASA.With this book, youll learn aboutWhat is Dask is, where you can use it, and how it compares to other toolsBatch data parallel processingKey distributed system concepts for Dask usersHigher-level APIs and building blocksIntegrated libraries, such as scikit-learn, pandas, and PyTorchHow to use Dask with GPUs

Holden Karau: author's other books


Who wrote Scaling Python with Dask? Find out the surname, the name of the author of the book and a list of all author's works by series.

Scaling Python with Dask — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Scaling Python with Dask" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Scaling Python with Dask by Holden Karau and Mika Kimmins Copyright 2023 - photo 1
Scaling Python with Dask

by Holden Karau and Mika Kimmins

Copyright 2023 Holden Karau and Mika Kimmins. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com.

  • Acquisitions Editor: Nicole Butterfield
  • Development Editor: Virginia Wilson
  • Production Editor: Gregory Hyman
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Kate Dullea
  • July 2023: First Edition
Revision History for the Early Release
  • 2022-03-09: First Release
  • 2022-08-18: Second Release
  • 2022-10-06: Third Release
  • 2022-11-22: Fourth Release

See http://oreilly.com/catalog/errata.csp?isbn=9781098119874 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. Scaling Python with Dask, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

The views expressed in this work are those of the authors and do not represent the publishers views. While the publisher and the authors have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-098-11987-4

Chapter 1. What Is Dask?
A Note for Early Release Readers

With Early Release ebooks, you get books in their earliest formthe authors raw and unedited content as they writeso you can take advantage of these technologies long before the official release of these titles.

This will be the first chapter of the final book. Please note that the GitHub repo will be made active later on.

If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the editor at .

Dask is a framework for parallelized computing with Python that scales from multiple cores on one machine to data centers with thousands of machines. It has both low-level task APIs and higher-level data-focused APIs. The low-level task APIs power Dasks integration with a wide variety of Python libraries. Having public APIs has allowed an ecosystem of tools to grow around Dask for various use cases.

Continuum Analytics, now known as Anaconda Inc, started the open-source DARPA funded BLAZE project, which has evolved into Dask.Continuum has participated in developing many essential libraries and even conferences in the Python data analytics space. Dask remains an open-source project, with much of its development now being supported by Coiled.

Dask is unique in the distributed computing ecosystem, by integrating popular data science, parallel, and scientific computing libraries. Dasks integration of different libraries allows developers to re-use much of their existing knowledge at scale. You can also frequently re-use some of your code with minimal changes.

Why Do You Need Dask?

Dask simplifies scaling analytics and ML code written in Python, allowing you to handle larger and more complex data and problems.Dask aims to fill the space where your existing tools, like pandas DataFrames, or your sci-kit machine learning pipelines start to become too slow (or do not succeed).While the term big data is perhaps less in vogue now than a few years ago, the data size of the problems has not gotten smaller, and the complexity of the computation and models have not gotten simpler.Dask allows you to primarily use the existing interfaces that you are used to (such as pandas and multiprocessing) while going beyond the scale of a single core or even a single machine.

Note

On the other hand, if all your data fits in memory on a laptop, and you can finish your analysis before youve had a chance to brew a cup of your favorite warm beverage, you probably dont need Dask yet.

Where Does Dask Fit in the Ecosystem?

Dask provides scalability to multiple, traditionally distinct tools. It is most often used to scale Python data libraries like pandas and NumPy. Dask extends existing tools for scaling, such as multiprocessing, allowing them to exceed their current limits of single machines to multi-core and multi-machine.

Figure 1-1 A quick Look at the ecosystem evolution From an abstraction point - photo 2
Figure 1-1. A quick Look at the ecosystem evolution

From an abstraction point of view, Dask sits above the machines and cluster management tools, allowing you to focus on Python code instead of the intricacies of machine-to-machine communication.

Figure 1-2 An alternate look at the ecosystem We say a problem is compute - photo 3
Figure 1-2. An alternate look at the ecosystem

We say a problem is compute bound if the limiting factor is not the amount of data, but rather the work we are doing on the data. Memory bound problems are problems where the computation is not the limiting factor, rather the ability to store all of the data in memory is the limiting factor. Some problems can exhibit both compute and memory bound problems as is often the case for large deep learning problems.

Multi-Core (think multi-threading) processing can help with compute problems (up to the limit of the number of cores in a machine). Generally multi-core processing is unable to help with memory bound problems as all CPUs have similar access to the memory footnote:[With the exception of non-uniform memory access (NUMA) systems

Accelerated processing, like specialized instruction sets or specialized hardware like tensor processing units or graphics processing units, is generally only useful for compute bound problems. Sometimes using accelerated processing can introduce memory bounding problems, as the amount of memory available to the accelerated computation can be smaller than the main system memory.

Multi-Machine processing is important both of these classes of problems, namely compute bound and memory bound problems. Since the number of cores you can get in a machine (affordable) are limited, even if a problem is only compute bound at certain scales you will need to consider multi-machine processing. More commonly, memory bound problems are a good fit for multi-machine scaling as Dask can often split up the data between the different machines.

Dask has both multi-core and multi-machine scaling, allowing you to scale your Python code as you best see fit.

Much of Dasks power comes from the tools and libraries built on top of it, which fit into their parts of the data processing ecosystem (such as BlazingSQL). Your background and interest will naturally shape how you first view Dask, so in the following subsections, Ill briefly discuss how you can use Dask for different types of problems, as well as how it compares to some existing tools.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Scaling Python with Dask»

Look at similar books to Scaling Python with Dask. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Scaling Python with Dask»

Discussion, reviews of the book Scaling Python with Dask and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.