Util

Various utility functions

Static members

Static memberDescription
LoadDelimited(filename)
Signature: filename:string -> DM

Load values from delimited text file with given filename and a default set of separator characters: space, comma, or tab

LoadDelimited(filename, separators)
Signature: (filename:string * separators:char []) -> DM

Load values from delimited text file with given filename and separator characters separators

LoadImage(filename)
Signature: filename:string -> DM

Load bitmap image with given filename to DM

LoadMNISTLabels(filename)
Signature: filename:string -> int []

Load values from the MNIST database labels, from given filename, reading all elements

LoadMNISTLabels(filename, n)
Signature: (filename:string * n:int) -> int []

Load values from the MNIST database labels, from given filename, reading n number of elements

LoadMNISTPixels(filename)
Signature: filename:string -> DM

Load values from the MNIST database images, from given filename, reading all elements

LoadMNISTPixels(filename, n)
Signature: (filename:string * n:int) -> DM

Load values from the MNIST database images, from given filename, reading n number of elements

printLog(s)
Signature: s:string -> unit
printModel(f d)
Signature: (f:(DV -> DV)) -> d:Dataset -> unit
VisualizeDMRowsAsImageGrid(w, imagerows)
Signature: (w:DM * imagerows:int) -> string

Generate a string representation of matrix w, reshaping each row into an image with imagerows rows, and presenting resulting images together in an optimal grid layout.