وبلاگ بلیان

NumPy: Beginner's Guide - Third Edition

معرفی کتاب «NumPy: Beginner's Guide - Third Edition» نوشتهٔ Ivan Idris، منتشرشده توسط نشر Packt Publishing در سال 2015. این کتاب در 2 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است. «NumPy: Beginner's Guide - Third Edition» در دستهٔ بدون دسته‌بندی قرار دارد.

In todays world of science and technology, its all about speed and flexibility. When it comes to scientific computing, NumPy tops the list. NumPy will give you both speed and high productivity. This book will walk you through NumPy with clear, step-by-step examples and just the right amount of theory. The book focuses on the fundamentals of NumPy, including array objects, functions, and matrices, each of them explained with practical examples. You will then learn about different NumPy modules while performing mathematical operations such as calculating the Fourier transform, finding the inverse of a matrix, and determining eigenvalues, among many others. This book is a one-stop solution to knowing the ins and outs of the vast NumPy library, empowering you to use its wide range of mathematical features to build efficient, high-speed programs. Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: A Tour of Interactive Computing with IPython; Introduction; Introducing the IPython notebook; Getting started with exploratory data analysis in IPython; Introducing the multidimensional array in NumPy for fast array computations; Creating an IPython extension with custom magic commands; Mastering IPython''s configuration system; Creating a simple kernel for IPython; Chapter 2: Best Practices in Interactive Computing; Introduction. Choosing (or not) between Python 2 and Python 3Efficient interactive computing workflows with IPython; Learning the basics of the distributed version control system Git; A typical workflow with Git branching; Ten tips for conducting reproducible interactive computing experiments; Writing high-quality Python code; Writing unit tests with nose; Debugging your code with IPython; Chapter 3: Mastering the Notebook; Introduction; Teaching programming in the notebook with IPython blocks; Converting an IPython notebook to other formats with nbconvert; Adding custom controls in the notebook toolbar. Customizing the CSS style in the notebookUsing interactive widgets a piano in the notebook; Creating a custom JavaScript widget in the notebook a spreadsheet editor for pandas; Processing webcam images in real time from the notebook; Chapter 4: Profiling and Optimization; Introduction; Evaluating the time taken by a statement in IPython; Profiling your code easily with cProfile and IPython; Profiling your code line-by-line with line_profiler; Profiling the memory usage of your code with memory_profiler; Understanding the internals of NumPy to avoid unnecessary array copying. Using stride tricks with NumPyImplementing an efficient rolling average algorithm with stride tricks; Making efficient array selections in NumPy; Processing huge NumPy arrays with memory mapping; Manipulating large arrays with HDF5 and PyTables; Manipulating large heterogeneous tables with HDF5 and PyTables; Chapter 5: High-performance Computing; Introduction; Accelerating pure Python code with Numba and Just-In-Time compilation; Accelerating array computations with Numexpr; Wrapping a C library in Python with ctypes; Accelerating Python code with Cython. Optimizing Cython code by writing less Python and more CReleasing the GIL to take advantage of ; multi-core processors with Cython and OpenMP; Writing massively parallel code for NVIDIA graphics cards (GPUs) with CUDA; Writing massively parallel code for heterogeneous platforms with OpenCL; Distributing Python code across multiple cores with IPython; Interacting with asynchronous parallel tasks in IPython; Parallelizing code with MPI in IPython; Trying the Julia language in the notebook; Chapter 6: Advanced Visualization; Introduction; Making nicer matplotlib figures with prettyplotlib. Quick solutions to complex numerical problems in physics, applied mathematics, and science with SciPy In Detail SciPy is an open source Python library used to perform scientific computing. The SciPy (Scientific Python) package extends the functionality of NumPy with a substantial collection of useful algorithms. The book starts with a brief description of the SciPy libraries, followed by a chapter that is a fun and fast-paced primer on array creation, manipulation, and problem-solving. You will also learn how to use SciPy in linear algebra, which includes topics such as computation of eigenvalues and eigenvectors. Furthermore, the book is based on interesting subjects such as definition and manipulation of functions, computation of derivatives, integration, interpolation, and regression. You will also learn how to use SciPy in signal processing and how applications of SciPy can be used to collect, organize, analyze, and interpret data. By the end of the book, you will have fast, accurate, and easy-to-code solutions for numerical and scientific computing applications. What You Will Learn Get to know the benefits of using the combination of Python, NumPy, SciPy, and matplotlib as a programming environment for scientific purposes Create and manipulate an object array used by SciPy Use SciPy with large matrices to compute eigenvalues and eigenvectors Focus on construction, acquisition, quality improvement, compression, and feature extraction of signals Make use of SciPy to collect, organize, analyze, and interpret data, with examples taken from statistics and clustering Acquire the skill of constructing a triangulation of points, convex hulls, Voronoi diagrams, and many similar applications Find out ways that SciPy can be used with other languages such as C/C++, Fortran, and MATLAB/Octave Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you

In data science, it is difficult to present interesting visual or technical content, as it involves scientific notations that are not easy to type in a normal document format. IPython provides a web-based UI called Notebook, which creates a working environment for interactive computing that combines code execution with computational documents. IPython Notebook makes the task simpler as it was developed for scientific programming to solve larger problems through a series of smaller programs. IPython Notebook is used to learn Python in a fun and interactive way and to do some serious parallel / technical computing.

The book begins with an introduction to the efficient use of IPython Notebook for interactive computation. The book then focuses on the integration of technologies such as matplotlib, pandas, and SciPy. The book is aimed at empowering you to work with IPython Notebook for interactive computing, configuring it, creating your own notebooks / research documents. You will learn how IPython lets you perform efficient computations through examples with NumPy, data analysis with pandas, and visualization with matplotlib.

