Mastering Numerical Computing with NumPy
Master scientific computing and perform complex operations with ease
Umit Mert Cakmak
Mert Cuhadaroglu
BIRMINGHAM - MUMBAI
Mastering Numerical Computing with NumPy
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Pravin Dhandre
Acquisition Editor: Viraj Madhav
Content Development Editor: Snehal Kolte
Technical Editor: Dinesh Chaudhary
Copy Editor: Safis Editing
Project Coordinator: Manthan Patel
Proofreader: Safis Editing
Indexer: Priyanka Dhadke
Graphics: Tania Dutta
Production Coordinator: Arvindkumar Gupta
First published: June 2018
Production reference: 1270618
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78899-335-7
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the authors
Umit Mert Cakmak is a data scientist at IBM, where he excels at helping clients solve complex data science problems, from inception to delivery of deployable assets. His research spans multiple disciplines beyond his industry and he likes sharing his insights at conferences, universities, and meet-ups.
First and foremost, my heartiest thanks to my mother and father for their true love and support. I am grateful for the lessons that they have taught me. I would like to dedicate my writings to my family, friends, colleagues, and all the great people who relentlessly work to make the world a better place.
Mert Cuhadaroglu is a BI Developer in EPAM, developing E2E analytics solutions for complex business problems in various industries, mostly investment banking, FMCG, media, communication, and pharma. He consistently uses advanced statistical models and ML algorithms to provide actionable insights. Throughout his career, he has worked in several other industries, such as banking and asset management. He continues his academic research in AI for trading algorithms.
I am very grateful to my parents, who have always encouraged me to pursue knowledge.
I would also like to thank my coauthor, friends, and the Packt team. I would like to dedicate my writings to my family, friends and all people who supported me in this endeavor.
About the reviewer
Tiago Antao is a computer scientist turned computational biologist with a PhD from Liverpool School of Tropical Medicine in UK. He is a co-author of Biopython, a major bioinformatics package written in Python.
In his career he has worked at University of Cambridge (UK) and University of Oxford (UK), and is currently a research scientist at University of Montana (USA). He is the author of Bioinformatics with Python Cookbook.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Table of Contents
Preface
If you are trying to hone your skills in the field of data science, there are many books and courses out there with varying levels of difficulty. What usually happens is that you start to study introductory resources and then continue with more in-depth, technical ones to get a taste of a new field or technology. If you were following this kind of learning path for sometime, you must have realized that it becomes very time consuming journey. We, as lifelong learners, need books with more compact representation of knowledge and experience which requires the right balance between theory and practice. This book aims to bring beginner, intermediate, and advanced concepts together and it is our humble effort to build up your knowledge from scratch.
This book assumes no previous background of scientific computing and will introduce various subjects using practical examples. It may sometimes feel like separate topics pulled together randomly and the book's flow doesn't stick to one consistent path. This was a deliberate decision we made to give you a little taste of several different topics and applications.
We hope that you will read this book to have a broader overview of scientific computing as well as to master the nitty-gritty of NumPy and other supporting scientific libraries of Python such as SciPy and Scikit-Learn.
Who this book is for
This book is for everyone who would like to gain additional knowledge in the data science field. Mastering Numerical Computing with NumPy is for you if you are a Python programmer, data analyst, data engineer, or data science enthusiast who wants to master the intricacies of NumPy and build solutions for your numeric and scientific computational problems. You are expected to have familiarity with mathematics to get the most out of this book.