Downloads · 30 days
0
schlenat/usedcars
usedcars is a machine learning model from schlenat. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Ziel dieses Projekts ist es, den Preis von Gebrauchtwagen vorherzusagen. Dazu werden sowohl fahrzeugspezifische Merkmale (wie Kilometerstand, Marke, Modell) als auch landesspezifische Wirtschaftsdaten (z. B. BIP, Eink…
Downloads · 30 days
0
Access
Public
Updated May 24, 2025
Repo size
24.9 MB
Likes
0
Public
Click a slice to open those files.
.pkl24.9 MB · 95%
From the Hugging Face model README
Ziel dieses Projekts ist es, den Preis von Gebrauchtwagen vorherzusagen. Dazu werden sowohl fahrzeugspezifische Merkmale (wie Kilometerstand, Marke, Modell) als auch landesspezifische Wirtschaftsdaten (z. B. BIP, Einkommen) genutzt.
Das Modell der linearen Regression zeigte ein gutes Fit (R² = 0.96), allerdings ist der RMSE (≈28'375 CHF) relativ hoch.
Der Random Forest Regressor zeigte ein deutlich höheres Overfitting-Verhalten mit R² = 0.52 bei RMSE = 99'482 CHF.
Dies deutet darauf hin, dass das Modell stark durch einige dominante Features beeinflusst wird oder zusätzliche Feature Engineering nötig ist.
| Name | Link |
|---|---|
| Huggingface | folgt |
| GitHub | folgt |
| Datenquelle | Features |
|---|---|
used_cars.csv | brand, model, milage, fuel_type, transmission, price, country |
country_data.csv | income, gdpp |
| Feature | Beschreibung |
|---|---|
milage | Kilometerstand bereinigt (numerisch) |
relative_price | Verhältnis Preis zu mittlerem Einkommen des Landes (price/income) |
price_vs_gdpp | Verhältnis Preis zu BIP pro Kopf (price/gdpp) |
| One-Hot Encoding | Für model, brand, fuel_type, transmission, country |
Train/Test-Split: 80/20 Split mit random_state=42
Imputation: Fehlende Werte wurden mit Mittelwert ersetzt (SimpleImputer)
LinearRegression (Scikit-learn)RandomForestRegressor (Scikit-learn, 100 Trees, Default)| Modell | RMSE | R² |
|---|---|---|
| Linear Regression | 28'375.74 CHF | 0.96 |
| Random Forest | 99'481.67 CHF | 0.52 |
Die wichtigsten Merkmale laut Feature Importance Visualisierung:
milagegdppincomemodel_<X>)