Dataset Viewer
Auto-converted to Parquet Duplicate
source_id
string
parent_id
string
brand
string
altitude_masl
int64
weight_g
int64
altitude_stated
int64
origin
string
processing
string
roast_level
string
grind
string
price_usd
float64
price_per_oz
float64
is_premium
int64
augmentation
string
is_augmented
bool
coffee_020
coffee_020
Chock full o'Nuts
0
1,361
0
Blend
unstated
medium
ground
28.98
0.603651
0
none
false
coffee_013
coffee_013
Verve
1,700
340
1
Guatemala
washed
medium
whole
23
1.917762
1
none
false
coffee_003
coffee_003
Counter Culture
1,750
340
1
Blend
washed
medium
whole
15.98
1.332428
1
none
false
coffee_033
coffee_033
Black & White
1,850
340
1
Colombia
anaerobic
light
whole
22.5
1.876071
1
none
false
coffee_009
coffee_009
Maxwell House
0
867
0
Blend
unstated
medium
ground
9.36
0.306057
0
none
false
coffee_019
coffee_019
Great Value
0
865
0
Blend
unstated
medium
ground
10.92
0.357892
0
none
false
coffee_029
coffee_029
Ethical Bean
1,400
227
1
Peru
washed
medium
ground
11.99
1.497404
1
none
false
coffee_005
coffee_005
Intelligentsia
1,800
340
1
Blend
washed
light
whole
17.99
1.500023
1
none
false
coffee_023
coffee_023
Kicking Horse
1,200
284
1
Blend
washed
dark
ground
8.97
0.895406
0
none
false
coffee_018
coffee_018
Starbucks
0
340
0
Blend
unstated
dark
whole
10.99
0.916357
0
none
false
coffee_026
coffee_026
Community Coffee
0
340
0
Blend
unstated
medium-dark
ground
10.99
0.916357
0
none
false
coffee_012
coffee_012
Onyx Coffee Lab
2,050
340
1
Ethiopia
natural
light
whole
20.4
1.700971
1
none
false
coffee_034
coffee_034
Ruta Maya
1,350
2,268
1
Mexico
washed
medium
whole
75.99
0.949859
0
none
false
coffee_021
coffee_021
Lavazza
0
1,000
0
Blend
unstated
medium-dark
whole
26.99
0.765154
0
none
false
coffee_002
coffee_002
Allegheny Coffee
1,200
450
1
Haiti
washed
dark
whole
25.95
1.634823
1
none
false
coffee_016
coffee_016
La Colombe
1,450
340
1
Blend
washed
dark
whole
14.29
1.191514
1
none
false
coffee_011
coffee_011
Blue Bottle
1,900
227
1
Blend
washed
light
whole
12.99
1.622292
1
none
false
coffee_004
coffee_004
Stumptown
1,600
340
1
Blend
washed
medium
whole
19
1.584238
1
none
false
coffee_024
coffee_024
Death Wish
0
454
0
Blend
unstated
dark
ground
16.44
1.026577
0
none
false
coffee_025
coffee_025
Tim Hortons
0
340
0
Blend
unstated
medium
ground
8.97
0.747927
0
none
false
coffee_017
coffee_017
Peet's
0
298
0
Blend
unstated
dark
ground
9.97
0.948472
0
none
false
coffee_022
coffee_022
Illy
0
250
0
Blend
unstated
medium
ground
19.73
2.237344
1
none
false
coffee_010
coffee_010
Dunkin
0
340
0
Blend
unstated
medium
ground
8.98
0.748761
0
none
false
coffee_020__add00
coffee_020
Chock full o'Nuts
0
1,340
0
Blend
unstated
medium
ground
28.03
0.593013
0
additive_gaussian_jitter
true
coffee_020__mul01
coffee_020
Chock full o'Nuts
0
1,367
0
Blend
unstated
medium
ground
27.33
0.566783
0
multiplicative_scaling
true
coffee_020__add02
coffee_020
Chock full o'Nuts
0
1,360
0
Blend
unstated
medium
ground
27.78
0.579081
0
additive_gaussian_jitter
true
coffee_020__mul03
coffee_020
Chock full o'Nuts
0
1,283
0
Blend
unstated
medium
ground
26.74
0.590854
0
multiplicative_scaling
true
coffee_020__add04
coffee_020
Chock full o'Nuts
0
1,343
0
Blend
unstated
medium
ground
29.23
0.617019
0
additive_gaussian_jitter
true
coffee_020__mul05
coffee_020
Chock full o'Nuts
0
1,429
0
Blend
unstated
medium
ground
27.07
0.537034
0
multiplicative_scaling
true
coffee_020__add06
coffee_020
Chock full o'Nuts
0
1,369
0
Blend
unstated
medium
ground
29.57
0.612341
0
additive_gaussian_jitter
true
coffee_020__mul07
coffee_020
Chock full o'Nuts
0
1,431
0
Blend
unstated
medium
ground
30.21
0.59849
0
multiplicative_scaling
true
coffee_020__add08
coffee_020
Chock full o'Nuts
0
1,353
0
Blend
unstated
medium
ground
29.1
0.609735
0
additive_gaussian_jitter
true
coffee_020__mul09
coffee_020
Chock full o'Nuts
0
1,441
0
Blend
unstated
medium
ground
29.23
0.575057
0
multiplicative_scaling
true
coffee_020__add10
coffee_020
Chock full o'Nuts
0
1,366
0
Blend
unstated
medium
ground
28.7
0.595631
0
additive_gaussian_jitter
true
coffee_020__mul11
coffee_020
Chock full o'Nuts
0
1,453
0
Blend
unstated
medium
ground
30.4
0.593135
0
multiplicative_scaling
true
coffee_020__add12
coffee_020
Chock full o'Nuts
0
1,373
0
Blend
unstated
medium
ground
28.4
0.586399
0
additive_gaussian_jitter
true
coffee_020__mul13
coffee_020
Chock full o'Nuts
0
1,396
0
Blend
unstated
medium
ground
28.98
0.588517
0
multiplicative_scaling
true
coffee_013__add00
coffee_013
Verve
1,722
376
1
Guatemala
washed
medium
whole
22.29
1.680614
1
additive_gaussian_jitter
true
coffee_013__mul01
coffee_013
Verve
1,725
360
1
Guatemala
washed
medium
whole
23.21
1.827757
1
multiplicative_scaling
true
coffee_013__add02
coffee_013
Verve
1,728
315
1
Guatemala
washed
medium
whole
24.51
2.205863
1
additive_gaussian_jitter
true
coffee_013__mul03
coffee_013
Verve
1,827
321
1
Guatemala
washed
medium
whole
21.41
1.890851
1
multiplicative_scaling
true
coffee_013__add04
coffee_013
Verve
1,692
336
1
Guatemala
washed
medium
whole
22.4
1.889968
1
additive_gaussian_jitter
true
coffee_013__mul05
coffee_013
Verve
1,824
336
1
Guatemala
washed
medium
whole
22.9
1.932155
1
multiplicative_scaling
true
coffee_013__add06
coffee_013
Verve
1,697
318
1
Guatemala
washed
medium
whole
22.61
2.015669
1
additive_gaussian_jitter
true
coffee_013__mul07
coffee_013
Verve
1,648
324
1
Guatemala
washed
medium
whole
21.62
1.891718
1
multiplicative_scaling
true
coffee_013__add08
coffee_013
Verve
1,672
277
1
Guatemala
washed
medium
whole
23.89
2.445018
1
additive_gaussian_jitter
true
coffee_013__mul09
coffee_013
Verve
1,814
331
1
Guatemala
washed
medium
whole
24.37
2.087244
1
multiplicative_scaling
true
coffee_013__add10
coffee_013
Verve
1,698
324
1
Guatemala
washed
medium
whole
22.35
1.955592
1
additive_gaussian_jitter
true
coffee_013__mul11
coffee_013
Verve
1,597
346
1
Guatemala
washed
medium
whole
24.34
1.994299
1
multiplicative_scaling
true
coffee_013__add12
coffee_013
Verve
1,698
341
1
Guatemala
washed
medium
whole
22.06
1.83399
1
additive_gaussian_jitter
true
coffee_013__mul13
coffee_013
Verve
1,729
356
1
Guatemala
washed
medium
whole
22.84
1.818829
1
multiplicative_scaling
true
coffee_003__add00
coffee_003
Counter Culture
1,733
365
1
Blend
washed
medium
whole
16.8
1.304855
1
additive_gaussian_jitter
true
coffee_003__mul01
coffee_003
Counter Culture
1,753
351
1
Blend
washed
medium
whole
16.21
1.309247
1
multiplicative_scaling
true
coffee_003__add02
coffee_003
Counter Culture
1,767
337
1
Blend
washed
medium
whole
15.87
1.335035
1
additive_gaussian_jitter
true
coffee_003__mul03
coffee_003
Counter Culture
1,664
315
1
Blend
washed
medium
whole
16.33
1.469675
1
multiplicative_scaling
true
coffee_003__add04
coffee_003
Counter Culture
1,716
333
1
Blend
washed
medium
whole
16.87
1.436206
1
additive_gaussian_jitter
true
coffee_003__mul05
coffee_003
Counter Culture
1,861
358
1
Blend
washed
medium
whole
16.27
1.288399
1
multiplicative_scaling
true
coffee_003__add06
coffee_003
Counter Culture
1,759
358
1
Blend
washed
medium
whole
15.77
1.248804
1
additive_gaussian_jitter
true
coffee_003__mul07
coffee_003
Counter Culture
1,885
336
1
Blend
washed
medium
whole
15.31
1.29176
1
multiplicative_scaling
true
coffee_003__add08
coffee_003
Counter Culture
1,732
357
1
Blend
washed
medium
whole
18.25
1.44924
1
additive_gaussian_jitter
true
coffee_003__mul09
coffee_003
Counter Culture
1,806
329
1
Blend
washed
medium
whole
15.53
1.338201
1
multiplicative_scaling
true
coffee_003__add10
coffee_003
Counter Culture
1,757
353
1
Blend
washed
medium
whole
15.88
1.275327
1
additive_gaussian_jitter
true
coffee_003__mul11
coffee_003
Counter Culture
1,763
354
1
Blend
washed
medium
whole
15.87
1.270924
1
multiplicative_scaling
true
coffee_003__add12
coffee_003
Counter Culture
1,763
309
1
Blend
washed
medium
whole
14.6
1.339492
1
additive_gaussian_jitter
true
coffee_003__mul13
coffee_003
Counter Culture
1,814
365
1
Blend
washed
medium
whole
17.09
1.327379
1
multiplicative_scaling
true
coffee_033__add00
coffee_033
Black & White
1,879
321
1
Colombia
anaerobic
light
whole
21.49
1.897917
1
additive_gaussian_jitter
true
coffee_033__mul01
coffee_033
Black & White
1,982
366
1
Colombia
anaerobic
light
whole
21.71
1.681607
1
multiplicative_scaling
true
coffee_033__add02
coffee_033
Black & White
1,844
305
1
Colombia
anaerobic
light
whole
23.62
2.195461
1
additive_gaussian_jitter
true
coffee_033__mul03
coffee_033
Black & White
1,953
322
1
Colombia
anaerobic
light
whole
22.63
1.99239
1
multiplicative_scaling
true
coffee_033__add04
coffee_033
Black & White
1,855
285
1
Colombia
anaerobic
light
whole
23.55
2.342566
1
additive_gaussian_jitter
true
coffee_033__mul05
coffee_033
Black & White
1,871
313
1
Colombia
anaerobic
light
whole
22.52
2.039716
1
multiplicative_scaling
true
coffee_033__add06
coffee_033
Black & White
1,818
343
1
Colombia
anaerobic
light
whole
22.33
1.845612
1
additive_gaussian_jitter
true
coffee_033__mul07
coffee_033
Black & White
1,968
349
1
Colombia
anaerobic
light
whole
24.08
1.956036
1
multiplicative_scaling
true
coffee_033__add08
coffee_033
Black & White
1,866
365
1
Colombia
anaerobic
light
whole
22.79
1.770098
1
additive_gaussian_jitter
true
coffee_033__mul09
coffee_033
Black & White
1,934
323
1
Colombia
anaerobic
light
whole
23.57
2.068725
1
multiplicative_scaling
true
coffee_033__add10
coffee_033
Black & White
1,858
360
1
Colombia
anaerobic
light
whole
21.43
1.687584
1
additive_gaussian_jitter
true
coffee_033__mul11
coffee_033
Black & White
1,970
363
1
Colombia
anaerobic
light
whole
22.91
1.789222
1
multiplicative_scaling
true
coffee_033__add12
coffee_033
Black & White
1,833
329
1
Colombia
anaerobic
light
whole
22.1
1.90433
1
additive_gaussian_jitter
true
coffee_033__mul13
coffee_033
Black & White
1,750
331
1
Colombia
anaerobic
light
whole
22.12
1.894536
1
multiplicative_scaling
true
coffee_009__add00
coffee_009
Maxwell House
0
862
0
Blend
unstated
medium
ground
10.06
0.330854
0
additive_gaussian_jitter
true
coffee_009__mul01
coffee_009
Maxwell House
0
878
0
Blend
unstated
medium
ground
9.93
0.320627
0
multiplicative_scaling
true
coffee_009__add02
coffee_009
Maxwell House
0
884
0
Blend
unstated
medium
ground
9.36
0.300171
0
additive_gaussian_jitter
true
coffee_009__mul03
coffee_009
Maxwell House
0
905
0
Blend
unstated
medium
ground
8.73
0.273471
0
multiplicative_scaling
true
coffee_009__add04
coffee_009
Maxwell House
0
900
0
Blend
unstated
medium
ground
9.03
0.28444
0
additive_gaussian_jitter
true
coffee_009__mul05
coffee_009
Maxwell House
0
912
0
Blend
unstated
medium
ground
8.69
0.270129
0
multiplicative_scaling
true
coffee_009__add06
coffee_009
Maxwell House
0
908
0
Blend
unstated
medium
ground
9.51
0.296921
0
additive_gaussian_jitter
true
coffee_009__mul07
coffee_009
Maxwell House
0
901
0
Blend
unstated
medium
ground
9.57
0.301115
0
multiplicative_scaling
true
coffee_009__add08
coffee_009
Maxwell House
0
888
0
Blend
unstated
medium
ground
8.83
0.281899
0
additive_gaussian_jitter
true
coffee_009__mul09
coffee_009
Maxwell House
0
836
0
Blend
unstated
medium
ground
9.71
0.329275
0
multiplicative_scaling
true
coffee_009__add10
coffee_009
Maxwell House
0
862
0
Blend
unstated
medium
ground
9.88
0.324934
0
additive_gaussian_jitter
true
coffee_009__mul11
coffee_009
Maxwell House
0
910
0
Blend
unstated
medium
ground
8.72
0.271657
0
multiplicative_scaling
true
coffee_009__add12
coffee_009
Maxwell House
0
867
0
Blend
unstated
medium
ground
9.5
0.310635
0
additive_gaussian_jitter
true
coffee_009__mul13
coffee_009
Maxwell House
0
879
0
Blend
unstated
medium
ground
9.68
0.3122
0
multiplicative_scaling
true
coffee_019__add00
coffee_019
Great Value
0
892
0
Blend
unstated
medium
ground
10.51
0.334029
0
additive_gaussian_jitter
true
coffee_019__mul01
coffee_019
Great Value
0
894
0
Blend
unstated
medium
ground
10.25
0.325036
0
multiplicative_scaling
true
coffee_019__add02
coffee_019
Great Value
0
874
0
Blend
unstated
medium
ground
10.44
0.338637
0
additive_gaussian_jitter
true
coffee_019__mul03
coffee_019
Great Value
0
837
0
Blend
unstated
medium
ground
10.9
0.369187
0
multiplicative_scaling
true
coffee_019__add04
coffee_019
Great Value
0
860
0
Blend
unstated
medium
ground
11.58
0.38173
0
additive_gaussian_jitter
true
coffee_019__mul05
coffee_019
Great Value
0
893
0
Blend
unstated
medium
ground
11.73
0.372385
0
multiplicative_scaling
true
coffee_019__add06
coffee_019
Great Value
0
871
0
Blend
unstated
medium
ground
10.66
0.346964
0
additive_gaussian_jitter
true
End of preview. Expand in Data Studio

