lucasmaystre / choix

Inference algorithms for models based on Luce's choice axiom
MIT License
158 stars 27 forks source link

Type Error in choicerank-tutorial.ipynb #20

Closed Kzra closed 2 years ago

Kzra commented 3 years ago

networkx version == 2.5 choix version == 0.3.4

Running the code cell in 1. Generating sample data lead to the following error:

image_2021-10-21_100337

This can be fixed using:

neighbors = list(graph.successors(src))

The same error also occurred for me in 2. Estimating transistions using choicerank and can be fixed in the same way.

lucasmaystre commented 3 years ago

@Kzra thanks for reporting. I will fix the notebook as soon as I get a chance.