Functions
Apply a function expecting 2D input to a tensor along a specified dimension. |
|
Backward fill missing values along the specified dimension. |
|
Count number of occurrences of each value in a tensor. |
|
Compute Bollinger Bands for a tensor. |
|
Compute Pearson correlation coefficient between two tensors. |
|
Compute covariance between two tensors along a specified dimension. |
|
Number each occurrence of unique values along a dimension. |
|
Compute eigenvalues and eigenvectors of a symmetric/Hermitian matrix. |
|
Sums the product of tensor elements over specified indices using Einstein notation. |
|
Compute exponential moving average along a specified dimension. |
|
Forward fill missing values along the specified dimension. |
|
Replace NaN and infinity values with specified numbers. |
|
Apply Gaussian blur to a tensor along a specified dimension. |
|
Shift tensor elements along a dimension, skipping masked positions. |
|
Group tensor elements by group identifiers along a dimension. |
|
Compute the moving (sliding window) average of a tensor. |
|
Compute the moving (sliding window) maximum of a tensor. |
|
Compute the moving (sliding window) minimum of a tensor. |
|
Compute the moving (sliding window) standard deviation of a tensor. |
|
Compute the moving (sliding window) sum of a tensor. |
|
Compute the mean of element-wise product in a memory-efficient way. |
|
Compute sum or mean of element-wise product in a memory-efficient way. |
|
Compute the moving (sliding window) variance of a tensor. |
|
Compute the maximum of tensor elements along specified dimensions, ignoring NaN values. |
|
Compute the minimum of tensor elements along specified dimensions, ignoring NaN values. |
|
Compute Pearson correlation coefficient between two tensors, ignoring NaN values. |
|
Compute covariance between two tensors, ignoring NaN values. |
|
Compute the cumulative product along a dimension, treating NaN as 1. |
|
Compute the cumulative sum along a dimension, treating NaN as 0. |
|
Compute the kurtosis along specified dimensions, ignoring NaN values. |
|
Return the maximum values and indices along a dimension, ignoring NaN values. |
|
Compute the arithmetic mean along specified dimensions, ignoring NaN values. |
|
Return the minimum values and indices along a dimension, ignoring NaN values. |
|
Compute the mean of element-wise product, ignoring NaN values, in a memory-efficient way. |
|
Compute the sum of element-wise product, ignoring NaN values, in a memory-efficient way. |
|
Create a tensor filled with ones, preserving NaN positions from the input tensor. |
|
Compute Principal Component Analysis (PCA) on data, ignoring NaN values. |
|
Shift tensor elements along a dimension while preserving NaN positions. |
|
Compute the skewness along specified dimensions, ignoring NaN values. |
|
Compute the slope of simple linear regression between two tensors, ignoring NaN values. |
|
Compute the sum of tensor elements along specified dimensions, ignoring NaN values. |
|
Compute the variance of a tensor, ignoring NaN values. |
|
Orthogonalizes x with respect to y along the specified dimension. |
|
Orthonormalizes the given vectors and returns the corresponding orthonormal vectors. |
|
Computes principal components on the given input x. The returned value represents principal components. Specifically, result[*, i, :] represents the \((i+1)\)-th largest principal component of the batch specified by *. Shape: - x: \((*, S, D)\) where * means any number of additional dimensions, S means the number of sections, and D means the number of dimensions. In qfeval, dimensions and sections often represent symbols and timestamps respectively. :returns:. |
|
Projects the given tensor x using the given projection matrix a. |
|
Returns a tensor filled with random numbers from a uniform distribution on the interval [0, 1). |
|
Returns a tensor with the same size as input that is filled with random numbers from a uniform distribution on the interval [0, 1). |
|
Returns a tensor filled with random integers generated uniformly between low (inclusive) and high (exclusive). |
|
Returns a tensor filled with random numbers from a normal distribution with mean 0 and variance 1 (also called the standard normal distribution). |
|
Returns a tensor with the same size as input that is filled with random numbers from a normal distribution with mean 0 and variance 1. |
|
Returns a random permutation of integers from 0 to n - 1. |
|
Returns the reversely cumulative max of elements of input in the dimension dim. |
|
Returns the reversely cumulative sum of elements of input in the dimension dim. |
|
Returns the root mean square of each row of the input tensor in the given dimension dim. |
|
Definition(use_sma=False): - https://www.investopedia.com/terms/r/rsi.asp - Compatible with TA-lib Definition(use_sma=True): - https://info.monex.co.jp/technical-analysis/indicators/005.html |
|
Rounds the numbers of the given tensor to the specified number of significant digits. |
|
Applies the given data to the given function after removing NaNs. |
|
Returns the slope of correlation bewteen x and y. |
|
Apply SoftTopKBottomK module along with given dimension. |
|
Sorts the given tensor preserving the order of equivalent elements. |