Coffee Bags — Premium Pricing (Tabular)

34 retail coffee bags described by seven package attributes, with a binary target for whether a bag is premium-priced per ounce. Built for 24-679.

Property Value
Splits train (345), validation (5), test (6)
Features 7
Targets is_premium (binary), price_per_oz (continuous)
Balance (all originals) 17 premium / 17 standard

Purpose

Can package attributes alone predict whether a coffee is expensive per ounce? Every feature is readable off a bag in seconds — no cupping scores or hidden quality metrics.

Exploratory analysis

Price per ounce and the premium/standard boundary

The median split at $1.08/oz separates the two classes. The groups are contiguous rather than cleanly divided by brand tier — Peet's, Starbucks and Kicking Horse sit just below the boundary, while a few small premium packages sit far above it.

Package size and altitude disclosure

Left: package size pushes unit price down — every bag of 800 g or more falls in the standard class — though plenty of small bags are cheap too, so size alone does not decide the label. Right: how altitude disclosure lines up with the label — see Limitations.

Composition

One row per product SKU.

Column Type Role
source_id string identifier
parent_id string source row; equals source_id for an unaugmented row
brand string identifier — not a feature
origin string feature — country, or Blend
altitude_masl int feature — metres; 0 when unstated
altitude_stated int feature — 1 if the package discloses altitude
processing string feature — washed / natural / honey / anaerobic / unstated
roast_level string feature — light / medium / medium-dark / dark
weight_g int feature — net weight in grams
grind string feature — whole / ground
price_usd float measurement — regular shelf price
price_per_oz float target (continuous)
is_premium int target (binary)
augmentation string provenance — none or the method used
is_augmented bool provenance

