pyFM
pyFM copied to clipboard
Use memoryviews for sample_weight_data
Use https://cython.readthedocs.io/en/latest/src/userguide/numpy_tutorial.html#efficient-indexing-with-memoryviews instead of casting the arrays.data attribute into a DOUBLE*.
The former strategy generated segfaults in some servers.