bitsnaps commited on
Commit
f8041b7
·
verified ·
1 Parent(s): 5a6e183

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +48 -4
README.md CHANGED
@@ -1,12 +1,56 @@
1
  ---
2
- title: Laptop Specs
 
 
 
 
 
 
3
  emoji: 💻
4
  colorFrom: indigo
5
- colorTo: red
6
  sdk: static
7
  pinned: false
8
  license: apache-2.0
9
- short_description: 'Client web app for laptop price estimation for the Algerian '
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Laptop Price Estimator
3
+ tags:
4
+ - tabular-data
5
+ - xgboost
6
+ - onnx
7
+ - pricing
8
+ - algeria
9
  emoji: 💻
10
  colorFrom: indigo
11
+ colorTo: blue
12
  sdk: static
13
  pinned: false
14
  license: apache-2.0
15
+ short_description: 'Client web app for laptop price estimation for the Algeria'
16
  ---
17
 
18
+
19
+ # Laptop Price Estimator
20
+
21
+ Client web app for laptop price estimation for the Algerian from multi-market public dataset. The XGBoost model runs directly in your browser via ONNX WebAssembly — no backend, no API calls, no data leaves your machine.
22
+
23
+ ## How it works
24
+
25
+ 1. **ONNX Runtime Web** loads the 2.3 MB model via WebAssembly
26
+ 2. You tweak laptop specs (brand, CPU, RAM, GPU, etc.)
27
+ 3. Feature engineering + inference happens entirely in JavaScript
28
+ 4. Price prediction + per-feature contribution hints appear instantly
29
+
30
+ ## Model
31
+
32
+ | Metric | Value |
33
+ |--------|-------|
34
+ | R² | 0.8665 |
35
+ | MAPE | 17.8% |
36
+ | Within ±10% | 47.7% |
37
+ | Within ±20% | 73.9% |
38
+ | Within ±30% | 86.0% |
39
+ | Training Samples | 14,815 |
40
+ | Features | 32 |
41
+
42
+ ## Tech
43
+
44
+ - **Model**: XGBoost v4 → ONNX (no Python at runtime)
45
+ - **Inference**: [onnxruntime-web](https://github.com/microsoft/onnxruntime) (WASM)
46
+ - **UI**: Vanilla HTML/CSS/JS (zero dependencies beyond fonts)
47
+ - **All encoders & metadata** embedded directly in `index.html`
48
+
49
+ ## Files
50
+
51
+ - `index.html` — Self-contained frontend with embedded artefacts + all logic
52
+ - `model.onnx` — XGBoost v4 exported to ONNX format
53
+
54
+ ## Dataset
55
+
56
+ Data can be found at: [bitsnaps/laptops_specs](https://huggingface.co/datasets/bitsnaps/laptops_specs).