Sparse routines¶
Create Arrays¶
Creates a sparse array from any object exposing the array interface. |
|
Creates a CSRNDArray, an 2D array with compressed sparse row (CSR) format. |
|
Returns a new array of given shape and type, without initializing entries. |
|
Creates a RowSparseNDArray, a multidimensional row sparse array with a set of tensor slices at given indices. |
|
Return a new array of given shape and type, filled with zeros. |
|
Return an array of zeros with the same shape, type and storage type as the input array. |
Math¶
Arithmetic¶
Adds all input arguments element-wise. |
|
Returns element-wise sum of the input arrays with broadcasting. |
|
Returns element-wise division of the input arrays with broadcasting. |
|
Returns element-wise product of the input arrays with broadcasting. |
|
Returns element-wise difference of the input arrays with broadcasting. |
|
Dot product of two arrays. |
|
Adds arguments element-wise. |
|
Multiplies arguments element-wise. |
|
Subtracts arguments element-wise. |
|
Numerical negative of the argument, element-wise. |
Trigonometric¶
Returns element-wise inverse sine of the input array. |
|
Returns element-wise inverse tangent of the input array. |
|
Converts each element of the input array from radians to degrees. |
|
Converts each element of the input array from degrees to radians. |
|
Computes the element-wise sine of the input array. |
|
Computes the element-wise tangent of the input array. |
Hyperbolic¶
Returns the element-wise inverse hyperbolic sine of the input array, computed element-wise. |
|
Returns the element-wise inverse hyperbolic tangent of the input array, computed element-wise. |
|
Returns the hyperbolic sine of the input array, computed element-wise. |
|
Returns the hyperbolic tangent of the input array, computed element-wise. |
Reduce¶
Computes the mean of array elements over given axes. |
|
Computes the norm on an NDArray. |
|
Computes the sum of array elements over given axes. |
Round¶
Returns element-wise ceiling of the input. |
|
Returns element-wise rounded value to the nearest integer towards zero of the input. |
|
Returns element-wise floor of the input. |
|
Returns element-wise rounded value to the nearest integer of the input. |
|
Returns element-wise rounded value to the nearest integer of the input. |
|
Return the element-wise truncated value of the input. |
Exponents and logarithms¶
Returns |
|
Returns element-wise |
Powers¶
Returns element-wise square-root value of the input. |
|
Returns element-wise squared value of the input. |
Neural network¶
Updater¶
Update function for Adam optimizer. |
|
Update function for AdaGrad optimizer. |
|
Momentum update function for Stochastic Gradient Descent (SGD) optimizer. |
|
Update function for Stochastic Gradient Descent (SDG) optimizer. |
More¶
Maps integer indices to vector representations (embeddings). |
|
Computes and optimizes for squared loss during backward propagation. |
|
Applies a logistic function to the input. |
|
Make your own loss function in network construction. |
|
Stops gradient computation. |