Skip to content
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

Changed submission default from topn=3 to 2 according to new rule #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ To evaluate a submission in [Kaggle ARC format](https://www.kaggle.com/competiti
```python
>>> eval_set.score_submission(
'submission.csv', # Submission with two columns output_id,output in Kaggle fomrat
topn=3, # How many predictions to consider (default: 3)
topn=2, # How many predictions to consider (default: 2)
return_correct=False # Whether to return a list of which tasks were solved
)
```
Expand Down
4 changes: 2 additions & 2 deletions arckit/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __iter__(self):
def __repr__(self):
return f"<TaskSet: {len(self.tasks)} tasks>"

def score_submission(self,fn: str, topn=3, return_correct=False) -> int:
def score_submission(self,fn: str, topn=2, return_correct=False) -> int:
"""
Score a submission file, in Kaggle csv format
Two columns: output_id,output
Expand Down Expand Up @@ -303,4 +303,4 @@ def load_single(id: str, version='latest') -> Task:
for i in range(10):
train_tasks[i].show()

print(train_tasks["08ed6ac7"].gpt_prompt("gpt3"))
print(train_tasks["08ed6ac7"].gpt_prompt("gpt3"))