# rasbt/pattern_classification architecture

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

- Interactive diagram: https://gitdiagram.com/rasbt/pattern_classification
- Repository: https://github.com/rasbt/pattern_classification

## Overview

This repository is an educational collection of machine-learning and pattern-classification tutorials, examples, datasets, and resources, rather than a unified runtime pipeline. Its principal user workflow is to browse a topic, study the linked material, and apply the techniques in examples. The README documents learning areas including preprocessing, evaluation, estimation, algorithms, clustering, data collection, and visualization. A separate Flask movie-review classifier demonstrates an interactive prediction-and-feedback workflow. Connections among the learning areas are shown only where the README documents them; sampled application code supports the classifier’s internal runtime edges.

Main entry points: [`machine_learning/webapp/movieclassifier/app.py`](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/app.py) (Review web app), [`machine_learning/supervised_intro/introduction_to_supervised_machine_learning.md`](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/supervised_intro/introduction_to_supervised_machine_learning.md) (ML introduction), [`preprocessing`](https://github.com/rasbt/pattern_classification/tree/master/preprocessing) (Preprocessing), [`dimensionality_reduction`](https://github.com/rasbt/pattern_classification/tree/master/dimensionality_reduction) (Feature selection and reduction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning foundations"]
  node_intro["ML introduction"]
  node_preprocessing["Preprocessing"]
  node_dimred["Feature selection and reduction"]
end

subgraph group_methods["Modeling methods"]
  node_estimation["Parameter estimation"]
  node_regression["Regression fitting"]
  node_algorithms["ML algorithms"]
  node_clustering["Clustering"]
end

subgraph group_practice["Applied workflows"]
  node_evaluation["Model evaluation"]
  node_data_collection["Data collection"]
  node_visualization["Data visualization"]
  node_resources["Datasets and resources"]
end

subgraph group_classifier["Review classifier"]
  node_webapp["Review web app<br/>[app.py]"]
  node_review_form["Review form<br/>[reviewform.html]"]
  node_sentiment["Sentiment classifier<br/>[app.py]"]
  node_model_assets["Model assets"]
  node_results["Prediction results<br/>[results.html]"]
  node_feedback["Feedback update<br/>[app.py]"]
  node_review_db[("Review database<br/>[reviews.sqlite]")]
  node_thanks["Confirmation page<br/>[thanks.html]"]
end

node_reader(("Learner"))
node_app_user(("Review submitter"))

node_reader -->|"studies"| node_intro
node_reader -->|"explores"| node_preprocessing
node_reader -->|"explores"| node_dimred
node_reader -->|"studies"| node_estimation
node_reader -->|"studies"| node_regression
node_reader -->|"studies"| node_algorithms
node_reader -->|"explores"| node_clustering
node_reader -->|"studies"| node_evaluation
node_reader -->|"explores"| node_data_collection
node_reader -->|"explores"| node_visualization
node_reader -->|"consults"| node_resources
node_app_user -->|"submits review"| node_webapp
node_webapp -->|"renders"| node_review_form
node_webapp -->|"classifies"| node_sentiment
node_sentiment -->|"loads"| node_model_assets
node_webapp -->|"renders"| node_results
node_webapp -->|"trains from feedback"| node_feedback
node_feedback -->|"writes review"| node_review_db
node_webapp -->|"renders"| node_thanks

click node_intro "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/supervised_intro/introduction_to_supervised_machine_learning.md"
click node_preprocessing "https://github.com/rasbt/pattern_classification/tree/master/preprocessing"
click node_dimred "https://github.com/rasbt/pattern_classification/tree/master/dimensionality_reduction"
click node_estimation "https://github.com/rasbt/pattern_classification/tree/master/parameter_estimation_techniques"
click node_regression "https://github.com/rasbt/pattern_classification/blob/master/data_fitting/regression/linregr_least_squares_fit.ipynb"
click node_algorithms "https://github.com/rasbt/pattern_classification/tree/master/machine_learning"
click node_clustering "https://github.com/rasbt/pattern_classification/tree/master/clustering"
click node_evaluation "https://github.com/rasbt/pattern_classification/tree/master/evaluation"
click node_data_collection "https://github.com/rasbt/pattern_classification/tree/master/data_collecting"
click node_visualization "https://github.com/rasbt/pattern_classification/tree/master/data_viz"
click node_resources "https://github.com/rasbt/pattern_classification/tree/master/resources"
click node_webapp "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/app.py"
click node_review_form "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/templates/reviewform.html"
click node_sentiment "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/app.py"
click node_model_assets "https://github.com/rasbt/pattern_classification/tree/master/machine_learning/webapp/movieclassifier/pkl_objects"
click node_results "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/templates/results.html"
click node_feedback "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/app.py"
click node_review_db "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/reviews.sqlite"
click node_thanks "https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/templates/thanks.html"

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_intro,node_preprocessing,node_dimred,node_app_user toneBlue
class node_estimation,node_regression,node_algorithms,node_clustering toneAmber
class node_evaluation,node_data_collection,node_visualization,node_resources toneMint
class node_webapp,node_review_form,node_sentiment,node_model_assets,node_results,node_feedback,node_review_db,node_thanks toneRose
class node_reader toneIndigo
```

## Components

### Learning foundations

- [ML introduction](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/supervised_intro/introduction_to_supervised_machine_learning.md): `machine_learning/supervised_intro/introduction_to_supervised_machine_learning.md`
- [Preprocessing](https://github.com/rasbt/pattern_classification/tree/master/preprocessing): `preprocessing`
- [Feature selection and reduction](https://github.com/rasbt/pattern_classification/tree/master/dimensionality_reduction): `dimensionality_reduction`

### Modeling methods

- [Parameter estimation](https://github.com/rasbt/pattern_classification/tree/master/parameter_estimation_techniques): `parameter_estimation_techniques`
- [Regression fitting](https://github.com/rasbt/pattern_classification/blob/master/data_fitting/regression/linregr_least_squares_fit.ipynb): `data_fitting/regression/linregr_least_squares_fit.ipynb`
- [ML algorithms](https://github.com/rasbt/pattern_classification/tree/master/machine_learning): `machine_learning`
- [Clustering](https://github.com/rasbt/pattern_classification/tree/master/clustering): `clustering`

### Applied workflows

- [Model evaluation](https://github.com/rasbt/pattern_classification/tree/master/evaluation): `evaluation`
- [Data collection](https://github.com/rasbt/pattern_classification/tree/master/data_collecting): `data_collecting`
- [Data visualization](https://github.com/rasbt/pattern_classification/tree/master/data_viz): `data_viz`
- [Datasets and resources](https://github.com/rasbt/pattern_classification/tree/master/resources): `resources`

### Review classifier

- [Review web app](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/app.py): `machine_learning/webapp/movieclassifier/app.py`
- [Review form](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/templates/reviewform.html): `machine_learning/webapp/movieclassifier/templates/reviewform.html`
- [Sentiment classifier](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/app.py): `machine_learning/webapp/movieclassifier/app.py`
- [Model assets](https://github.com/rasbt/pattern_classification/tree/master/machine_learning/webapp/movieclassifier/pkl_objects): `machine_learning/webapp/movieclassifier/pkl_objects`
- [Prediction results](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/templates/results.html): `machine_learning/webapp/movieclassifier/templates/results.html`
- [Feedback update](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/app.py): `machine_learning/webapp/movieclassifier/app.py`
- [Review database](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/reviews.sqlite): `machine_learning/webapp/movieclassifier/reviews.sqlite`
- [Confirmation page](https://github.com/rasbt/pattern_classification/blob/master/machine_learning/webapp/movieclassifier/templates/thanks.html): `machine_learning/webapp/movieclassifier/templates/thanks.html`

### Other components

- **Learner**
- **Review submitter**

## Connections

- Learner → ML introduction: studies (evidence: `README.md`)
- Learner → Preprocessing: explores (evidence: `README.md`)
- Learner → Feature selection and reduction: explores (evidence: `README.md`)
- Learner → Parameter estimation: studies (evidence: `README.md`)
- Learner → Regression fitting: studies (evidence: `README.md`)
- Learner → ML algorithms: studies (evidence: `README.md`)
- Learner → Clustering: explores (evidence: `README.md`)
- Learner → Model evaluation: studies (evidence: `README.md`)
- Learner → Data collection: explores (evidence: `README.md`)
- Learner → Data visualization: explores (evidence: `README.md`)
- Learner → Datasets and resources: consults (evidence: `README.md`)
- Review submitter → Review web app: submits review (evidence: `machine_learning/webapp/movieclassifier/app.py`)
- Review web app → Review form: renders (evidence: `machine_learning/webapp/movieclassifier/app.py`)
- Review web app → Sentiment classifier: classifies (evidence: `machine_learning/webapp/movieclassifier/app.py`)
- Sentiment classifier → Model assets: loads (evidence: `machine_learning/webapp/movieclassifier/app.py`)
- Review web app → Prediction results: renders (evidence: `machine_learning/webapp/movieclassifier/app.py`)
- Review web app → Feedback update: trains from feedback (evidence: `machine_learning/webapp/movieclassifier/app.py`)
- Feedback update → Review database: writes review (evidence: `machine_learning/webapp/movieclassifier/app.py`)
- Review web app → Confirmation page: renders (evidence: `machine_learning/webapp/movieclassifier/app.py`)
