MLTraining
in package
FinalYes
Coordinates legacy ML-Agents training runs for Unity projects.
Legacy ML-Agents automation should not be used for new code.
Tags
Table of Contents
Constants
- HYPERPARAMETER_EXTENSION : mixed = 'yaml'
Properties
- $runId : string
Methods
- __construct() : mixed
- determineTrainings() : iterable<string|int, mixed>
- init() : void
- needsTraining() : bool
- train() : int
Constants
HYPERPARAMETER_EXTENSION
public
mixed
HYPERPARAMETER_EXTENSION
= 'yaml'
Properties
$runId
public
string
$runId
Methods
__construct()
public
__construct(MLContext $ml, string $runId, string $hyperFile, string $modelDirectory) : mixed
Parameters
- $ml : MLContext
- $runId : string
- $hyperFile : string
- $modelDirectory : string
determineTrainings()
public
static determineTrainings(UnityProject $project, string $serverPath, string $todoPath, string $modelPath) : iterable<string|int, mixed>
Parameters
- $project : UnityProject
- $serverPath : string
- $todoPath : string
- $modelPath : string
Return values
iterable<string|int, mixed>init()
public
init() : void
needsTraining()
public
needsTraining() : bool
Return values
booltrain()
public
train(string $workDirectory, string $executableFile) : int
Parameters
- $workDirectory : string
- $executableFile : string