Trainining Omikuji from scipy.sparse.csr_matrix - #55
Conversation
|
Just a fellow Omikuji fan dropping by to ask how big speed up you think can be achieved with this? Could you give some measured numbers? |
|
@juhoinkinen the speed-up depends if you have to fit many times over a large-dataset, like in the case of a |
|
@juhoinkinen I am new to Rust but a lot of C++ background. I've managed to make the stuff work |
|
Thanks for the contribution! I've been traveling and don't have my computer with me. I'll try take a look in early March. In the meantime, it would be great of you can make all the tests pass :D |
I've adapted an alternative method to train the omikuji model by bypassing disk write for the Python wrapper.
The main work is based on the creation of a new methods in the
lib.rsfile calledload_omikuji_data_set_from_features_labels.It is designed to take in the three main numpy arrays defining the underlying structure of the
scipy.sparse.csr_matrix.In other words I map the
scipy.sparse.csr_matrix.{indices, indptr, data}arrays into Rust vectors, and then I recreate a features matrix together with the labels set, in a way similar to thetrain_on_datamethod.