Collection

Collected September 2026 from bags on hand — current and previously purchased — plus a trip to a nearby grocery store. Where a bag was no longer available, weight and regular shelf price were confirmed against the retailer's current listing.

Prices are regular shelf prices, not sale prices, and retail prices move — this is a September 2026 snapshot. Sampling was spread across roughly half specialty roasters and half supermarket brands, with sizes from 227 g to 2268 g. Both spreads matter: without the price range a median split would only separate expensive from very expensive, and without the size range price_per_oz would be price_usd rescaled. K-cups and pods were excluded.

Preprocessing and labels

price_per_oz = price_usd / (weight_g / 28.349523125), then is_premium = 1 where that exceeds the dataset median of $1.080/oz.

The threshold comes from the data rather than a hand-picked dollar figure, which balances the classes and keeps personal judgement out of the labelling. Across all 34 originals: 17 premium / 17 standard.

Augmentation

14 children per training row (322 total), alternating two methods with seed 24679. Validation and test rows are never used as parents:

  1. Additive Gaussian jitter — noise on weight_g, price_usd, and a stated altitude_masl, σ = 5% of each column's standard deviation.
  2. Multiplicative scaling — the same columns × a factor drawn uniformly from ±8%.

Label-preserving by construction: categorical columns and altitude_stated are copied exactly, altitude_masl is perturbed only when already non-zero (so "not disclosed" cannot become a fabricated altitude), is_premium is inherited from the parent and never recomputed, and perturbed values are clipped to their declared domains.

