Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.34 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.34 KB

ml_examples

Small machine learning programs and examples built with numpy; sklearn used for benchmark scores only.

these are not built to be computationally efficient (obviously, if you look at them), but to get a better handle on how things work.

Models:

Linear Regression

Rough analog to sklearn linear regression, using gradient descent.

Logistic Regression

Rough analog to sklearn logistic regression, using gradient descent.

Farklebot

learns to play the dice game Farkle

Scoring is hard coded; decisions about whether to re-roll or quit with current score are learned by playing a large number of games, altering strategy, and calculating the gradient of score with respect to strategic changes. Interesting because the gradient of decision making algorithm is not well behaved.

Data visulaizations:

Linear regression

linear results

Logistic regression

logistic results

Farklebot

farkle_results1 farkle distribution