-
Im converting an ML model to rust and im translating some of the methods that use numpy and one method uses this |
Beta Was this translation helpful? Give feedback.
Answered by
zgbkdlm
Jan 27, 2023
Replies: 1 comment
-
You need to use Then convert the iterator to the ndarray by the method |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mdrokz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to use
itertools.cartesian_product
in https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.cartesian_product.Then convert the iterator to the ndarray by the method
from_iter
.