Code Monkey home page Code Monkey logo

Comments (6)

cmandreani avatar cmandreani commented on August 11, 2024

Hi @SamWilliamsUOB , I retrieved the same error with anaconda3, and network files were properly generated but there was no tree constructed.

With docker worked fine, though.

from big-scape.

Sam-Will avatar Sam-Will commented on August 11, 2024

Managed to get this script to work with the --clans-off flag

from big-scape.

jorgecnavarrom avatar jorgecnavarrom commented on August 11, 2024

Seems like scikit-learn's Affinity propagation was the cause.. which version do you have installed?

from big-scape.

Sam-Will avatar Sam-Will commented on August 11, 2024

Hi Jorge,

So looks like 1.0.2 for sklearn

>>> import sklearn
>>> print(sklearn.__version__)
1.0.2

Thanks,
Sam

from big-scape.

jorgecnavarrom avatar jorgecnavarrom commented on August 11, 2024

Could you try with v0.19.2?

from big-scape.

zreitz avatar zreitz commented on August 11, 2024

FYI, I had a similar error with --mix and --cutoffs above ~0.4.

/lustre/BIF/nobackup/reitz001/mambaforge/envs/bigscape/lib/python3.6/site-packages/sklearn/cluster/_affinity_propagation.py:247: ConvergenceWarning: Affinity propagation did not converge, this model will not have any cluster centers.
  "will not have any cluster centers.", ConvergenceWarning)
Traceback (most recent call last):
  File "/home/reitz001/lustre/software/BiG-SCAPE/bigscape.py", line 3042, in <module>
    clanCutoff=options.clan_cutoff, htmlFolder=network_html_folder)
  File "/home/reitz001/lustre/software/BiG-SCAPE/bigscape.py", line 1459, in clusterJsonBatch
    labels[bgcExt2Int[bgcSub2Ext_[i]]] = bgcExt2Int[bgcSub2Ext_[exemplarsSub[labelsSub[i]]]]
IndexError: list index out of range

Downgrading sklearn from v0.24.2 to v0.19.2 solved it.

from big-scape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.