mahout icon indicating copy to clipboard operation
mahout copied to clipboard

[QDP] Add NumPy dependency and Support NumPy 1D array input for single sample encoding

Open rich7420 opened this issue 1 month ago • 1 comments

Summary

This PR adds infrastructure and basic NumPy array input support for single sample encoding. It includes dependency setup, error types, and the core encode_numpy() method for 1D arrays.

  • add dependency qdp-python/Cargo.toml
  • add error type qdp-core/src/error.rs
  • add encode_numpy() qdp-python/src/lib.rs
  • add a helper methods in qdp-core/src/lib.rs for slice conversion
  • add unit test qdp-python/tests/test_numpy_input.py

rich7420 avatar Dec 12 '25 09:12 rich7420