Ejemplo n.º 1
0
func readBenchmarkData() (benchmarkFeatures []v.F64, benchmarkLabels v.B) {
	benchmarkFeatures = mat.MustRead("Validation1X.mat").Array("Validation1X").RowsToVectors()
	benchmarkLabels = mat.MustRead("Validation1Y.mat").Array("Validation1Y").ToVector().F64ToB()
	return
}
Ejemplo n.º 2
0
func readTrainData() (trainFeatures []v.F64, trainLabels v.B) {
	trainFeatures = mat.MustRead("Train1X.mat").Array("Train1X").RowsToVectors()
	trainLabels = mat.MustRead("Train1Y.mat").Array("Train1Y").ToVector().F64ToB()
	return
}