julien-c HF staff commited on
Commit
cae06d8
1 Parent(s): 9f33adf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -2
README.md CHANGED
@@ -29,7 +29,11 @@ model = joblib.load(cached_download(
29
  ))
30
 
31
  # model is a `sklearn.pipeline.Pipeline`
 
 
 
32
 
 
33
  data_file = cached_download(
34
  hf_hub_url(REPO_ID, "winequality-red.csv")
35
  )
@@ -39,12 +43,23 @@ winedf = pd.read_csv(data_file, sep=";")
39
  X = winedf.drop(["quality"], axis=1)
40
  Y = winedf["quality"]
41
 
 
 
 
 
 
 
 
 
42
 
 
 
 
 
43
  labels = model.predict(X[:3])
 
44
  ```
45
 
46
- ^^ get your prediction
47
-
48
  #### Eval
49
 
50
  ```python
 
29
  ))
30
 
31
  # model is a `sklearn.pipeline.Pipeline`
32
+ ```
33
+
34
+ #### Get sample data from this repo
35
 
36
+ ```python
37
  data_file = cached_download(
38
  hf_hub_url(REPO_ID, "winequality-red.csv")
39
  )
 
43
  X = winedf.drop(["quality"], axis=1)
44
  Y = winedf["quality"]
45
 
46
+ print(X[:3])
47
+ ```
48
+
49
+ | | fixed acidity | volatile acidity | citric acid | residual sugar | chlorides | free sulfur dioxide | total sulfur dioxide | density | pH | sulphates | alcohol |
50
+ |---:|----------------:|-------------------:|--------------:|-----------------:|------------:|----------------------:|-----------------------:|----------:|-----:|------------:|----------:|
51
+ | 0 | 7.4 | 0.7 | 0 | 1.9 | 0.076 | 11 | 34 | 0.9978 | 3.51 | 0.56 | 9.4 |
52
+ | 1 | 7.8 | 0.88 | 0 | 2.6 | 0.098 | 25 | 67 | 0.9968 | 3.2 | 0.68 | 9.8 |
53
+ | 2 | 7.8 | 0.76 | 0.04 | 2.3 | 0.092 | 15 | 54 | 0.997 | 3.26 | 0.65 | 9.8 |
54
 
55
+
56
+ #### Get your prediction
57
+
58
+ ```python
59
  labels = model.predict(X[:3])
60
+ # [5, 5, 5]
61
  ```
62
 
 
 
63
  #### Eval
64
 
65
  ```python