Scikit, No Tears

Preface

This book is to teach students how to use scikit-learn. To follow along and execute the code samples, you will need Docker installed. The Docker container is located on Docker Hub. After you have installed Docker, you may run the container as follows.

docker run -it \
 -p 8888:8888 \
 oneoffcoder/book-scikit-intro

Note that this Docker container has Jupyter Lab running on port 8888. You may access Jupyter Lab at http://localhost:8888 when the Docker container is running.

The diagram below summarizes the scikit-learn workflow that the book follows: prepare data, fit models, validate them, and then branch out into visualization and supporting tools.

@startuml
left to right direction
skinparam shadowing false
rectangle "Sample Data and\nVisualization" as start
rectangle "Core Models\nregression,\nclassification,\nclustering,\nneighbors" as models
rectangle "Preprocessing,\nImputation,\nPipelines" as preparation
rectangle "Validation,\nTuning,\nFeature Work" as validation
rectangle "Plotting and\nSupporting APIs" as ecosystem
start --> models
models --> preparation
preparation --> validation
validation --> ecosystem
@enduml

The chapters are not perfectly linear, but the diagram captures the main habit the book is trying to teach: model building is only one stage in a larger machine learning workflow.

Contents

Misc

About

One-Off Coder logo.

One-Off Coder is an educational, service and product company. Please visit us online to discover how we may help you achieve life-long success in your personal coding career or with your company’s business goals and objectives.

Author

Jee Vang, Ph.D.