# tabishshamim180601/laptop-price-predictor architecture

> Architecture diagram of the GitHub repository tabishshamim180601/laptop-price-predictor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tabishshamim180601/laptop-price-predictor
- Repository: https://github.com/tabishshamim180601/laptop-price-predictor

## Overview

This is a laptop-price prediction notebook project: it uses a Kaggle dataset, explores and prepares the data, engineers features, trains a range of regressors, and evaluates them with R² and MAE. The README reports the voting regressor as best (R² 0.89, MAE 0.15). The notebook is the only listed implementation, so its distinct stages share that path. No source excerpts were provided; edges therefore reflect only README-documented relationships.

Main entry points: [`laptop-price-predictor.ipynb`](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb) (Model metrics), [`laptop_data.csv`](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop_data.csv) (Laptop data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_csv["Laptop data<br/>[laptop_data.csv]"]
  node_preprocessing["Data preprocessing"]
  node_eda["Exploratory analysis"]
  node_features["Feature engineering"]
end

subgraph group_models["Model training"]
  node_linear["Linear regression"]
  node_ridge["Ridge regression"]
  node_lasso["Lasso regression"]
  node_knn["KNN regressor"]
  node_tree["Decision tree"]
  node_svm["SVM regressor"]
  node_forest["Random forest"]
  node_extra["Extra trees"]
  node_ada["AdaBoost"]
  node_xgboost["XGBoost"]
  node_gradient["Gradient boost"]
  node_voting["Voting regressor"]
  node_stacking["Stacking regressor"]
end

subgraph group_evaluation["Evaluation"]
  node_metrics["Model metrics"]
  node_best["Best reported result"]
end

node_kaggle(("Kaggle dataset"))

node_kaggle -->|"provides dataset"| node_csv
node_csv -->|"dataset input"| node_preprocessing
node_linear -->|"evaluated per model"| node_metrics
node_ridge -->|"evaluated per model"| node_metrics
node_lasso -->|"evaluated per model"| node_metrics
node_knn -->|"evaluated per model"| node_metrics
node_tree -->|"evaluated per model"| node_metrics
node_svm -->|"evaluated per model"| node_metrics
node_forest -->|"evaluated per model"| node_metrics
node_extra -->|"evaluated per model"| node_metrics
node_ada -->|"evaluated per model"| node_metrics
node_xgboost -->|"evaluated per model"| node_metrics
node_gradient -->|"evaluated per model"| node_metrics
node_voting -->|"evaluated per model"| node_metrics
node_stacking -->|"evaluated per model"| node_metrics
node_metrics -->|"reports top result"| node_best

click node_csv "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop_data.csv"
click node_preprocessing "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_eda "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_features "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_linear "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_ridge "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_lasso "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_knn "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_tree "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_svm "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_forest "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_extra "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_ada "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_xgboost "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_gradient "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_voting "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_stacking "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_metrics "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb"
click node_best "https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.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_csv,node_preprocessing,node_eda,node_features toneBlue
class node_linear,node_ridge,node_lasso,node_knn,node_tree,node_svm,node_forest,node_extra,node_ada,node_xgboost,node_gradient,node_voting,node_stacking toneAmber
class node_metrics,node_best toneMint
class node_kaggle toneIndigo
```

## Components

### Data preparation

- [Laptop data](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop_data.csv): `laptop_data.csv`
- [Data preprocessing](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Exploratory analysis](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Feature engineering](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`

### Model training

- [Linear regression](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Ridge regression](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Lasso regression](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [KNN regressor](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Decision tree](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [SVM regressor](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Random forest](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Extra trees](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [AdaBoost](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [XGBoost](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Gradient boost](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Voting regressor](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Stacking regressor](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`

### Evaluation

- [Model metrics](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`
- [Best reported result](https://github.com/tabishshamim180601/laptop-price-predictor/blob/main/laptop-price-predictor.ipynb): `laptop-price-predictor.ipynb`

### Other components

- **Kaggle dataset**

## Connections

- Kaggle dataset → Laptop data: provides dataset (evidence: `README.md`)
- Laptop data → Data preprocessing: dataset input (evidence: `README.md`)
- Linear regression → Model metrics: evaluated per model (evidence: `README.md`)
- Ridge regression → Model metrics: evaluated per model (evidence: `README.md`)
- Lasso regression → Model metrics: evaluated per model (evidence: `README.md`)
- KNN regressor → Model metrics: evaluated per model (evidence: `README.md`)
- Decision tree → Model metrics: evaluated per model (evidence: `README.md`)
- SVM regressor → Model metrics: evaluated per model (evidence: `README.md`)
- Random forest → Model metrics: evaluated per model (evidence: `README.md`)
- Extra trees → Model metrics: evaluated per model (evidence: `README.md`)
- AdaBoost → Model metrics: evaluated per model (evidence: `README.md`)
- XGBoost → Model metrics: evaluated per model (evidence: `README.md`)
- Gradient boost → Model metrics: evaluated per model (evidence: `README.md`)
- Voting regressor → Model metrics: evaluated per model (evidence: `README.md`)
- Stacking regressor → Model metrics: evaluated per model (evidence: `README.md`)
- Model metrics → Best reported result: reports top result (evidence: `README.md`)
