Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Path = "mlscript/"
View Source
var ScriptName = "train.sh"
Functions ¶
func ParseEigenOutput ¶
Parse the output file of the eigen algorithm. The format is: Qr Qc q1 q2 q3 ... Zr Zc z1 z2 z3 ...
Where: Qr - rows of Q; Qc - columns of Q; q1, q1, qn - elements of Q, ordered as:
Matrix: 1 2 3 4 5 6
Is written as: 1 3 5 2 4 5
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
In result, unlike in Matlab, the node IDs start from 0. In matlab and the CSV files provided, they start from 1.
func FromQZ ¶
FromQZ creates a result object form a q and a z matrix. Obtain those matrices from Eigen().
func (*Result) DistanceSim ¶
Sim returns the similarity metric between two nodes.
Click to show internal directories.
Click to hide internal directories.