Skip to content

Commit

Permalink
Minor tweaks, v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zgornel committed Feb 27, 2020
2 parents b2a9e0b + 4c3b974 commit 6ceee34
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 27 deletions.
23 changes: 10 additions & 13 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ version = "1.1.0"

[[DataStructures]]
deps = ["InteractiveUtils", "OrderedCollections"]
git-tree-sha1 = "1fe8fad5fc84686dcbc674aa255bc867a64f8132"
git-tree-sha1 = "5a431d46abf2ef2a4d5d00bd0ae61f651cf854c8"
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
version = "0.17.5"
version = "0.17.10"

[[Dates]]
deps = ["Printf"]
Expand Down Expand Up @@ -67,14 +67,11 @@ git-tree-sha1 = "de0a5ce9e5289f27df672ffabef4d1e5861247d5"
uuid = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
version = "0.4.3"

[[Mmap]]
uuid = "a63ad114-7e13-5084-954f-fe012c677804"

[[NearestNeighbors]]
deps = ["Distances", "LinearAlgebra", "Mmap", "StaticArrays", "Test"]
git-tree-sha1 = "f47c5d97cf9a8caefa47e9fa9d99d8fda1a65154"
deps = ["Distances", "StaticArrays"]
git-tree-sha1 = "8bc6180f328f3c0ea2663935db880d34c57d6eae"
uuid = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
version = "0.4.3"
version = "0.4.4"

[[OrderedCollections]]
deps = ["Random", "Serialization", "Test"]
Expand All @@ -83,7 +80,7 @@ uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
version = "1.1.0"

