I was wondering if I can create a neural network in roblox by using events. The bindable event would be a single neuron and there will scripts handling requests and other scripts firing. Would this be feasible or would it be too complicated? It would be something like this: (idk, haven’t tried it yet)
Neuron1.Fire(weights) --fire weights
--some other script
Neuron1.Event:Connect(function(weights)
--do stuff with weights
Neuron2.Fire(alteredWeights)
end)
Or something like that, if not, is there any good AI plugins in roblox?
While yea technically you can do that, it’s not recommended and you’re better off using OOP.
Neuron = {}
Neuron.__index = Neuron
function Neuron:Fire(weight)
--do stuff with weights
end
Firing a bindable event takes more time than calling a function from a meta table, when you’re dealing with multiple layers of neurons, it can get pretty slow, real fast.
Also how are you planning to make the neural network? Right now it just seems like you’re making each neuron by hand and manually adding in the modifiers.
I really don’t know how to make the network in Roblox. I know how to implement it in other languages such as Python but I guess can create something ModuleScripts and metatables?
If you can only create it using tensorflow then I suggest you stick with that until you’ve learned how the fundamentals work.
It’s basically a cycle of equations that you apply to a value of x. Using those equations you train neurons and form layers using multiple neurons.
Here’s some simple equations thatll help you out.
Theres many book help you out also.
Prediction ( WX ) Simplified
Activation ( X ? X >= 0 ) Relu
Decent ( sqrt(T - X ^ 2) ) Standard Gradient
Train ( X - SGD ) Simplified