Skip to content

Commit

Permalink
Improve query op class with additional methods
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit110 committed Sep 5, 2023
1 parent ad3281e commit d1d251a
Show file tree
Hide file tree
Showing 14 changed files with 1,382 additions and 1,020 deletions.
2 changes: 1 addition & 1 deletion cyclops/evaluate/metrics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def common_input_checks_and_format(
def sigmoid(arr: npt.ArrayLike) -> npt.NDArray[np.float_]:
"""Sigmoid function."""
arr = np.asanyarray(arr)
return 1 / (1 + np.exp(-arr))
return 1 / (1 + np.exp(-arr)) # type: ignore


def check_topk(top_k: int, type_preds: str, type_target: str, n_classes: int) -> None:
Expand Down
2 changes: 1 addition & 1 deletion cyclops/query/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class QueryInterface:
Parameters
----------
database: cyclops.orm.Database
database
Database object to create ORM, and query data.
query: cyclops.query.util.TableTypes
The query.
Expand Down
Loading

0 comments on commit d1d251a

Please sign in to comment.