spaGO v0.4.1 Release Notes
Release Date: 2021-01-22 // about 3 years ago-
โ Added
- ๐ New function
ReleaseMatrix
to packagesmat32
andmat64
. - ๐ New methods to
Matrix
interface, frommat32
andmat64
:Minimum
,Maximum
,MulT
,Inverse
,DoNonZero
. However, the implementation on sparse matrices is not implemented yet (it always panics).
๐ Changed
- ๐ Prefer handling
Matrix
interface values over specificDense
orSparse
matrices, also avoiding unnecessary type casts. Relevant changes to the public API are listed below.mat(32|64).Stack
function's arguments and returned value are nowMatrix
interfaces, instead of explicitDense
matrices.Dense.Minimum
andDense.Maximum
, from packagesmat32
andmat64
, return aMatrix
interface, instead of a specificDense
type.- The return values of
fofe.EncodeDense
,fofe.Encode
, andfofe.BiEncode
are slices ofMatrix
values, instead ofDense
orSparse
. - The
z
argument of the functionfofe.Decode
is of typeMatrix
, instead ofDense
. ml.optimizers.de
(Differential Evolution optimizer) API was changed handlingMatrix
values, instead of specificDense
matrices. Changes include:Member.TargetVector
,Member.DonorVector
,ScoredVector.Vector
, thevector
argument ofNewMember
function, thesolution
argument ofscore
andvalidate
functions passed toNewOptimizer
.PositionalEncoder.Cache
andAxialPositionalEncoder.Cache
are slices ofMatrix
, instead of slices ofDense
.AxialPositionalEncoder.EncodingAt
returns aMatrix
value, instead ofDense
.nn.DumpParamsVector
returns aMatrix
value, instead ofDense
.- The
vector
argument of the functionnn.LoadParamsVector
is aMatrix
, instead ofDense
. - The
value
argument of the methodembeddings.Model.SetEmbedding
is of typeMatrix
, instead ofDense
. - The type of the struct field
evolvingembeddings.WordVectorPair.Vector
isMatrix
, instead ofDense
.
- ๐ New function