docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class BrainParameters

    Holds information about the brain. It defines what are the inputs and outputs of the decision process.

    Inheritance
    object
    BrainParameters
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.MLAgents.Policies
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class BrainParameters : ISerializationCallbackReceiver
    Remarks

    Set brain parameters for an Agent instance using the BehaviorParameters component attached to the agent's GameObject.

    Fields

    Name Description
    NumStackedVectorObservations

    Stacking refers to concatenating the observations across multiple frames. This field indicates the number of frames to concatenate across.

    VectorActionDescriptions

    The list of strings describing what the actions correspond to.

    VectorObservationSize

    The number of the observations that are added in CollectObservations(VectorSensor)

    Properties

    Name Description
    ActionSpec

    The specification of the Actions for the BrainParameters.

    Methods

    Name Description
    Clone()

    Deep clones the BrainParameter object.

    OnAfterDeserialize()

    Called by Unity immediately after deserializing this object.

    OnBeforeSerialize()

    Called by Unity immediately before serializing this object.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023