-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update docker file * update evaluation_s3 function * Complete evaluate_s3 logic and upload data to s3 * add .csv format to .gitignore * Remove extra comments and imports from main * update requirements * update requirements * update the evaluation code to cater to algorithms * add loop for algos over datasets --------- Co-authored-by: Cyril Matthey-Doret <[email protected]>
- Loading branch information
1 parent
8052c5e
commit 95873b6
Showing
4 changed files
with
197 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
.DS_Store | ||
*.csv | ||
website/data/* | ||
|
||
# C extensions | ||
*.so | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
if __name__ == "__main__": | ||
import argparse | ||
from evaluate.evaluate import evaluate | ||
from evaluate import evaluate_s3, evaluate | ||
import os | ||
from dotenv import load_dotenv | ||
load_dotenv('evaluation/.env') | ||
|
||
parser = argparse.ArgumentParser( | ||
description="Evaluation code to compare annotations from a seizure detection algorithm to ground truth annotations." | ||
) | ||
parser.add_argument("ref", help="Path to the root folder containing the reference annotations.") | ||
parser.add_argument("hyp", help="Path to the root folder containing the hypothesis annotations.") | ||
|
||
args = parser.parse_args() | ||
evaluate(args.ref, args.hyp) | ||
AWS_REGION = os.getenv('AWS_REGION') | ||
AWS_BUCKET = os.getenv('AWS_BUCKET') | ||
AWS_ACCESS_KEY = os.getenv('AWS_ACCESS_KEY') | ||
AWS_SECRET_KEY = os.getenv('AWS_SECRET_KEY') | ||
|
||
|
||
evaluate_s3(AWS_REGION, AWS_BUCKET, AWS_ACCESS_KEY, AWS_SECRET_KEY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
numpy | ||
boto3==1.35.47 | ||
botocore==1.35.47 | ||
contourpy==1.3.0 | ||
cycler==0.12.1 | ||
epilepsy2bids==0.0.1 | ||
fonttools==4.54.1 | ||
gitdb==4.0.11 | ||
GitPython==3.1.41 | ||
jmespath==1.0.1 | ||
kiwisolver==1.4.7 | ||
llvmlite==0.43.0 | ||
matplotlib==3.9.2 | ||
nptyping==2.5.0 | ||
numba==0.60.0 | ||
numpy==1.26.4 | ||
packaging==24.1 | ||
pandas==2.2.3 | ||
pillow==11.0.0 | ||
pyarrow==17.0.0 | ||
pyEDFlib==0.1.38 | ||
pyparsing==3.2.0 | ||
python-dateutil==2.9.0.post0 | ||
python-dotenv==1.0.1 | ||
pytz==2024.2 | ||
resampy==0.4.3 | ||
s3transfer==0.10.3 | ||
setuptools==69.0.3 | ||
six==1.16.0 | ||
smmap==5.0.1 | ||
termcolor==2.5.0 | ||
timescoring==0.0.5 | ||
tzdata==2024.2 | ||
urllib3==1.26.20 |