Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython_plus_experiments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julien Jerphanion
cython_plus_experiments
Commits
a8f1170b
Commit
a8f1170b
authored
3 years ago
by
Julien Jerphanion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old script
parent
32e855bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
kdtree/query_poc.py
kdtree/query_poc.py
+0
-22
No files found.
kdtree/query_poc.py
deleted
100644 → 0
View file @
32e855bc
import
numpy
as
np
import
pytest
import
kdtree
from
sklearn.neighbors
import
KDTree
if
__name__
==
'__main__'
:
n
=
1000
n_query
=
100
d
=
10
k
=
10
np
.
random
.
seed
(
1
)
X
=
np
.
random
.
rand
(
n
,
d
)
query_points
=
np
.
random
.
rand
(
n_query
,
d
)
tree
=
kdtree
.
KDTree
(
X
,
leaf_size
=
256
)
closests
=
np
.
zeros
((
n_query
,
k
),
dtype
=
np
.
int32
)
# tree.query(query_points, closests)
# skl_tree = KDTree(X, leaf_size=256)
# skl_closests = skl_tree.query(query_points, k=k, return_distance=False).astype(np.int32)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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