This is a Swift implementation of the contents of the book Data Science from Scratch, 2nd ed by Joel Grus. The original code of the book was written in Python.
This is a work in progress. It's organized as Swift playground with a playground page per chapter. The following chapters are currently implemented:
- Introduction
- A Crash Course in Python (no Swift code)
-
Visualizing Data(no Swift code) - Linear Algebra
- Statistics
- Probability
- Hypothesis and Inference
- Gradient Descent
-
Getting Data(no Swift code) -
Working With Data(no Swift code) - Machine Learning
- k-Nearest Neighbors
- Naive Bayes
- Simple Linear Regression
- Multiple Regression