-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding loader for DCASE'23 Task 6A #144
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## tanmay/dcase23_6b #144 +/- ##
=====================================================
+ Coverage 98.73% 98.76% +0.03%
=====================================================
Files 30 31 +1
Lines 2603 2677 +74
=====================================================
+ Hits 2570 2644 +74
Misses 33 33 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that you have included the changes of task6b into this PR, should we delete the #143, then? The comments here are the same there. Basically docstring, DictReader and change PARSER
to parser
file_path = os.path.join(self.data_home, file_name) | ||
delimiter = ";" if file_type == "test_metadata" else "," | ||
with open(file_path, encoding="ISO-8859-1") as csv_file: | ||
csv_reader = csv.reader(csv_file, delimiter=delimiter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DictReader?
soundata/datasets/dcase23_task6b.py
Outdated
file_path = os.path.join(self.data_home, file_name) | ||
# Now open the file with the mentioned encoding | ||
with open(file_path, encoding="ISO-8859-1") as csv_file: | ||
csv_reader = csv.reader(csv_file, delimiter=",") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use DictReader?
soundata/datasets/dcase23_task6b.py
Outdated
@@ -0,0 +1,349 @@ | |||
"""DCASE 2023 Task-6B Dataset Loader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check docstring
@@ -0,0 +1,349 @@ | |||
"""DCASE 2023 Task-6A Dataset Loader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check docstring
Description
Please include the following information at the top level docstring for the dataset's module mydataset.py:
Dataset loaders checklist:
scripts/
, e.g.make_my_dataset_index.py
, which generates an index file.soundata/indexes/
e.g.my_dataset_index.json
.soundata/my_dataset.py
.tests/
, e.g.test_my_dataset.py
.docs/source/soundata.rst
anddocs/source/quick_reference.rst
.black
,flake8
andmypy
(see Running your tests locally).tests/test_full_dataset.py
on your dataset.