func createNetwork() { n := neural.NewNetwork(9, []int{9, 9, 4}) n.RandomizeSynapses() persist.ToFile(jsonFile, n) }
func createLangNetwork() { if _, err := os.Stat(jsonFile); err == nil { return } n := neural.NewNetwork(sampleLen, []int{1000, 1000, 3}) n.RandomizeSynapses() persist.ToFile(jsonFile, n) }
func saveNetwork(n *neural.Network) { persist.ToFile(jsonFile, n) }
func Save() { persist.ToFile(file, network) }