# sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms architecture

> Architecture diagram of the GitHub repository sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms
- Repository: https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms

## Overview

This repository compares four notebook-based classifiers for predicting cotton pulp grades. The documented workflow is algorithm-specific grade prediction; the README names the models but gives no details about inputs, preprocessing, evaluation, or how comparisons are performed. Source excerpts were unavailable, so the graph includes only the documented model-to-prediction relationships and does not infer calls between notebooks.

Main entry points: [`Python Code/Cotton_Pulps-K-NN Model_Final.ipynb`](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps-K-NN%20Model_Final.ipynb) (K-NN model), [`Python Code/Cotton_Pulps-SVM Model_Final.ipynb`](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps-SVM%20Model_Final.ipynb) (SVM model), [`Python Code/Cotton_Pulps_ANN_Final.ipynb`](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps_ANN_Final.ipynb) (ANN model), [`Python Code/Cotton_Pulps_Logistic Regression_Final.ipynb`](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps_Logistic%20Regression_Final.ipynb) (Logistic regression)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_classifiers["Grade classifiers"]
  node_knn["K-NN model"]
  node_svm["SVM model"]
  node_ann["ANN model"]
  node_logistic["Logistic regression"]
end

node_grade["Predicted grade"]

node_knn -->|"predicts"| node_grade
node_svm -->|"predicts"| node_grade
node_ann -->|"predicts"| node_grade
node_logistic -->|"predicts"| node_grade

click node_knn "https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps-K-NN%20Model_Final.ipynb"
click node_svm "https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps-SVM%20Model_Final.ipynb"
click node_ann "https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps_ANN_Final.ipynb"
click node_logistic "https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps_Logistic%20Regression_Final.ipynb"

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_knn,node_svm,node_ann,node_logistic toneBlue
class node_grade toneIndigo
```

## Components

### Grade classifiers

- [K-NN model](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps-K-NN%20Model_Final.ipynb): `Python Code/Cotton_Pulps-K-NN Model_Final.ipynb`
- [SVM model](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps-SVM%20Model_Final.ipynb): `Python Code/Cotton_Pulps-SVM Model_Final.ipynb`
- [ANN model](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps_ANN_Final.ipynb): `Python Code/Cotton_Pulps_ANN_Final.ipynb`
- [Logistic regression](https://github.com/sadeghiamirshahidi/predicting-cotton-pulps-grade-using-ml-classification-algorithms/blob/main/Python%20Code/Cotton_Pulps_Logistic%20Regression_Final.ipynb): `Python Code/Cotton_Pulps_Logistic Regression_Final.ipynb`

### Other components

- **Predicted grade**

## Connections

- K-NN model → Predicted grade: predicts (evidence: `README.md`)
- SVM model → Predicted grade: predicts (evidence: `README.md`)
- ANN model → Predicted grade: predicts (evidence: `README.md`)
- Logistic regression → Predicted grade: predicts (evidence: `README.md`)
