<commit_before># ml-playground

This repo contains implementations of algorithms I write while learning machine learning.

I manage to use minimal codes with demo example to illustrate the essence of them.

## Supervised

- Linear Regression [[code]](supervised/linear_regression.py) [[demo]](supervised/linear_regression.ipynb)

- Logistic Regression [[code]](supervised/logistic_regression.py) [[demo]](supervised/logistic_regression.ipynb)

- Naive Bayes [[code]](supervised/naive_bayes.py) [[demo]](supervised/naive_bayes.ipynb)

- AdaBoost [[code]](supervised/adaboost.py) [[demo]](supervised/adaboost.ipynb)

## Unsupervised

- Kmeans [[code]](unsupervised/kmeans.py) [[demo]](unsupervised/kmeans.ipynb)

- PCA [[code]](unsupervised/pca.py) [[demo]](unsupervised/pca.ipynb)

## Reinforcement

- Policy Evaluation [[code]](reinforcement/policy_evaluation.py) [[demo]](reinforcement/policy_evaluation.ipynb)
<commit_msg>Add Policy Iteration and Value Iteration in README<commit_after># ml-playground

This repo contains implementations of algorithms I write while learning machine learning.

I manage to use minimal codes with demo example to illustrate the essence of them.

## Supervised

- Linear Regression [[code]](supervised/linear_regression.py) [[demo]](supervised/linear_regression.ipynb)

- Logistic Regression [[code]](supervised/logistic_regression.py) [[demo]](supervised/logistic_regression.ipynb)

- Naive Bayes [[code]](supervised/naive_bayes.py) [[demo]](supervised/naive_bayes.ipynb)

- AdaBoost [[code]](supervised/adaboost.py) [[demo]](supervised/adaboost.ipynb)

## Unsupervised

- Kmeans [[code]](unsupervised/kmeans.py) [[demo]](unsupervised/kmeans.ipynb)

- PCA [[code]](unsupervised/pca.py) [[demo]](unsupervised/pca.ipynb)

## Reinforcement

- Policy Evaluation [[code]](reinforcement/policy_evaluation.py) [[demo]](reinforcement/policy_evaluation.ipynb)

- Policy Iteration [[code]](reinforcement/policy_iteration.py) [[demo]](reinforcement/policy_iteration.ipynb)

- Value Iteration [[code]](reinforcement/value_iteration.py) [[demo]](reinforcement/value_iteration.ipynb)

{'fraction_non_alphanumeric': 0.14163498098859315, 'fraction_numerical': 0.0, 'mean_word_length': 6.973484848484849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3533531', 'n_tokens_mistral': 749, 'n_tokens_neox': 678, 'n_words': 129}