price_per_oz is recomputed, so 5 of 322 children (1.6%) land across the median from their inherited label. Every such parent already sat close to the threshold; these are kept as boundary cases.

Splits and intended use

Split Rows Contents
train 345 23 training originals + 322 synthetic
validation 5 Held-out originals, unaugmented
test 6 Held-out originals, unaugmented

Originals were split about 70/15/15, stratified on is_premium, before augmentation, so no validation or test bag has a descendant in train. Use the splits as given.

from datasets import load_dataset

ds = load_dataset("ssg1/coffee-bags-tabular")
train, validation, test = ds["train"], ds["validation"], ds["test"]

Intended for coursework and small-scale experiments in tabular classification and regression.

Limitations

  • altitude_stated is a strong baseline. Predicting is_premium = altitude_stated scores 88% on the original split. It records whether a roaster chose to print an altitude — a marketing decision that tracks price — not a property of the coffee. Report accuracy against this figure, not against a 50% chance level.
  • brand will leak the target. Exclude it from features.
  • 34 original samples is small, so validation holds 5 rows and test holds 6. A single misclassification moves test accuracy by roughly 17 points — treat any single score as a rough indication.
  • Augmented rows add density, not new information, so training-set estimates are optimistic.
  • is_premium is relative — above the median of this sample, not a general definition of premium coffee.
  • Blends dominate origin, leaving few rows per single origin country.
  • Prices are a September 2026 US snapshot from one regional market.

Ethical notes

The data describe retail products, not people: no personal or sensitive information, no human subjects. Brand names and prices are public retail facts recorded for coursework. Nothing here supports claims about product quality — is_premium is a statement about price per ounce and nothing more.

License

MIT.

AI usage disclosure

  • Collection and verification — done by the author; values read from packages and confirmed against retailer listings. No values were generated by an AI model.
  • Synthetic rows — deterministic NumPy (seeded Gaussian jitter and uniform scaling), not a generative model. Reproducible from seed 24679.
  • Notebook and card — Claude AI helped structure the notebook and draft documentation. Subject, features, target definition, augmentation parameters, and the leakage assessment were decided and verified by the author.
Downloads last month
105

Models trained or fine-tuned on ssg1/coffee-bags-tabular