万本电子书0元读

万本电子书0元读

顶部广告

Test-Driven Machine Learning电子书

售       价:¥

4人正在读 | 0人评论 9.8

作       者:Justin Bozonier

出  版  社:Packt Publishing

出版时间:2015-11-27

字       数:41.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Control your machine learning algorithms using test-driven development to achieve quantifiable milestones About This Book Build smart extensions to pre-existing features at work that can help maximize their value Quantify your models to drive real improvement Take your knowledge of basic concepts, such as linear regression and Na?ve Bayes classification, to the next level and productionalize their models Play what-if games with your models and techniques by following the test-driven exploration process Who This Book Is For This book is intended for data technologists (scientists, analysts, or developers) with previous machine learning experience who are also comfortable reading code in Python. You may be starting, or have already started, a machine learning project at work and are looking for a way to deliver results quickly to enable rapid iteration and improvement. Those looking for examples of how to isolate issues in models and improve them will find ideas in this book to move forward. What You Will Learn Get started with an introduction to test-driven development and familiarize yourself with how to apply these concepts to machine learning Build and test a neural network deterministically, and learn to look for niche cases that cause odd model behaviour Learn to use the multi-armed bandit algorithm to make optimal choices in the face of an enormous amount of uncertainty Generate complex and simple random data to create a wide variety of test cases that can be codified into tests Develop models iteratively, even when using a third-party library Quantify model quality to enable collaboration and rapid iteration Adopt simpler approaches to common machine learning algorithms Take behaviour-driven development principles to articulate test intent In Detail Machine learning is the process of teaching machines to remember data patterns, using them to predict future outcomes, and offering choices that would appeal to individuals based on their past preferences. Machine learning is applicable to a lot of what you do every day. As a result, you can’t take forever to deliver your first iteration of software. Learning to build machine learning algorithms within a controlled test framework will speed up your time to deliver, quantify quality expectations with your clients, and enable rapid iteration and collaboration. This book will show you how to quantifiably test machine learning algorithms. The very different, foundational approach of this book starts every example algorithm with the simplest thing that could possibly work. With this approach, seasoned veterans will find simpler approaches to beginning a machine learning algorithm. You will learn how to iterate on these algorithms to enable rapid delivery and improve performance expectations. The book begins with an introduction to test driving machine learning and quantifying model quality. From there, you will test a neural network, predict values with regression, and build upon regression techniques with logistic regression. You will discover how to test different approaches to na?ve bayes and compare them quantitatively, along with how to apply OOP (Object-Oriented Programming) and OOP patterns to test-driven code, leveraging SciKit-Learn. Finally, you will walk through the development of an algorithm which maximizes the expected value of profit for a marketing campaign by combining one of the classifiers covered with the multiple regression example in the book. Style and approach An example-driven guide that builds a deeper knowledge and understanding of iterative machine learning development, test by test. Each topic develops solutions using failing tests to illustrate problems; these are followed by steps to pass the tests, simply and straightforwardly. Topics which use generated data explore how the data was generated, alongside explanations of the assumptions behind different machine learning techniques.
目录展开

Test-Driven Machine Learning

Table of Contents

Test-Driven Machine Learning

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Introducing Test-Driven Machine Learning

Test-driven development

The TDD cycle

Red

Green

Refactor

Behavior-driven development

Our first test

The anatomy of a test

Given

When

Then

TDD applied to machine learning

Dealing with randomness

Different approaches to validating the improved models

Classification overview

Regression

Clustering

Quantifying the classification models

Summary

2. Perceptively Testing a Perceptron

Getting started

Summary

3. Exploring the Unknown with Multi-armed Bandits

Understanding a bandit

Testing with simulation

Starting from scratch

Simulating real world situations

A randomized probability matching algorithm

A bootstrapping bandit

The problem with straight bootstrapping

Multi-armed armed bandit throw down

Summary

4. Predicting Values with Regression

Refresher on advanced regression

Regression assumptions

Quantifying model quality

Generating our own data

Building the foundations of our model

Cross-validating our model

Generating data

Summary

5. Making Decisions Black and White with Logistic Regression

Generating logistic data

Measuring model accuracy

Generating a more complex example

Test driving our model

Summary

6. You're So Naïve, Bayes

Gaussian classification by hand

Beginning the development

Summary

7. Optimizing by Choosing a New Algorithm

Upgrading the classifier

Applying our classifier

Upgrading to Random Forest

Summary

8. Exploring scikit-learn Test First

Test-driven design

Planning our journey

Creating a classifier chooser (it needs to run tests to evaluate classifier performance)

Getting choosey

Developing testable documentation

Decision trees

Summary

9. Bringing It All Together

Starting at the highest level

The real world

What we've accomplished

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部