Skip to content

Commit

Permalink
remove absolute_import
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Apr 7, 2023
1 parent 7a1a51e commit 8b0475b
Show file tree
Hide file tree
Showing 39 changed files with 0 additions and 45 deletions.
3 changes: 0 additions & 3 deletions ann_benchmarks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from __future__ import absolute_import

# from ann_benchmarks.main import *
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/annoy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import annoy
from .base import BaseANN

Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/balltree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import sklearn.neighbors
import sklearn.preprocessing
from .base import BaseANN
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
from multiprocessing.pool import ThreadPool
import psutil

Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/bruteforce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import numpy
import sklearn.neighbors
from ann_benchmarks.distance import metrics as pd
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/ckdtree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
from scipy.spatial import cKDTree
from .base import BaseANN

Expand Down
2 changes: 0 additions & 2 deletions ann_benchmarks/algorithms/datasketch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import numpy as np

from datasketch import MinHashLSHForest, MinHash
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/definitions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import collections
import importlib
import yaml
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/dolphinnpy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import sys

sys.path.append("install/lib-dolphinnpy") # noqa
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/dummy_algo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import numpy as np
from .base import BaseANN

Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/faiss.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import sys

sys.path.append("install/lib-faiss") # noqa
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/faiss_gpu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import sys

# Assumes local installation of FAISS
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/faiss_hnsw.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import faiss
import numpy as np
from .faiss import Faiss
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/flann.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import pyflann
import numpy
import sklearn.preprocessing
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/hnswlib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import hnswlib
import numpy as np
from .base import BaseANN
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/kdtree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import sklearn.neighbors
import sklearn.preprocessing
from .base import BaseANN
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/kgraph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import os
import numpy
import pykgraph
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/lshf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import sklearn.neighbors
import sklearn.preprocessing
from .base import BaseANN
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/milvus.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import numpy
import pyknowhere
from .base import BaseANN
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/mrpt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import numpy
import sklearn.preprocessing
import mrpt
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/n2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import n2
from .base import BaseANN

Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/nearpy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import nearpy
from nearpy.filters import NearestFilter
import sklearn.preprocessing
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/nmslib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import os
import nmslib
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/onng_ngt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import os
import ngtpy
import subprocess
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/panng_ngt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import os
import ngtpy
import subprocess
Expand Down
2 changes: 0 additions & 2 deletions ann_benchmarks/algorithms/puffinn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import numpy as np

import puffinn
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/pynndescent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import pynndescent
from .base import BaseANN
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/qg_ngt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import os
import ngtpy
import subprocess
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/qsg_ngt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import os
import ngtpy
import subprocess
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/rpforest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import rpforest
import numpy
from .base import BaseANN
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/scann.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import numpy as np
import scann
from .base import BaseANN
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/sptag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import SPTAG
from .base import BaseANN

Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/subprocess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
from os.path import basename
import shlex
from types import MethodType
Expand Down
2 changes: 0 additions & 2 deletions ann_benchmarks/algorithms/vald.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import atexit
import subprocess
import urllib.error
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/algorithms/vearch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import time
import numpy as np
import vearch
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import numpy


Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/distance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import numpy as np

# Need own implementation of jaccard because scipy's
Expand Down
1 change: 0 additions & 1 deletion ann_benchmarks/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import argparse
import logging
import logging.config
Expand Down
2 changes: 0 additions & 2 deletions ann_benchmarks/results.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import h5py
import json
import os
Expand Down

0 comments on commit 8b0475b

Please sign in to comment.