cfahlgren1 HF Staff commited on
Commit
7f2e3fd
·
1 Parent(s): 4e77d60

add more metrics

Browse files
Files changed (1) hide show
  1. pages/index.md +61 -4
pages/index.md CHANGED
@@ -32,24 +32,81 @@ SELECT
32
  repo,
33
  COUNT(*) AS creations
34
  FROM all_data
35
- WHERE month < DATE_TRUNC('month', CURRENT_DATE)
36
  GROUP BY month, repo
37
  ORDER BY month, repo
38
  ```
39
 
40
-
41
  <BarChart
42
  data={hub_growth}
43
  x=month
44
  y=creations
 
 
 
 
 
 
45
  series=repo
46
  />
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
  # Model Licenses
50
 
51
  ```sql model_license_ratio
52
- SELECT name, COUNT(*) as value
53
  FROM read_parquet('https://huggingface.co/datasets/cfahlgren1/hub-stats/resolve/refs%2Fconvert%2Fparquet/models/train/0000.parquet?download=true'),
54
  UNNEST(tags) AS t(name)
55
  WHERE name LIKE 'license:%'
@@ -75,7 +132,7 @@ ORDER BY month, repo
75
  # Dataset Licenses
76
 
77
  ```sql dataset_license_ratio
78
- SELECT name, COUNT(*) as value
79
  FROM read_parquet('https://huggingface.co/datasets/cfahlgren1/hub-stats/resolve/refs%2Fconvert%2Fparquet/datasets/train/0000.parquet?download=true'),
80
  UNNEST(tags) AS t(name)
81
  WHERE name LIKE 'license:%'
 
32
  repo,
33
  COUNT(*) AS creations
34
  FROM all_data
35
+ WHERE month < DATE_TRUNC('month', CURRENT_DATE())
36
  GROUP BY month, repo
37
  ORDER BY month, repo
38
  ```
39
 
 
40
  <BarChart
41
  data={hub_growth}
42
  x=month
43
  y=creations
44
+ colorPalette={[
45
+ '#cf0d06',
46
+ '#eb5752',
47
+ '#e88a87',
48
+ '#fcdad9',
49
+ ]}
50
  series=repo
51
  />
52
 
53
+ # Model Growth Monthly
54
+
55
+ ```sql model_creations_by_month
56
+ SELECT month, repo, creations
57
+ FROM ${hub_growth}
58
+ WHERE repo = 'model'
59
+ ```
60
+
61
+ <AreaChart
62
+ data={model_creations_by_month}
63
+ x=month
64
+ fillColor="#cf0d06"
65
+ strokeColor="#eb5752"
66
+ labels=true
67
+ y=creations
68
+ />
69
+
70
+ # Dataset Growth Monthly
71
+
72
+ ```sql dataset_creations_by_month
73
+ SELECT month, repo, creations
74
+ FROM ${hub_growth}
75
+ WHERE repo = 'dataset'
76
+ ```
77
+
78
+ <AreaChart
79
+ data={dataset_creations_by_month}
80
+ x=month
81
+ fillColor="#cf0d06"
82
+ strokeColor="#eb5752"
83
+ labels=true
84
+ y=creations
85
+ />
86
+
87
+ # Space Growth Monthly
88
+
89
+ ```sql space_creations_by_month
90
+ SELECT month, repo, creations
91
+ FROM ${hub_growth}
92
+ WHERE repo = 'space'
93
+ ```
94
+
95
+ <AreaChart
96
+ data={space_creations_by_month}
97
+ x=month
98
+ y=creations
99
+ fillColor="#cf0d06"
100
+ strokeColor="#eb5752"
101
+ labels=true
102
+ />
103
+
104
+
105
 
106
  # Model Licenses
107
 
108
  ```sql model_license_ratio
109
+ SELECT SUBSTRING(name, 9) AS name, COUNT(*) as value
110
  FROM read_parquet('https://huggingface.co/datasets/cfahlgren1/hub-stats/resolve/refs%2Fconvert%2Fparquet/models/train/0000.parquet?download=true'),
111
  UNNEST(tags) AS t(name)
112
  WHERE name LIKE 'license:%'
 
132
  # Dataset Licenses
133
 
134
  ```sql dataset_license_ratio
135
+ SELECT SUBSTRING(name, 9) AS name, COUNT(*) as value
136
  FROM read_parquet('https://huggingface.co/datasets/cfahlgren1/hub-stats/resolve/refs%2Fconvert%2Fparquet/datasets/train/0000.parquet?download=true'),
137
  UNNEST(tags) AS t(name)
138
  WHERE name LIKE 'license:%'