using System;
using System.Collections.Generic;
using UnityEngine;
using Unity.MLAgents.Policies;
namespace Unity.MLAgents.Demonstrations
{
///
/// Summary of a loaded Demonstration file. Only used for display in the Inspector.
///
[Serializable]
internal class DemonstrationSummary : ScriptableObject
{
public DemonstrationMetaData metaData;
public BrainParameters brainParameters;
public List observationSummaries;
public void Initialize(BrainParameters brainParams,
DemonstrationMetaData demonstrationMetaData, List obsSummaries)
{
brainParameters = brainParams;
metaData = demonstrationMetaData;
observationSummaries = obsSummaries;
}
}
///
/// Summary of a loaded Observation. Currently only contains the shape of the Observation.
///
/// This is necessary because serialization doesn't support nested containers or arrays.
[Serializable]
internal struct ObservationSummary
{
public int[] shape;
}
}