With its widely acclaimed web-based notebook, IPython is an ideal gateway to data analysis and numerical computing in Python. This book contains many ready-to-use focused recipes for high-performance scientific computing and data analysis. You will learn how to: code better by writing high-quality, readable, and well-tested programs; profiling and optimizing your code, and conducting reproducible interactive computing experiments; master all of the new features of the IPython notebook, including the interactive HTML/JavaScript widgets; analyze data with Bayesian and frequentist statistics (Pandas, PyMC, and R), and learn from data with machine learning (scikit-learn); gain insight into signals, images, and sounds with SciPy, scikit-image, and OpenCV; write blazingly fast Python programs with NumPy, PyTables, ctypes, Numba, Cython, OpenMP, GPU programming (CUDA and OpenCL), parallel IPython, MPI, and many more. -- Edited summary from book With its widely acclaimed web-based notebook, IPython is an ideal gateway to data analysis and numerical computing in Python. This book contains many ready-to-use focused recipes for high-performance scientific computing and data analysis. You will learn how to: code better by writing high-quality, readable, and well-tested programs; profiling and optimizing your code, and conducting reproducible interactive computing experiments; master all of the new features of the IPython notebook, including the interactive HTML/JavaScript widgets; analyze data with Bayesian and frequentist statistics (Pandas, PyMC, and R), and learn from data with machine learning (scikit-learn); gain insight into signals, images, and sounds with SciPy, scikit-image, and OpenCV; write blazingly fast Python programs with NumPy, PyTables, ctypes, Numba, Cython, OpenMP, GPU programming (CUDA and OpenCL), parallel IPython, MPI, and many more. -- Quatrième de couverture Key FeaturesBook DescriptionWhat you will learnGet to know the benefits of using the combination of Python, NumPy, SciPy, and matplotlib as a programming environment for scientific purposesCreate and manipulate an object array used by SciPyUse SciPy with large matrices to compute eigenvalues and eigenvectorsFocus on construction, acquisition, quality improvement, compression, and feature extraction of signalsMake use of SciPy to collect, organize, analyze, and interpret data, with examples taken from statistics and clusteringAcquire the skill of constructing a triangulation of points, convex hulls, Voronoi diagrams, and many similar applicationsFind out ways that SciPy can be used with other languages such as C/C++, Fortran, and MATLAB/OctaveWho this book is forThis book targets programmers and scientists who have basic Python knowledge and who are keen to perform scientific and numerical computations with SciPy. This learner's guide will help you understand how to use the features of pandas for interactive data manipulation and analysis. This book is your ideal guide to learning about pandas, all the way from installing it to creating one- and two-dimensional indexed data structures, indexing and slicing-and-dicing that data to derive results, loading data from local and Internet-based resources, and finally creating effective visualizations to form quick insights. You start with an overview of pandas and NumPy and then dive into the details of pandas, covering pandas' Series and DataFrame objects, before ending with a quick review of using pandas for several problems in finance. With the knowledge you gain from this book, you will be able to quickly begin your journey into the exciting world of data science and analysis Key FeaturesBook DescriptionWhat you will learnInstall NumPy, matplotlib, SciPy, and IPython on various operating systemsUse NumPy array objects to perform array operationsFamiliarize yourself with commonly used NumPy functionsUse NumPy matrices for matrix algebraWork with the NumPy modules to perform various algebraic operationsTest NumPy code with the numpy.testing modulePlot simple plots, subplots, histograms, and more with matplotlibWho this book is forThis book is for the scientists, engineers, programmers, or analysts looking for a high-quality, open source mathematical library. Knowledge of Python is assumed. Also, some affinity, or at least interest, in mathematics and statistics is required. However, I have provided brief explanations and pointers to learning resources.

About This Book

  • Learn to manipulate, visualize, and analyze a wide range of financial data with the help of built-in functions and programming in R
  • Understand the concepts of financial engineering and create trading strategies for complex financial instruments
  • Explore R for asset and liability management and capital adequacy modeling

Who This Book Is For

This book is intended for those who want to learn how to use R's capabilities to build models in quantitative finance at a more advanced level. If you wish to perfectly take up the rhythm of the chapters, you need to be at an intermediate level in quantitative finance and you also need to have a reasonable knowledge of R.

IPython is at the heart of the Python scientific stack. With its widely acclaimed web-based notebook, IPython is today an ideal gateway to data analysis and numerical computing in Python.

IPython Interactive Computing and Visualization Cookbook contains many ready-to-use focused recipes for high-performance scientific computing and data analysis. The first part covers programming techniques, including code quality and reproducibility; code optimization; high-performance computing through dynamic compilation, parallel computing, and graphics card programming. The second part tackles data science, statistics, machine learning, signal and image processing, dynamical systems, and pure and applied mathematics.

About This BookEmploy the use of pandas for data analysis closely to focus more on analysis and less on programmingGet programmers comfortable in performing data exploration and analysis on Python using pandasStep-by-step demonstration of using Python and pandas with interactive and incremental examples to facilitate learningWho This Book Is ForIf you are a Python programmer who wants to get started with performing data analysis using pandas and Python, this is the book for you. Some experience with statistical analysis would be helpful but is not mandatory. If you are a professional, student, or educator who wants to learn to use IPython Notebook as a tool for technical and scientific computing, visualization, and data analysis, this is the book for you. This book will prove valuable for anyone that needs to do computations in an agile environment. Intended to anyone interested in numerical computing and data science: students, researchers, teachers, engineers, analysts, hobbyists... Basic knowledge of Python/NumPy is recommended. Some skills in mathematics will help you understand the theory behind the computational methods. Sergio J. Rojas G., Erik A. Christensen, Francisco J. Blanco-silva. Includes Index.
دانلود کتاب NumPy: Beginner's Guide - Third Edition