im making a new Anti-Cheat now, but why does the cost value just go up? ive tried different combos of different MatrixL and DataPredict versions but nothing works, heres the code:
local module = {}
local MT = {}
MT.__index = MT
function module.new(Dataset, Varibles, Externals, Mask)
local self = {}
setmetatable(self, MT)
local NewDataset = {}
local Labels = {}
for i, v in pairs(Dataset) do
local Div = 0
for i2, v2 in pairs(v["Divs"]) do
Div += v2
end
Div = Div * v["Time"]
local Statistics = {}
for i2, Stat in pairs(v["Stats"]) do
table.insert(Statistics, Stat/Div)
end
for i2, v2 in pairs(Externals) do
if v["Externals"][v2] then
table.insert(Statistics, v["Externals"][v2])
else
table.insert(Statistics, Mask)
end
end
if v["Cheater"] == true then
table.insert(Labels, {1})
else
table.insert(Labels, {-1})
end
table.insert(NewDataset, Statistics)
end
print(NewDataset)
local Model = require(game.ReplicatedStorage.DataPredict.Models.SupportVectorMachine).new(100, 1, 'RadialBasisFunction')
Model:train(NewDataset, Labels)
return self
end
return module