Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MLA-850] rename namespaces to Unity.MLAgents #3843

Merged
merged 5 commits into from
Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using UnityEngine;
using UnityEditor.Build.Reporting;

namespace MLAgents
namespace Unity.MLAgents
{
public class StandaloneBuildTest
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;
using Unity.MLAgents.SideChannels;

public class Ball3DAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;
using Unity.MLAgents.SideChannels;

public class Ball3DHardAgent : Agent
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;
using UnityEngine.SceneManagement;
using MLAgents;
using Unity.MLAgents;

/// <summary>
/// An example of how to use ML-Agents without inheriting from the Agent class.
Expand Down Expand Up @@ -77,7 +77,7 @@ public void ApplyAction(float[] vectorAction)
}

public void ResetAgent()
{
{
// This is a very inefficient way to reset the scene. Used here for testing.
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
m_Agent = null; // LoadScene only takes effect at the next Update.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using MLAgents.Sensors;
using Unity.MLAgents.Sensors;
using UnityEngine.Serialization;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
/// <summary>
/// A simple example of a SensorComponent.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;
using Unity.MLAgents.SideChannels;

public class BouncerAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using UnityEngine;
using MLAgents;
using Unity.MLAgents;

public class BouncerTarget : MonoBehaviour
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgentsExamples;
using MLAgents.Sensors;
using Unity.MLAgents;
using Unity.MLAgentsExamples;
using Unity.MLAgents.Sensors;

[RequireComponent(typeof(JointDriveController))] // Required to set joint forces
public class CrawlerAgent : Agent
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;
using Unity.MLAgents.SideChannels;

public class FoodCollectorAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using UnityEngine;
using MLAgentsExamples;
using Unity.MLAgentsExamples;

public class FoodCollectorArea : Area
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;
using UnityEngine.UI;
using MLAgents;
using Unity.MLAgents;

public class FoodCollectorSettings : MonoBehaviour
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using UnityEngine;
using System.Linq;
using MLAgents;
using MLAgents.Sensors;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;
using UnityEngine.Serialization;
using MLAgents.SideChannels;
using Unity.MLAgents.SideChannels;

public class GridAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
using MLAgents;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.SideChannels;


public class GridArea : MonoBehaviour
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;
using MLAgents;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.SideChannels;

public class GridSettings : MonoBehaviour
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections;
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;

public class HallwayAgent : Agent
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

using System.Collections;
using UnityEngine;
using MLAgents;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.SideChannels;

public class PushAgentBasic : Agent
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Linq;
using UnityEngine;
using Random = UnityEngine.Random;
using MLAgents;
using MLAgents.Sensors;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;

public class PyramidAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using UnityEngine;
using MLAgentsExamples;
using Unity.MLAgentsExamples;

public class PyramidArea : Area
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using MLAgents;
using MLAgents.Sensors;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.Sensors;
using Unity.MLAgents.SideChannels;

public class ReacherAgent : Agent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
public class Area : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
public class CameraFollow : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
public class FlyCamera : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using MLAgents;
using Unity.MLAgents;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
/// <summary>
/// This class contains logic for locomotion agents with joints which might make contact with the ground.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Serialization;
using MLAgents;
using Unity.MLAgents;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
/// <summary>
/// Used to store relevant information for acting and learning for each body part in agent.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
using UnityEngine;
using Barracuda;
using System.IO;
using MLAgents;
using MLAgents.Policies;
using Unity.MLAgents;
using Unity.MLAgents.Policies;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
/// <summary>
/// Utility class to allow the NNModel file for an agent to be overriden during inference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using UnityEngine;

namespace MLAgents
namespace Unity.MLAgents
{
/// <summary>
/// Monitor is used to display information about the Agent within the Unity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using UnityEngine;
using MLAgents;
using MLAgents.SideChannels;
using Unity.MLAgents;
using Unity.MLAgents.SideChannels;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
/// <summary>
/// A helper class for the ML-Agents example scenes to override various
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using MLAgents.Sensors;
using Unity.MLAgents.Sensors;

namespace MLAgentsExamples
namespace Unity.MLAgentsExamples
{
/// <summary>
/// A simple sensor that provides a number default implementations.
Expand Down
Loading