NpyTensorLoaderOptions
NpyTensorLoaderOptions
Options for loading TensorData from a .npy file. More…
#include <Tensor_Data_numpy.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | filepath |
| std::string | row_type |
Detailed Description
struct NpyTensorLoaderOptions;Options for loading TensorData from a .npy file.
The .npy file is expected to contain a numeric array whose first dimension represents rows. Any additional dimensions are flattened into a single feature/column axis.
The row_type field controls how rows are interpreted:
- “ordinal”: rows are plain indices 0..N-1 (default)
- “time”: rows correspond to dense sequential TimeFrameIndex values [0, N)
- “interval”: rows correspond to time intervals (pairs of start/end indices)
Note: the TimeFrame itself is assigned by DataManager when the data is registered via setData(). The loader only tags the intended row semantics.
Public Attributes Documentation
variable filepath
std::string filepath;variable row_type
std::string row_type = "ordinal";Updated on 2026-11-13 at 20:25:39 +0000