-
-
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.
Add /estimationprocedure/list (#121)
* Add /estimationprocedure/list * [no ci] Add changes for 'Others' specifically, estimationprocedure/list and evaluationmeasure/list
- Loading branch information
Showing
8 changed files
with
399 additions
and
1 deletion.
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Annotated, Iterable | ||
|
||
from database.evaluations import get_estimation_procedures as db_get_estimation_procedures | ||
from fastapi import APIRouter, Depends | ||
from schemas.datasets.openml import EstimationProcedure | ||
from sqlalchemy import Connection | ||
|
||
from routers.dependencies import expdb_connection | ||
|
||
router = APIRouter(prefix="/estimationprocedure", tags=["estimationprocedure"]) | ||
|
||
|
||
@router.get("/list", response_model_exclude_none=True) | ||
def get_estimation_procedures( | ||
expdb: Annotated[Connection, Depends(expdb_connection)], | ||
) -> Iterable[EstimationProcedure]: | ||
return db_get_estimation_procedures(expdb) |
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
Oops, something went wrong.