Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jkwiatkowski
/
raven
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
76b576d
raven
/
raven_utils
/
entity.py
Jakub Kwiatkowski
Add model.
e986ee1
about 2 years ago
raw
Copy download link
history
blame
194 Bytes
import
raven_utils.group
as
group
import
numpy
as
np
NO =
dict
(
zip
(group.NAMES, [
1
,
4
,
9
,
2
,
5
,
2
,
2
]))
SUM =
sum
(
list
(NO.values()))
INDEX = np.concatenate([[
0
], np.cumsum(
list
(NO.values()))])