Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vig
Sublinear Algorithms for VA
pseudo
Commits
22758e32
Commit
22758e32
authored
Nov 03, 2021
by
Yuncong Yu
Browse files
Correct some docstrings
parent
65c73cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/src/lsh.py
View file @
22758e32
...
...
@@ -241,7 +241,7 @@ def weights(
Parameters
----------
data : np.ndarray
Preprocessed data in shape 3d array [m][
t
][
d
].
Preprocessed data in shape 3d array [m][
d
][
t
].
query : Optional[np.ndarray]
Query in shape 2d array [t][d].
old_weights : List[float]
...
...
@@ -249,7 +249,7 @@ def weights(
labels : np.ndarray
True positive labels in shape 1d array [?].
hash_functions : np.ndarray
Correct hash functions in shape 2d array [
?
][d]
Correct hash functions in shape 2d array [
L*K
][d]
Returns
-------
...
...
@@ -322,7 +322,7 @@ def table_info(data: np.ndarray, table: Sequence[Sequence[int]]) -> Dict[str, An
Parameters
----------
data : np.ndarray
Preprocessed data in shape 3d array [m][
t
][
d
].
Preprocessed data in shape 3d array [m][
d
][
t
].
table : Sequence[Sequence[int]]
Hash tables in shape 2d array [x][?]
...
...
@@ -351,7 +351,7 @@ def query(data: np.ndarray, window_indices: Union[int, Dict[int, bool]]) -> List
Parameters
----------
data : np.ndarray
Preprocessed data in shape 3d array [m][
t
][
d
].
Preprocessed data in shape 3d array [m][
d
][
t
].
window_indices : Union[int, Dict[int, bool]]
Indices of true positive labels.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment