Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
feat: add score document support in csv (#696)
Browse files Browse the repository at this point in the history
* feat: add score document support in csv

* refactor: add csv handlers

* refactor: remove build finetuning dataset

* test: add unit tests

* test: fix csv reader add stringio as hints

* feat: rename modality variable to col1 col2

* test: add unit test

* feat: use a trial input size for mlp

* feat: use a trial input size for mlp

* refactor: fix task when model is mlp

* chore: add changelog

* feat: improve variable names and docstring

* feat: rename handler to parser

* feat: add docstring to csv context

* test: debug experiment endpoint

* test: debug experiment endpoint

* chore: update changelog

Co-authored-by: George Mastrapas <[email protected]>

---------

Co-authored-by: George Mastrapas <[email protected]>
  • Loading branch information
bwanglzu and gmastrapas authored Mar 21, 2023
1 parent 9ef750b commit a24d95e
Show file tree
Hide file tree
Showing 7 changed files with 323 additions and 185 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Support pair-wise score document construction from CSV. ([#696](https://github.com/jina-ai/finetuner/pull/696))

### Removed

### Changed

- Refactor `load_finetuning_dataset` into CSV handlers. ([#696](https://github.com/jina-ai/finetuner/pull/696))

### Fixed

### Docs
Expand Down
2 changes: 1 addition & 1 deletion finetuner/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def list_experiments(self, page: int = 1, size: int = 50) -> Dict[str, Any]:
..note:: The maximum number for `size` per page is 100.
"""
params = {'page': page, 'size': size}
url = self._construct_url(self._base_url, API_VERSION, EXPERIMENTS)
url = self._construct_url(self._base_url, API_VERSION, EXPERIMENTS) + '/'
return self._handle_request(url=url, method=GET, params=params)

def delete_experiment(self, name: str) -> Dict[str, Any]:
Expand Down
1 change: 1 addition & 0 deletions finetuner/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
ARTIFACT = 'artifact'
ARTIFACT_ID = 'artifact_id'
DEFAULT_TAG_KEY = 'finetuner_label'
DEFAULT_TAG_SCORE_KEY = 'finetuner_score'
# Run status
CREATED = 'CREATED'
STARTED = 'STARTED'
Expand Down
Loading

0 comments on commit a24d95e

Please sign in to comment.