Documentation ¶
Index ¶
- Constants
- func IsDotOperationAllowed(a, b NDArray, boardcasting ...bool) bool
- func ParseDim(sDims string, shape *domain.IVector) *domain.Dimensions
- func Split(a NDArray, index int, axis ...int) (NDArray, NDArray)
- type DataSet
- type NDArray
- func Add(nd NDArray, factor float64) NDArray
- func Addition(a, b NDArray) NDArray
- func Amax(a NDArray, axis ...int) NDArray
- func Amin(a NDArray, axis ...int) NDArray
- func Arange(size ...int) NDArray
- func Argmax(a NDArray, axis ...int) NDArray
- func Argmin(a NDArray, axis ...int) NDArray
- func ArrayMultiply(a, b NDArray) NDArray
- func Clip(a NDArray, min, max float64) NDArray
- func Concatenate(a, b NDArray, axis ...int) NDArray
- func Diag(nd NDArray, k ...int) NDArray
- func DimensionReductionV2(lambda func(v domain.Vector) float64, a NDArray, axis int) NDArray
- func Div(nd NDArray, factor float64) NDArray
- func Division(a, b NDArray) NDArray
- func Dot(x, y NDArray, lambda func(float64, float64) float64) NDArray
- func Equal(nd NDArray, factor float64) NDArray
- func Equals(a NDArray, b NDArray) NDArray
- func Exp(nd NDArray) NDArray
- func FilterRows(a NDArray, lambda func(row *domain.Vector) bool) NDArray
- func ForEachElement(nd NDArray, lambda func(v float64) float64) NDArray
- func Log(nd NDArray) NDArray
- func Log2(nd NDArray) NDArray
- func MaxNDArray(dtype string, shape []int) NDArray
- func Mult(nd NDArray, factor float64) NDArray
- func Multiply(a, b NDArray) NDArray
- func NewNDArray(dtype string, shape []int, noinit ...bool) NDArray
- func Ones(dtype string, shape ...int) NDArray
- func Pow(nd NDArray, factor float64) NDArray
- func Rand(dtype string, shape ...int) NDArray
- func Shuffle(nd NDArray) NDArray
- func Sub(nd NDArray, factor float64) NDArray
- func Subtract(a, b NDArray) NDArray
- func Sum(a NDArray, axis ...int) NDArray
- func Transpose(nd NDArray) NDArray
- func Unique(a NDArray, axis ...int) NDArray
- func Zeros(dtype string, shape ...int) NDArray
- func (nd *NDArray) CopyLike() NDArray
- func (nd *NDArray) Get(dims *domain.Dimensions) (NDArray, error)
- func (nd *NDArray) GetIndexed(indexes NDArray) NDArray
- func (nd *NDArray) Len() int
- func (nd *NDArray) Mean(axis ...int) NDArray
- func (nd *NDArray) Reshape(shape *domain.IVector) bool
- func (nd *NDArray) Set(dims *domain.Dimensions, value float64) error
- type NDIndex
Constants ¶
View Source
const OneBigNumber = 1000000
Variables ¶
This section is empty.
Functions ¶
func IsDotOperationAllowed ¶
The size of the result array created by broadcast operations is the maximum size along each dimension from the input arrays.
Types ¶
type DataSet ¶
type DataSet struct { Data NDArray Target NDArray TargetNames []string FeatureNames []string DatasetPath string Description string }
func LoadDataFromFile ¶
TODO: Add tests
type NDArray ¶
type NDArray struct { Elements domain.Vector Shape domain.IVector Strides domain.IVector DType string Dims int Size int }
func Concatenate ¶
func DimensionReductionV2 ¶
func ForEachElement ¶
EACH ELEMENT - lambda functions
func MaxNDArray ¶
func Shuffle ¶
This function only shuffles the array along the first axis of a multi-dimensional array.
func (*NDArray) GetIndexed ¶
TODO: implement this
type NDIndex ¶
type NDIndex struct {
// contains filtered or unexported fields
}
func NewNDIndex ¶
func (*NDIndex) IncrementIndex ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.