Numpy¶
- class hamilton.base.NumpyMatrixResult[source]¶
Mixin for building a Numpy Matrix from the result of walking the graph.
All inputs to the build_result function are expected to be numpy arrays.
from hamilton import base, driver adapter = base.SimplePythonGraphAdapter(base.NumpyMatrixResult()) dr = driver.Driver(config, *modules, adapter=adapter) numpy_matrix = dr.execute([...], inputs=...)