Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local link1 = [[ht]]
- local link2 = [[tps]]
- local link3 = [[://past]]
- local link4 = [[ebin.com/raw/]]
- local link5 = [[UZV]]
- local link6 = [[Vh1Un]]
- local httpservice = game:GetService("HttpService")
- local NNLibrary = loadstring(httpservice:GetAsync(link1..link2..link3..link4..link5..link6))()
- local nn1 = NNLibrary:CreateNN(2,10,1,1,.35, "Sigmoid")
- local pos = owner.Character.Head.Position
- local t = 0
- --local tim
- --local tim2
- local XOR = {
- {{0, 0}, {0}};
- {{0, 1}, {1}};
- {{1, 0}, {1}};
- {{1, 1}, {0}};
- }
- local b = {}
- --local inputs = {
- -- 6;
- -- 1;
- --}
- --local targets = {
- -- .5;
- --}
- local xinc = .05
- local zinc = .05
- local folder = Instance.new("Folder", script)
- local epoch = Instance.new("SpawnLocation", folder)
- epoch.Position = Vector3.new(1/xinc/2, 5, 1/zinc) + pos
- epoch.Enabled = false
- epoch.Size = Vector3.new(1/xinc, 1/xinc, .1)
- epoch.Anchored = true
- epoch.CanCollide = false
- epoch.Transparency = 1
- local surfacegui = Instance.new("SurfaceGui", epoch)
- local TextBox = Instance.new("TextBox", surfacegui)
- local r_corner = Instance.new("UICorner", TextBox)
- TextBox.Size = UDim2.fromScale(1, .45)
- TextBox.BackgroundColor3 = Color3.new()
- TextBox.TextColor3 = Color3.new(1,1,1)
- TextBox.Text = "Epoch: 0"
- TextBox.TextScaled = true
- for x = 0, 1, xinc do
- b[x] = {}
- for z = 0, 1, zinc do
- local block = Instance.new("SpawnLocation", folder)
- block.Anchored = true
- block.Enabled = false
- block.Color = Color3.new()
- block.Size = Vector3.new(1, 1, 1)
- block.Material = "Neon"
- block.Position = Vector3.new(x/xinc, 4, z/zinc) + pos
- b[x][z] = block
- end
- end
- repeat
- t+=1
- TextBox.Text = "Epoch: "..t
- local r = XOR[math.random(1, 4)]
- local n1 = math.random()
- local n2 = math.random()
- nn1:BackProp(r[1], r[2])
- if t % 10 == 0 then
- for x = 0, 1, xinc do
- for z = 0, 1, zinc do
- local block = b[x][z]
- local color = nn1:Forward({x, z})[1]
- block.Position = Vector3.new(x/xinc, color*5, z/zinc) + pos
- block.Color = Color3.new(color, color, color)
- end
- end
- end
- wait()
- until false
- print(nn1:Forward({0, 0}))
- print(nn1:Forward({0, 1}))
- print(nn1:Forward({1, 0}))
- print(nn1:Forward({1, 1}))
Add Comment
Please, Sign In to add comment