|
NoJobEngine 2.0.7
|
Classes | |
| struct | Snapshot |
| A copy of neural agent inference state for editor diagnostics. More... | |
Enumerations | |
| enum class | TrainingPreset { FollowXZ = 0 , TrackY = 1 , Pong = 2 } |
| Supported supervised training datasets and target mappings. More... | |
Functions | |
| std::mutex & | Mutex () |
| std::unordered_map< unsigned int, Snapshot > & | Snapshots () |
| void | Publish (unsigned int entity, Snapshot snapshot) |
| Publishes an entity snapshot for live AI debugging. | |
| bool | Read (unsigned int entity, Snapshot &out) |
| Copies the latest snapshot, if one exists for the entity. | |
| void | Clear (unsigned int entity) |
| Removes diagnostics when an agent is destroyed or reset. | |
| std::vector< std::vector< float > > | Activations (const Neural::NeuralNetwork &net, const std::vector< float > &input) |
| const char * | PresetLabel (TrainingPreset p) |
| Neural::TrainingHistory | TrainPreset (const std::string &outputName, const std::string &sourceName, TrainingPreset preset, int epochs, float learningRate, bool resume, bool overwrite) |
| Trains a preset model and saves it independently of the active model. | |
| Neural::TrainingHistory | TrainDirectionModel (const std::string &name, int epochs, float learningRate, bool resume=false, bool overwrite=false) |
|
strong |
Supported supervised training datasets and target mappings.
| Enumerator | |
|---|---|
| FollowXZ | |
| TrackY | |
| Pong | |
Definition at line 51 of file NeuralAgentTraining.h.
|
inline |
Definition at line 34 of file NeuralAgentTraining.h.
References NoJob::Neural::Activate(), Activations(), and NoJob::Neural::NeuralNetwork::Layers().
Referenced by Activations(), NoJob::BTAssetAgent::CreateTree(), NoJob::GenericNeuralAgent::OnUpdate(), and NoJob::NeuralTrainingAgent::OnUpdate().
|
inline |
Removes diagnostics when an agent is destroyed or reset.
Definition at line 33 of file NeuralAgentTraining.h.
References Clear(), Mutex(), and Snapshots().
Referenced by Clear(), NoJob::BTAssetAgent::CreateTree(), NoJob::GenericNeuralAgent::OnDestroy(), NoJob::NeuralTrainingAgent::OnDestroy(), NoJob::BTAssetAgent::OnTreeStarted(), NoJob::BTAssetAgent::OnTreeStopped(), and NoJob::GenericNeuralAgent::OnUpdate().
|
inline |
|
inline |
Definition at line 52 of file NeuralAgentTraining.h.
References FollowXZ, PresetLabel(), and TrackY.
Referenced by PresetLabel().
|
inline |
Publishes an entity snapshot for live AI debugging.
Definition at line 29 of file NeuralAgentTraining.h.
References Mutex(), Publish(), and Snapshots().
Referenced by NoJob::BTAssetAgent::CreateTree(), NoJob::GenericNeuralAgent::OnUpdate(), NoJob::NeuralTrainingAgent::OnUpdate(), and Publish().
|
inline |
Copies the latest snapshot, if one exists for the entity.
Definition at line 31 of file NeuralAgentTraining.h.
References Mutex(), Read(), and Snapshots().
Referenced by Read().
|
inline |
Definition at line 27 of file NeuralAgentTraining.h.
References Snapshots().
Referenced by Clear(), Publish(), Read(), and Snapshots().
|
inline |
Definition at line 136 of file NeuralAgentTraining.h.
References FollowXZ, TrainDirectionModel(), and TrainPreset().
Referenced by TrainDirectionModel().
|
inline |
Trains a preset model and saves it independently of the active model.
| outputName | Destination asset name. |
| sourceName | Source model name when resuming. |
| preset | Supervised training task. |
| epochs | Requested epoch count (clamped internally). |
| learningRate | Optimizer step size (clamped internally). |
| resume | Whether to load weights from sourceName. |
| overwrite | Whether an existing output may be replaced. |
Definition at line 66 of file NeuralAgentTraining.h.
References NoJob::Neural::TrainingOptions::adam, NoJob::Neural::NeuralNetwork::AddDense(), NoJob::Neural::TrainingOptions::batchSize, NoJob::Neural::TrainingOptions::epochs, FollowXZ, NoJob::Neural::NeuralNetwork::Layers(), NoJob::Neural::TrainingOptions::learningRate, NoJob::Neural::NeuralNetwork::Load(), NoJob::NeuralAssetPath(), NoJob::Neural::NeuralNetwork::Save(), NoJob::Neural::TrainingOptions::seed, NoJob::Neural::Tanh, TrackY, NoJob::Neural::NeuralNetwork::Train(), and TrainPreset().
Referenced by NoJob::NeuralTrainingAgent::OnCreate(), TrainDirectionModel(), and TrainPreset().