Cecca / role-of-dimensionality

MIT License
3 stars 0 forks source link

Optimize compute-lid.py #20

Closed Cecca closed 3 years ago

Cecca commented 3 years ago

Use numpy vector operations for a 20x speed improvement (from 60 seconds to 3 to generate the k=100 LID of Fashion-MNIST).

The numerical results are the same up to the 6th decimal place