18 lines
377 B
Python
Executable File
18 lines
377 B
Python
Executable File
#!/bin/python3
|
|
from sys import path
|
|
path.insert(1, "..")
|
|
from sobek.network import network
|
|
import pickle
|
|
|
|
with open("flowerGardenData", "rb") as file:
|
|
data = pickle.load(file)
|
|
|
|
trainPoints = data[0]
|
|
trainLabels = data[1]
|
|
|
|
myNetwork = network(2, 16, 1)
|
|
|
|
learningRate = 3.0
|
|
|
|
myNetwork.train(trainPoints, trainLabels, learningRate, batchSize=100, epochs=3000, visualize=True)
|