UtilsΒΆ
Validate and return the shared device of a collection of tensors. |
|
Validate and return the shared dtype of a collection of tensors. |
|
Construct a design matrix from one or more numeric vectors or tensors. |
|
Construct a one-hot encoded design matrix from a categorical vector. |
|
|
Horizontally concatenate two or more design matrices. |
|
Construct an interaction term from two or more categorical vectors. |