im making a saving system to save neural networks, and they have their layers, neurons, biases, connections, etc, saved inside of nested tables inside of nested tables.
i’ve written 2 scripts that save and load the neural networks, and they SEEM to have nothing wrong with them. the issue is, what gets loaded is not what i saved, so its either saving didnt save everything, or loading did load everything.
SAVING SCRIPT:
local datastoreService = game:GetService("DataStoreService")
local NetworkSave = datastoreService:GetDataStore("Network")
print(NetworkSave:GetAsync("Network"))
local BestNetwork = require(game.ServerScriptService.BestNetwork)
script.Parent.MouseButton1Click:Connect(function()
print(BestNetwork.BestNetwork)
NetworkSave:SetAsync("Network",BestNetwork.BestNetwork)
end)
LOADING SCRIPT:
local datastoreService = game:GetService("DataStoreService")
local NetworkSave = datastoreService:GetDataStore("Network")
local BestNetwork = require(game.ServerScriptService.BestNetwork)
script.Parent.MouseButton1Click:Connect(function()
local NewNetwork = NetworkSave:GetAsync("Network")
BestNetwork.BestNetwork = NewNetwork
print(NewNetwork)
game.ServerScriptService.TeachingScript.Enabled = false
wait(0.5)
game.ServerScriptService.TeachingScript.Enabled = true
end)