Unable to evaluate function model.
There was an error executing the ProcessExperienceFcn. Caused by: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IFunction/evaluate’, ‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’, 84)" style="font-weight:bold">rl.internal.function.IFunction/evaluate</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’,84,0)">第 84 行</a>) Unable to evaluate function model. 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.function.rlContinuousDeterministicActor/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’, 131)" style="font-weight:bold">rl.function.rlContinuousDeterministicActor/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’,131,0)">第 131 行</a>) [action,state] = evaluate(this,observation,varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IGetAction/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’, 43)" style="font-weight:bold">rl.internal.function.IGetAction/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’,43,0)">第 43 行</a>) [action,state] = getAction_(this,observation,cargs{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/parenReferencePacked’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 326)" style="font-weight:bold">deep.AcceleratedFunction/parenReferencePacked</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,326,0)">第 326 行</a>) [varargout{1:nargout}] = obj.Function(struct(‘v’,matlab.lang.internal.move(inputs)).v); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/feval’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 388)" style="font-weight:bold">deep.AcceleratedFunction/feval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,388,0)">第 388 行</a>) [varargout{1:nargout}] = parenReferencePacked(obj, matlab.lang.internal.move(varargin)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.numericEval’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’, 24)" style="font-weight:bold">rl.internal.function.numericEval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’,24,0)">第 24 行</a>) [varargout{1:nargout}] = feval(accelfcn,fcnobjs{:},varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.rlAdditiveNoisePolicy/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’, 162)" style="font-weight:bold">rl.policy.rlAdditiveNoisePolicy/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’,162,0)">第 162 行</a>) [action,state] = rl.internal.function.numericEval(f,… ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.PolicyInterface/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’, 38)" style="font-weight:bold">rl.policy.PolicyInterface/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’,38,0)">第 38 行</a>) [action,this] = getAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’, 32)" style="font-weight:bold">rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’,32,0)">第 32 行</a>) [action,this.Policy_] = getAction(this.Policy_,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.ExperienceProcessorInterface/evaluateAction’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’, 70)" style="font-weight:bold">rl.env.internal.ExperienceProcessorInterface/evaluateAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’,70,0)">第 70 行</a>) action = evaluateAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/simInternal_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 109)" style="font-weight:bold">rl.env.internal.MATLABSimulator/simInternal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,109,0)">第 109 行</a>) act = evaluateAction(expProcessor,obs); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/sim_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 67)" style="font-weight:bold">rl.env.internal.MATLABSimulator/sim_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,67,0)">第 67 行</a>) out = simInternal_(this,simPkg); ^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.AbstractSimulator/sim’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’, 30)" style="font-weight:bold">rl.env.internal.AbstractSimulator/sim</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’,30,0)">第 30 行</a>) out = sim_(this,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.AbstractEnv/runEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’, 144)" style="font-weight:bold">rl.env.AbstractEnv/runEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’,144,0)">第 144 行</a>) out = sim(simulator,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 284)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,284,0)">第 284 行</a>) out_or_F = runEpisode(env,p,… ^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 351)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,351,0)">第 351 行</a>) out = nestedRunEpisode(policy); ^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 39)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,39,0)">第 39 行</a>) result = run_internal_(this); ^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.Trainer/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’, 8)" style="font-weight:bold">rl.internal.train.Trainer/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’,8,0)">第 8 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.OnlineTrainingManager/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’, 123)" style="font-weight:bold">rl.internal.trainmgr.OnlineTrainingManager/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’,123,0)">第 123 行</a>) trainResult = run(trainer); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.TrainingManager/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’, 4)" style="font-weight:bold">rl.internal.trainmgr.TrainingManager/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’,4,0)">第 4 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.agent.AbstractAgent/train’, ‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’, 86)" style="font-weight:bold">rl.agent.AbstractAgent/train</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’,86,0)">第 86 行</a>) trainingResult = run(tm); ^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/runTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 169)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/runTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,169,0)">第 169 行</a>) obj.TrainingResult = train(obj.TrainedAgent,obj.Environment,obj.Options,Evaluator=obj.Evaluator); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/startTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 106)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/startTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,106,0)">第 106 行</a>) runTraining(obj); ^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.ReinforcementLearningApp/openTrainingSession’, ‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’, 369)" style="font-weight:bold">rl.internal.app.ReinforcementLearningApp/openTrainingSession</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’,369,0)">第 369 行</a>) startTraining(obj.TrainingSession,Data,IsResume) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab/trainCB’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 315)" style="font-weight:bold">rl.internal.app.tab.TrainTab/trainCB</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,315,0)">第 315 行</a>) openTrainingSession(obj.App,obj.Data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 210)" style="font-weight:bold">rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,210,0)">第 210 行</a>) obj.Widgets.TrainButton.ButtonPushedFcn = @(~, ~) trainCB(obj); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘internal.Callback.execute’, ‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’, 128)" style="font-weight:bold">internal.Callback.execute</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’,128,0)">第 128 行</a>) feval(callback, src, event); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.Action/PeerEventCallback’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’, 852)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.Action/PeerEventCallback</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’,852,0)">第 852 行</a>) internal.Callback.execute(this.PushPerformedFcn, this, eventdata); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’, 41)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’,41,0)">第 41 行</a>) this.PeerEventListener = addlistener(this.Peer, ‘peerEvent’, @(event, data) PeerEventCallback(this, event, data)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))’, ‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’, 76)" style="font-weight:bold">viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’,76,0)">第 76 行</a>) proxyCallback = @(src, event)callback(src, … ^^^^^^^^^^^^^^^^^ 原因: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlnetwork/predict’, ‘F:Matlab2024btoolboxnnetcnndlnetwork.m’, 700)" style="font-weight:bold">dlnetwork/predict</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetcnndlnetwork.m’,700,0)">第 700 行</a>) 在层 "fc_1" 期间执行失败。 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlarray/fullyconnect>iReshapeMtimesAdd’, ‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’, 272)" style="font-weight:bold">dlarray/fullyconnect>iReshapeMtimesAdd</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’,272,0)">第 272 行</a>) 不支持复数。There was an error executing the ProcessExperienceFcn. Caused by: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IFunction/evaluate’, ‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’, 84)" style="font-weight:bold">rl.internal.function.IFunction/evaluate</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’,84,0)">第 84 行</a>) Unable to evaluate function model. 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.function.rlContinuousDeterministicActor/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’, 131)" style="font-weight:bold">rl.function.rlContinuousDeterministicActor/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’,131,0)">第 131 行</a>) [action,state] = evaluate(this,observation,varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IGetAction/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’, 43)" style="font-weight:bold">rl.internal.function.IGetAction/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’,43,0)">第 43 行</a>) [action,state] = getAction_(this,observation,cargs{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/parenReferencePacked’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 326)" style="font-weight:bold">deep.AcceleratedFunction/parenReferencePacked</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,326,0)">第 326 行</a>) [varargout{1:nargout}] = obj.Function(struct(‘v’,matlab.lang.internal.move(inputs)).v); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/feval’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 388)" style="font-weight:bold">deep.AcceleratedFunction/feval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,388,0)">第 388 行</a>) [varargout{1:nargout}] = parenReferencePacked(obj, matlab.lang.internal.move(varargin)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.numericEval’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’, 24)" style="font-weight:bold">rl.internal.function.numericEval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’,24,0)">第 24 行</a>) [varargout{1:nargout}] = feval(accelfcn,fcnobjs{:},varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.rlAdditiveNoisePolicy/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’, 162)" style="font-weight:bold">rl.policy.rlAdditiveNoisePolicy/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’,162,0)">第 162 行</a>) [action,state] = rl.internal.function.numericEval(f,… ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.PolicyInterface/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’, 38)" style="font-weight:bold">rl.policy.PolicyInterface/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’,38,0)">第 38 行</a>) [action,this] = getAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’, 32)" style="font-weight:bold">rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’,32,0)">第 32 行</a>) [action,this.Policy_] = getAction(this.Policy_,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.ExperienceProcessorInterface/evaluateAction’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’, 70)" style="font-weight:bold">rl.env.internal.ExperienceProcessorInterface/evaluateAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’,70,0)">第 70 行</a>) action = evaluateAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/simInternal_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 109)" style="font-weight:bold">rl.env.internal.MATLABSimulator/simInternal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,109,0)">第 109 行</a>) act = evaluateAction(expProcessor,obs); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/sim_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 67)" style="font-weight:bold">rl.env.internal.MATLABSimulator/sim_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,67,0)">第 67 行</a>) out = simInternal_(this,simPkg); ^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.AbstractSimulator/sim’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’, 30)" style="font-weight:bold">rl.env.internal.AbstractSimulator/sim</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’,30,0)">第 30 行</a>) out = sim_(this,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.AbstractEnv/runEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’, 144)" style="font-weight:bold">rl.env.AbstractEnv/runEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’,144,0)">第 144 行</a>) out = sim(simulator,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 284)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,284,0)">第 284 行</a>) out_or_F = runEpisode(env,p,… ^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 351)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,351,0)">第 351 行</a>) out = nestedRunEpisode(policy); ^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 39)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,39,0)">第 39 行</a>) result = run_internal_(this); ^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.Trainer/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’, 8)" style="font-weight:bold">rl.internal.train.Trainer/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’,8,0)">第 8 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.OnlineTrainingManager/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’, 123)" style="font-weight:bold">rl.internal.trainmgr.OnlineTrainingManager/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’,123,0)">第 123 行</a>) trainResult = run(trainer); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.TrainingManager/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’, 4)" style="font-weight:bold">rl.internal.trainmgr.TrainingManager/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’,4,0)">第 4 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.agent.AbstractAgent/train’, ‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’, 86)" style="font-weight:bold">rl.agent.AbstractAgent/train</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’,86,0)">第 86 行</a>) trainingResult = run(tm); ^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/runTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 169)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/runTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,169,0)">第 169 行</a>) obj.TrainingResult = train(obj.TrainedAgent,obj.Environment,obj.Options,Evaluator=obj.Evaluator); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/startTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 106)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/startTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,106,0)">第 106 行</a>) runTraining(obj); ^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.ReinforcementLearningApp/openTrainingSession’, ‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’, 369)" style="font-weight:bold">rl.internal.app.ReinforcementLearningApp/openTrainingSession</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’,369,0)">第 369 行</a>) startTraining(obj.TrainingSession,Data,IsResume) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab/trainCB’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 315)" style="font-weight:bold">rl.internal.app.tab.TrainTab/trainCB</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,315,0)">第 315 行</a>) openTrainingSession(obj.App,obj.Data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 210)" style="font-weight:bold">rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,210,0)">第 210 行</a>) obj.Widgets.TrainButton.ButtonPushedFcn = @(~, ~) trainCB(obj); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘internal.Callback.execute’, ‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’, 128)" style="font-weight:bold">internal.Callback.execute</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’,128,0)">第 128 行</a>) feval(callback, src, event); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.Action/PeerEventCallback’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’, 852)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.Action/PeerEventCallback</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’,852,0)">第 852 行</a>) internal.Callback.execute(this.PushPerformedFcn, this, eventdata); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’, 41)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’,41,0)">第 41 行</a>) this.PeerEventListener = addlistener(this.Peer, ‘peerEvent’, @(event, data) PeerEventCallback(this, event, data)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))’, ‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’, 76)" style="font-weight:bold">viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’,76,0)">第 76 行</a>) proxyCallback = @(src, event)callback(src, … ^^^^^^^^^^^^^^^^^ 原因: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlnetwork/predict’, ‘F:Matlab2024btoolboxnnetcnndlnetwork.m’, 700)" style="font-weight:bold">dlnetwork/predict</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetcnndlnetwork.m’,700,0)">第 700 行</a>) 在层 "fc_1" 期间执行失败。 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlarray/fullyconnect>iReshapeMtimesAdd’, ‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’, 272)" style="font-weight:bold">dlarray/fullyconnect>iReshapeMtimesAdd</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’,272,0)">第 272 行</a>) 不支持复数。 There was an error executing the ProcessExperienceFcn. Caused by: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IFunction/evaluate’, ‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’, 84)" style="font-weight:bold">rl.internal.function.IFunction/evaluate</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’,84,0)">第 84 行</a>) Unable to evaluate function model. 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.function.rlContinuousDeterministicActor/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’, 131)" style="font-weight:bold">rl.function.rlContinuousDeterministicActor/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’,131,0)">第 131 行</a>) [action,state] = evaluate(this,observation,varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IGetAction/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’, 43)" style="font-weight:bold">rl.internal.function.IGetAction/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’,43,0)">第 43 行</a>) [action,state] = getAction_(this,observation,cargs{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/parenReferencePacked’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 326)" style="font-weight:bold">deep.AcceleratedFunction/parenReferencePacked</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,326,0)">第 326 行</a>) [varargout{1:nargout}] = obj.Function(struct(‘v’,matlab.lang.internal.move(inputs)).v); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/feval’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 388)" style="font-weight:bold">deep.AcceleratedFunction/feval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,388,0)">第 388 行</a>) [varargout{1:nargout}] = parenReferencePacked(obj, matlab.lang.internal.move(varargin)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.numericEval’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’, 24)" style="font-weight:bold">rl.internal.function.numericEval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’,24,0)">第 24 行</a>) [varargout{1:nargout}] = feval(accelfcn,fcnobjs{:},varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.rlAdditiveNoisePolicy/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’, 162)" style="font-weight:bold">rl.policy.rlAdditiveNoisePolicy/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’,162,0)">第 162 行</a>) [action,state] = rl.internal.function.numericEval(f,… ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.PolicyInterface/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’, 38)" style="font-weight:bold">rl.policy.PolicyInterface/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’,38,0)">第 38 行</a>) [action,this] = getAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’, 32)" style="font-weight:bold">rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’,32,0)">第 32 行</a>) [action,this.Policy_] = getAction(this.Policy_,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.ExperienceProcessorInterface/evaluateAction’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’, 70)" style="font-weight:bold">rl.env.internal.ExperienceProcessorInterface/evaluateAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’,70,0)">第 70 行</a>) action = evaluateAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/simInternal_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 109)" style="font-weight:bold">rl.env.internal.MATLABSimulator/simInternal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,109,0)">第 109 行</a>) act = evaluateAction(expProcessor,obs); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/sim_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 67)" style="font-weight:bold">rl.env.internal.MATLABSimulator/sim_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,67,0)">第 67 行</a>) out = simInternal_(this,simPkg); ^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.AbstractSimulator/sim’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’, 30)" style="font-weight:bold">rl.env.internal.AbstractSimulator/sim</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’,30,0)">第 30 行</a>) out = sim_(this,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.AbstractEnv/runEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’, 144)" style="font-weight:bold">rl.env.AbstractEnv/runEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’,144,0)">第 144 行</a>) out = sim(simulator,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 284)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,284,0)">第 284 行</a>) out_or_F = runEpisode(env,p,… ^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 351)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,351,0)">第 351 行</a>) out = nestedRunEpisode(policy); ^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 39)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,39,0)">第 39 行</a>) result = run_internal_(this); ^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.Trainer/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’, 8)" style="font-weight:bold">rl.internal.train.Trainer/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’,8,0)">第 8 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.OnlineTrainingManager/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’, 123)" style="font-weight:bold">rl.internal.trainmgr.OnlineTrainingManager/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’,123,0)">第 123 行</a>) trainResult = run(trainer); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.TrainingManager/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’, 4)" style="font-weight:bold">rl.internal.trainmgr.TrainingManager/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’,4,0)">第 4 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.agent.AbstractAgent/train’, ‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’, 86)" style="font-weight:bold">rl.agent.AbstractAgent/train</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’,86,0)">第 86 行</a>) trainingResult = run(tm); ^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/runTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 169)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/runTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,169,0)">第 169 行</a>) obj.TrainingResult = train(obj.TrainedAgent,obj.Environment,obj.Options,Evaluator=obj.Evaluator); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/startTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 106)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/startTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,106,0)">第 106 行</a>) runTraining(obj); ^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.ReinforcementLearningApp/openTrainingSession’, ‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’, 369)" style="font-weight:bold">rl.internal.app.ReinforcementLearningApp/openTrainingSession</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’,369,0)">第 369 行</a>) startTraining(obj.TrainingSession,Data,IsResume) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab/trainCB’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 315)" style="font-weight:bold">rl.internal.app.tab.TrainTab/trainCB</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,315,0)">第 315 行</a>) openTrainingSession(obj.App,obj.Data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 210)" style="font-weight:bold">rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,210,0)">第 210 行</a>) obj.Widgets.TrainButton.ButtonPushedFcn = @(~, ~) trainCB(obj); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘internal.Callback.execute’, ‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’, 128)" style="font-weight:bold">internal.Callback.execute</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’,128,0)">第 128 行</a>) feval(callback, src, event); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.Action/PeerEventCallback’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’, 852)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.Action/PeerEventCallback</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’,852,0)">第 852 行</a>) internal.Callback.execute(this.PushPerformedFcn, this, eventdata); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’, 41)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’,41,0)">第 41 行</a>) this.PeerEventListener = addlistener(this.Peer, ‘peerEvent’, @(event, data) PeerEventCallback(this, event, data)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))’, ‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’, 76)" style="font-weight:bold">viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’,76,0)">第 76 行</a>) proxyCallback = @(src, event)callback(src, … ^^^^^^^^^^^^^^^^^ 原因: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlnetwork/predict’, ‘F:Matlab2024btoolboxnnetcnndlnetwork.m’, 700)" style="font-weight:bold">dlnetwork/predict</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetcnndlnetwork.m’,700,0)">第 700 行</a>) 在层 "fc_1" 期间执行失败。 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlarray/fullyconnect>iReshapeMtimesAdd’, ‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’, 272)" style="font-weight:bold">dlarray/fullyconnect>iReshapeMtimesAdd</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’,272,0)">第 272 行</a>) 不支持复数。 rl MATLAB Answers — New Questions