FranciscoLozDataScience
commited on
Commit
•
aed8466
1
Parent(s):
cdba063
added content about the data fields since the dataset viewer is not working
Browse files- README.md +20 -0
- smokedataset_QA.py +0 -2
README.md
CHANGED
@@ -39,6 +39,26 @@ This dataset was forked from [sagecontinuum/smokedataset](https://huggingface.co
|
|
39 |
|
40 |
- **Homepage:** [Sage Continuum](https://sagecontinuum.org/)
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
# Scoring
|
43 |
|
44 |
The multiple choice portion of the question is scored by overall accuracy (# of correctly answered questions/total questions). The question can also be open-ended by eliminating the choice portion.
|
|
|
39 |
|
40 |
- **Homepage:** [Sage Continuum](https://sagecontinuum.org/)
|
41 |
|
42 |
+
### Data Instances
|
43 |
+
|
44 |
+
A data point comprises an image, its classification label, a prompt, and mulitple choices.
|
45 |
+
|
46 |
+
```
|
47 |
+
{
|
48 |
+
'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=224x224 at 0x1215D0C50>,
|
49 |
+
'label': 'smoke',
|
50 |
+
'Prompt': 'What is shown in the image?'
|
51 |
+
'choice': ['cloud', 'other', 'smoke']
|
52 |
+
}
|
53 |
+
```
|
54 |
+
|
55 |
+
### Data Fields
|
56 |
+
|
57 |
+
- `image`: A `PIL.Image.Image` object containing the image.
|
58 |
+
- `label`: the expected class label of the image.
|
59 |
+
- `Prompt`: the prompt that will be sent to the LLM.
|
60 |
+
- `choice`: the choices that the LLM can choose from.
|
61 |
+
|
62 |
# Scoring
|
63 |
|
64 |
The multiple choice portion of the question is scored by overall accuracy (# of correctly answered questions/total questions). The question can also be open-ended by eliminating the choice portion.
|
smokedataset_QA.py
CHANGED
@@ -29,8 +29,6 @@ _CHOICES = _NAMES
|
|
29 |
|
30 |
class smokedataset_QA(datasets.GeneratorBasedBuilder):
|
31 |
|
32 |
-
VERSION = datasets.Version("1.1.0")
|
33 |
-
|
34 |
def _info(self):
|
35 |
|
36 |
return datasets.DatasetInfo(
|
|
|
29 |
|
30 |
class smokedataset_QA(datasets.GeneratorBasedBuilder):
|
31 |
|
|
|
|
|
32 |
def _info(self):
|
33 |
|
34 |
return datasets.DatasetInfo(
|