Documentation

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
author

Daniel Schulz

since
2020-12-25

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

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>

needsTraining()

public needsTraining() : bool
Return values
bool

train()

public train(string $workDirectory, string $executableFile) : int
Parameters
$workDirectory : string
$executableFile : string
Return values
int
On this page

Search results