DataPredict™ [Release 2.4] (Mature + Maintenance Mode) - Machine Learning And Deep Learning Library - 40+ Models + Deep Reinforcement Learning!

No problem, now it’s like this:

local DQN = DataPredict.Models.QLearningNeuralNetwork.new() -- Create a new model object.

DQN:createLayers({4, 3, 2}) -- Setting up our layers.
DQN:setClassesList({"Up", "Down"}) -- Setting up our classes.
local reward = 0
wait(10)
local part = workspace:FindFirstChild("AIPart")
local oldposition = part.Position.X
DQN:setPrintReinforcementOutput(true)

while true do
	local playerposition = part.Position.X
	--##!!
    local environmentFeatureVector = {
		{playerposition,0, 0}
	}
	--##!!
	if not (playerposition >= 50) then
		if playerposition == oldposition then
			reward = -1
		else
			reward = playerposition - oldposition
		end
	else
		reward = 50
	end
	oldposition = part.Position.X
	local actionLabel = DQN:reinforce(environmentFeatureVector, reward) -- Run the reinforce() function.
	if actionLabel == "Up" then
		local pol = part.Position
		part.Position.X = pol + 1
	else
		local pol = part.Position
		part.Position.X = pol - 1
	end
	if part.Position.X >= 50 then
		wait(10)
	end
	wait(0.1)
end

unfortunately now comes the error:

  12:06:41.118  ServerScriptService.MatrixL:231: Argument 1 and 2 are incompatible! (1, 3) and (5, 4)  -  Server - MatrixL:231
  12:06:41.118  Stack Begin  -  Studio
  12:06:41.118  Script 'ServerScriptService.MatrixL', Line 231 - function dotProduct  -  Studio - MatrixL:231
  12:06:41.118  Script 'ServerScriptService.DataPredictLibrary.Models.NeuralNetwork', Line 368 - function forwardPropagate  -  Studio - NeuralNetwork:368
  12:06:41.119  Script 'ServerScriptService.DataPredictLibrary.Models.NeuralNetwork', Line 960 - function predict  -  Studio - NeuralNetwork:960
  12:06:41.119  Script 'ServerScriptService.DataPredictLibrary.Models.QLearningNeuralNetwork', Line 211 - function reinforce  -  Studio - QLearningNeuralNetwork:211
  12:06:41.120  Script 'ServerScriptService.AI2', Line 109  -  Studio - AI2:109
  12:06:41.120  Stack End 

Thanks for the help :heart:

,
Sorry

And:
local testData = {

{1, 90, 32},
{1, -120, -41}

}
Doesn’t there have to be another comma?
Please excuse me that I(probably) get on your nerves so much