[[Pkg]]
deps = ["Dates", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Test", "UUIDs"]
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[[Printf]]
Expand Down Expand Up @@ -131,19 +128,19 @@ uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[[StaticArrays]]
deps = ["LinearAlgebra", "Random", "Statistics"]
git-tree-sha1 = "1085ffbf5fd48fdba64ef8e902ca429c4e1212d3"
git-tree-sha1 = "5a3bcb6233adabde68ebc97be66e95dcb787424c"
uuid = "90137ffa-7385-5640-81b9-e52037218182"
version = "0.11.1"
version = "0.12.1"

[[Statistics]]
deps = ["LinearAlgebra", "SparseArrays"]
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[[StatsBase]]
deps = ["DataAPI", "DataStructures", "LinearAlgebra", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics"]
git-tree-sha1 = "c53e809e63fe5cf5de13632090bc3520649c9950"
git-tree-sha1 = "be5c7d45daa449d12868f4466dbf5882242cf2d9"
uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
version = "0.32.0"
version = "0.32.1"

[[Test]]
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
v0.1.1
------
- Small fixes in dependencies
- Updated links for JuliaNeighbors

v0.1.0
------
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "IVFADC"
uuid = "c28a5fd4-166f-4f83-b04d-195ccdb4ae51"
authors = ["Corneliu Cofaru <cornel@oxoaresearch.com>"]
version = "0.1.0"
version = "0.1.1"

[deps]
Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
Expand All @@ -11,12 +11,12 @@ HNSW = "540f64fa-c57e-11e8-081c-41422cda4629"
QuantizedArrays = "a7db621c-8ce0-11e9-16a1-0f86dc86bd10"

[compat]
julia = "1"
Clustering = "0.13, 0.13.3"
DataStructures = "0.17, 0.17.5"
Distances = "0.8, 1"
HNSW = "0.1.0"
QuantizedArrays = "0.1.0, 0.1.3"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
![Alt text](https://github.com/zgornel/IVFADC.jl/blob/master/docs/src/assets/logo.png)
![Alt text](https://github.com/JuliaNeighbors/IVFADC.jl/blob/master/docs/src/assets/logo.png)

Inverted file system with asymmetric distance computation for billion-scale approximate nearest neighbor search.

[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)
[![Build Status](https://travis-ci.org/zgornel/IVFADC.jl.svg?branch=master)](https://travis-ci.org/zgornel/IVFADC.jl)
[![Coverage Status](https://coveralls.io/repos/github/zgornel/IVFADC.jl/badge.svg?branch=master)](https://coveralls.io/github/zgornel/IVFADC.jl?branch=master)
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://zgornel.github.io/IVFADC.jl/stable)
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://zgornel.github.io/IVFADC.jl/dev)
[![Build Status](https://travis-ci.org/JuliaNeighbors/IVFADC.jl.svg?branch=master)](https://travis-ci.org/JuliaNeighbors/IVFADC.jl)
[![Coverage Status](https://coveralls.io/repos/github/JuliaNeighbors/IVFADC.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaNeighbors/IVFADC.jl?branch=master)
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaNeighbors.github.io/IVFADC.jl/stable)
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaNeighbors.github.io/IVFADC.jl/dev)


## Installation
Expand All @@ -16,7 +16,7 @@ Pkg.add("IVFADC")
```
or
```julia
Pkg.add(PackageSpec(url="https://github.com/zgornel/IVFADC.jl", rev="master"))
Pkg.add(PackageSpec(url="https://github.com/JuliaNeighbors/IVFADC.jl", rev="master"))
```
for the latest `master` branch.

Expand Down Expand Up @@ -100,7 +100,7 @@ int_idxs = Int.(idxs) .+ 1 # retrieve 1-based integer neighbors


## Features
To keep track with the latest features, please consult [NEWS.md](https://github.com/zgornel/IVFADC.jl/blob/master/NEWS.md) and the [documentation](https://zgornel.github.io/IVFADC.jl/dev).
To keep track with the latest features, please consult [NEWS.md](https://github.com/JuliaNeighbors/IVFADC.jl/blob/master/NEWS.md) and the [documentation](https://JuliaNeighbors.github.io/IVFADC.jl/dev).


## License
Expand All @@ -110,7 +110,7 @@ The code has an MIT license and therefore it is free.

## Reporting Bugs

This is work in progress and bugs may still be present...¯\\_(ツ)_/¯ Do not worry, just [open an issue](https://github.com/zgornel/IVFADC.jl/issues/new) to report a bug or request a feature.
This is work in progress and bugs may still be present...¯\\_(ツ)_/¯ Do not worry, just [open an issue](https://github.com/JuliaNeighbors/IVFADC.jl/issues/new) to report a bug or request a feature.


## References
Expand Down
8 changes: 4 additions & 4 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ end
Pops from the index `ivfadc` the point with the highest index and returns it updating
the index as well.
"""
pop!(ivfadc) = _pop!(ivfadc, :last)
pop!(ivfadc::IVFADCIndex) = _pop!(ivfadc, :last)


"""
popfirst!(ivfadc)
Pops from the index `ivfadc` the first point and returns it updating the index as well.
"""
popfirst!(ivfadc) = _pop!(ivfadc, :first)
popfirst!(ivfadc::IVFADCIndex) = _pop!(ivfadc, :first)


# Utility function for poping
Expand Down Expand Up @@ -111,7 +111,7 @@ end
Pushes `point` to the end of index `ivfadc`; the point is assigned to a cluster
and its quantized code added to the inverted list corresponding to the cluster.
"""
push!(ivfadc, point) = _push!(ivfadc, point, :last)
push!(ivfadc::IVFADCIndex, point) = _push!(ivfadc, point, :last)


"""
Expand All @@ -120,7 +120,7 @@ push!(ivfadc, point) = _push!(ivfadc, point, :last)
Pushes `point` to the beginning of index `ivfadc`; the point is assigned to a cluster
and its quantized code added to the inverted list corresponding to the cluster.
"""
pushfirst!(ivfadc, point) = _push!(ivfadc, point, :first)
pushfirst!(ivfadc::IVFADCIndex, point) = _push!(ivfadc, point, :first)


# Utility function for pushing
Expand Down

0 comments on commit 6ceee34

Please sign in to comment.