| | using UnityEngine; |
| |
|
| | namespace Unity.MLAgents |
| | { |
| | public class UnityRLCapabilities |
| | { |
| | public bool BaseRLCapabilities; |
| | public bool ConcatenatedPngObservations; |
| | public bool CompressedChannelMapping; |
| | public bool HybridActions; |
| | public bool TrainingAnalytics; |
| | public bool VariableLengthObservation; |
| | public bool MultiAgentGroups; |
| |
|
| | |
| | |
| | |
| | |
| | public UnityRLCapabilities( |
| | bool baseRlCapabilities = true, |
| | bool concatenatedPngObservations = true, |
| | bool compressedChannelMapping = true, |
| | bool hybridActions = true, |
| | bool trainingAnalytics = true, |
| | bool variableLengthObservation = true, |
| | bool multiAgentGroups = true) |
| | { |
| | BaseRLCapabilities = baseRlCapabilities; |
| | ConcatenatedPngObservations = concatenatedPngObservations; |
| | CompressedChannelMapping = compressedChannelMapping; |
| | HybridActions = hybridActions; |
| | TrainingAnalytics = trainingAnalytics; |
| | VariableLengthObservation = variableLengthObservation; |
| | MultiAgentGroups = multiAgentGroups; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | public bool WarnOnPythonMissingBaseRLCapabilities() |
| | { |
| | if (BaseRLCapabilities) |
| | { |
| | return false; |
| | } |
| | Debug.LogWarning("Unity has connected to a Training process that does not support" + |
| | "Base Reinforcement Learning Capabilities. Please make sure you have the" + |
| | " latest training codebase installed for this version of the ML-Agents package."); |
| | return true; |
| | } |
| | } |
| | } |
| |
|