Switching between Inference and Heuristic Automatically

Basically what I am trying to do is to train an agent with both inference and heuristic functions. If manual input is given, then take that action. If no manual input is given, use the inference functionality get actions.

I am using ML-Agents for the training of the model.

I have tried putting the option of a RequestDecision call in the Heuristic method. That did not work. It seems that if you have the Behavior Type set to Heuristic Only, it will not do anything with the RequestDecision call.

It seems there should be a way to do this.

Thanks in advance for your input.

not sure i understand the question fully but if you use manual decision requesting it should be possible (i.e. use a control script that manually calls RequestDecision if no input was received from the user.

note that if this is for training you’ll want to have the input automated as training in real time is gonna take forever

I tried calling the RequestDecision function from the Heuristic function, which is what has the manual control. It did not work. Is the inference functionality not available unless you have the Behavior Type set to Inference or Default?

As to the matter of the time it takes to train, this is what I am trying to show. In general, neural nets take a while to train. I am wanting to compare the training performance of various training methods, including the mixed automated manual method.

yes you will need to keep it in inference mode to let the AI act