Skip to content

[PyPI]: README / Package is outdated #7

@crazoter

Description

@crazoter

Context
Running !pip install graphgrove installs graphgrove-0.0.1. However, this package is outdated; it does not even support the example toy code outlined by the README of this repository:

import graphgrove as gg
k = 5
num_rounds = 50
thresholds = np.geomspace(1.0, 0.001, num_rounds).astype(np.float32)
scc = gg.vec_scc.Cosine_SCC(k=k, num_rounds=num_rounds, thresholds=thresholds, index_name='cosine_sgtree', cores=cores, verbosity=0)
# data_batches - generator of numpy matrices mini-batch-size by dim
for batch in data_batches:
    scc.partial_fit(batch)

The following error is produced:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-3-4e77842e8c6e>](https://localhost:8080/#) in <cell line: 6>()
      4 num_rounds = 50
      5 thresholds = np.geomspace(1.0, 0.001, num_rounds).astype(np.float32)
----> 6 scc = gg.vec_scc.Cosine_SCC(k=k, num_rounds=num_rounds, thresholds=thresholds, index_name='cosine_sgtree', cores=cores, verbosity=0)
      7 # data_batches - generator of numpy matrices mini-batch-size by dim
      8 # for batch in data_batches:

AttributeError: module 'graphgrove' has no attribute 'vec_scc'

This issue persists even after the package is built locally and installed.

Example:
https://colab.research.google.com/drive/18t_xGjS86wk8RbrkUToziRT3XjgMLiWc?usp=sharing

Suggest either updating the readme or the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions