# ljpzzz/machinelearning architecture

> Architecture diagram of the GitHub repository ljpzzz/machinelearning, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ljpzzz/machinelearning
- Repository: https://github.com/ljpzzz/machinelearning

## Overview

This repository is a collection of blog companion examples for learning machine learning, statistics, NLP, and reinforcement learning—not a unified application. The principal workflow is a learner choosing a topic in the README and opening its linked example; the examples are independent demonstrations rather than stages in a shared runtime pipeline. The README also identifies model deployment examples, represented separately. Source excerpts are concentrated in reinforcement learning and Java deployment, so other capability nodes reflect README and tree evidence without asserting unsampled implementation details.

Main entry points: [`readme.md`](https://github.com/ljpzzz/machinelearning/blob/master/readme.md) (Topic Catalog), [`reinforcement-learning`](https://github.com/ljpzzz/machinelearning/tree/master/reinforcement-learning) (RL Examples), [`classic-machine-learning`](https://github.com/ljpzzz/machinelearning/tree/master/classic-machine-learning) (Classic Algorithms), [`ensemble-learning`](https://github.com/ljpzzz/machinelearning/tree/master/ensemble-learning) (Ensemble Methods)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ml["Machine Learning"]
  node_classic["Classic Algorithms"]
  node_ensemble["Ensemble Methods"]
  node_association["Association Learning"]
  node_recommendation["Recommendation"]
  node_deep["Deep Learning"]
end

subgraph group_math["Statistics"]
  node_math_examples["Math Examples"]
end

subgraph group_nlp["Language Processing"]
  node_nlp_examples["NLP Examples"]
end

subgraph group_rl["Reinforcement Learning"]
  node_rl_examples["RL Examples"]
  node_rl_tabular["Tabular Control"]
  node_rl_dqn["DQN Variants"]
  node_rl_policy["Policy Methods<br/>[policy_gradient.py]"]
  node_rl_actor["Actor Critic<br/>[actor_critic.py]"]
end

subgraph group_deploy["Model Deployment"]
  node_pmml["PMML Inference<br/>[PMMLDemo.java]"]
  node_tensorflow_java["TensorFlow Java<br/>[TFjavaDemo.java]"]
end

node_learner(("Learner"))
node_catalog["Topic Catalog<br/>[readme.md]"]

node_learner -->|"browses topics"| node_catalog
node_catalog -->|"links examples"| node_classic
node_catalog -->|"links examples"| node_ensemble
node_catalog -->|"lists capability"| node_association
node_catalog -->|"lists capability"| node_recommendation
node_catalog -->|"lists capability"| node_deep
node_catalog -->|"links examples"| node_math_examples
node_catalog -->|"links examples"| node_nlp_examples
node_catalog -->|"links examples"| node_rl_examples
node_catalog -->|"links deployment example"| node_pmml
node_catalog -->|"lists deployment"| node_tensorflow_java
node_rl_examples -->|"includes"| node_rl_tabular
node_rl_examples -->|"includes"| node_rl_dqn
node_rl_examples -->|"includes"| node_rl_policy
node_rl_examples -->|"includes"| node_rl_actor

click node_catalog "https://github.com/ljpzzz/machinelearning/blob/master/readme.md"
click node_classic "https://github.com/ljpzzz/machinelearning/tree/master/classic-machine-learning"
click node_ensemble "https://github.com/ljpzzz/machinelearning/tree/master/ensemble-learning"
click node_association "https://github.com/ljpzzz/machinelearning/tree/master/classic-machine-learning"
click node_recommendation "https://github.com/ljpzzz/machinelearning/tree/master/classic-machine-learning"
click node_deep "https://github.com/ljpzzz/machinelearning/tree/master/model-in-product"
click node_math_examples "https://github.com/ljpzzz/machinelearning/tree/master/mathematics"
click node_nlp_examples "https://github.com/ljpzzz/machinelearning/tree/master/natural-language-processing"
click node_rl_examples "https://github.com/ljpzzz/machinelearning/tree/master/reinforcement-learning"
click node_rl_tabular "https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/q_learning_windy_world.py"
click node_rl_dqn "https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/ddqn_prioritised_replay.py"
click node_rl_policy "https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/policy_gradient.py"
click node_rl_actor "https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/actor_critic.py"
click node_pmml "https://github.com/ljpzzz/machinelearning/blob/master/model-in-product/sklearn-jpmml/pmml_demo/src/main/java/PMMLDemo.java"
click node_tensorflow_java "https://github.com/ljpzzz/machinelearning/blob/master/model-in-product/tensorflow-java/TFDemoJava/src/main/java/TFjavaDemo.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_classic,node_ensemble,node_association,node_recommendation,node_deep toneBlue
class node_math_examples toneAmber
class node_nlp_examples toneMint
class node_rl_examples,node_rl_tabular,node_rl_dqn,node_rl_policy,node_rl_actor toneRose
class node_pmml,node_tensorflow_java,node_learner toneIndigo
class node_catalog toneTeal
```

## Components

### Machine Learning

- [Classic Algorithms](https://github.com/ljpzzz/machinelearning/tree/master/classic-machine-learning): `classic-machine-learning`
- [Ensemble Methods](https://github.com/ljpzzz/machinelearning/tree/master/ensemble-learning): `ensemble-learning`
- [Association Learning](https://github.com/ljpzzz/machinelearning/tree/master/classic-machine-learning): `classic-machine-learning`
- [Recommendation](https://github.com/ljpzzz/machinelearning/tree/master/classic-machine-learning): `classic-machine-learning`
- [Deep Learning](https://github.com/ljpzzz/machinelearning/tree/master/model-in-product): `model-in-product`

### Statistics

- [Math Examples](https://github.com/ljpzzz/machinelearning/tree/master/mathematics): `mathematics`

### Language Processing

- [NLP Examples](https://github.com/ljpzzz/machinelearning/tree/master/natural-language-processing): `natural-language-processing`

### Reinforcement Learning

- [RL Examples](https://github.com/ljpzzz/machinelearning/tree/master/reinforcement-learning): `reinforcement-learning`
- [Tabular Control](https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/q_learning_windy_world.py): `reinforcement-learning/q_learning_windy_world.py`
- [DQN Variants](https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/ddqn_prioritised_replay.py): `reinforcement-learning/ddqn_prioritised_replay.py`
- [Policy Methods](https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/policy_gradient.py): `reinforcement-learning/policy_gradient.py`
- [Actor Critic](https://github.com/ljpzzz/machinelearning/blob/master/reinforcement-learning/actor_critic.py): `reinforcement-learning/actor_critic.py`

### Model Deployment

- [PMML Inference](https://github.com/ljpzzz/machinelearning/blob/master/model-in-product/sklearn-jpmml/pmml_demo/src/main/java/PMMLDemo.java): `model-in-product/sklearn-jpmml/pmml_demo/src/main/java/PMMLDemo.java`
- [TensorFlow Java](https://github.com/ljpzzz/machinelearning/blob/master/model-in-product/tensorflow-java/TFDemoJava/src/main/java/TFjavaDemo.java): `model-in-product/tensorflow-java/TFDemoJava/src/main/java/TFjavaDemo.java`

### Other components

- **Learner**
- [Topic Catalog](https://github.com/ljpzzz/machinelearning/blob/master/readme.md): `readme.md`

## Connections

- Learner → Topic Catalog: browses topics (evidence: `readme.md`)
- Topic Catalog → Classic Algorithms: links examples (evidence: `readme.md`)
- Topic Catalog → Ensemble Methods: links examples (evidence: `readme.md`)
- Topic Catalog → Association Learning: lists capability (evidence: `readme.md`)
- Topic Catalog → Recommendation: lists capability (evidence: `readme.md`)
- Topic Catalog → Deep Learning: lists capability (evidence: `readme.md`)
- Topic Catalog → Math Examples: links examples (evidence: `readme.md`)
- Topic Catalog → NLP Examples: links examples (evidence: `readme.md`)
- Topic Catalog → RL Examples: links examples (evidence: `readme.md`)
- Topic Catalog → PMML Inference: links deployment example (evidence: `readme.md`)
- Topic Catalog → TensorFlow Java: lists deployment (evidence: `readme.md`)
- RL Examples → Tabular Control: includes (evidence: `readme.md`)
- RL Examples → DQN Variants: includes (evidence: `readme.md`)
- RL Examples → Policy Methods: includes (evidence: `readme.md`)
- RL Examples → Actor Critic: includes (evidence: `readme.md`)
