PHP Classes

File: examples/case-studies/ai/neural/neural_workflow_composer/neural_workflow_composer-GR.md

Recommend this page to a friend!
  Packages of Christos Drogidis   Ascoos OS   examples/case-studies/ai/neural/neural_workflow_composer/neural_workflow_composer-GR.md   Download  
File: examples/case-studies/ai/neural/neural_workflow_composer/neural_workflow_composer-GR.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Ascoos OS
A PHP Web 5.0 Kernel for decentralized web and IoT
Author: By
Last change: Neural Workflow Composer
Neural Workflow Composer
Date: 6 months ago
Size: 4,144 bytes
 

Contents

Class file image Download

???????? ???? ???????????? ?? ????????? ??????

???? ? ?????? ?????????? ??????? ??? ?? Ascoos OS ?????? ?? ????????? ???????????? ?? ???? ?? ???????? ??? ??????????, ??????????????? ????????? ??????. ?? ??????? ???????? ??? ??????????? ???????? ??? ????????? ?? ???????? ????????.

??????

  • ?????????? ?????????? ??????? ?? ???????? ????????
  • ???????? ????????? ????????????
  • ???????? ???????????? ????? ?????????

?????? ??????? ??? Ascoos OS

  • TNeuralNetworkHandler ???????, ?????????? ??? ???????? ?????????? ???????
  • TMacroHandler ??????? ??? ???????? ????????????

???? ???????

? ????????? ????????? ?? ??? ?????? PHP: - neural_workflow_composer.php

???????????? ??? ?? ??????: ???????????? ?????????, ?????????? ????????, ???????? ??? ???????? ????????????.

??????????????

  1. PHP ? 8.2
  2. ????????????? ?? Ascoos OS ? ?? AWES 26

??? ?????????

  1. ????????? ???????? ???????? ?????????? (CPU, RAM, ??????).
  2. ?????????? ????????? ?????? ?? ??? ???????: - ???????: 3 ? ?????: 4 (ReLU) - ?????: 4 ? ??????: 1 (Sigmoid)
  3. ?? ??????? ???????????? ?? `fit()` ??? 1000 ?????? ??? learning rate 0.01.
  4. ???????????? ? ???????? ????????? ??????????.
  5. ?? ? ???????? ????? > 0.5, ?????????? macro.
  6. ??????, ? ??????????? ????????????.

?????????? ??????

$composer = new TNeuralNetworkHandler();
$composer->compile([
    ['input' => 3, 'output' => 4, 'activation' => 'relu'],
    ['input' => 4, 'output' => 1, 'activation' => 'sigmoid']
]);
$composer->fit($systemData, $actions, epochs: 1000, lr: 0.01);

$score = $composer->predictNetwork([$currentState])[0];

if ($score > 0.5) {
    $macroHandler = new TMacroHandler();
    $macroHandler->addMacro(fn() => print("???????? ????????????????? ????????????"), [], delay: 0, priority: 1);
    $macroHandler->runNext();
} else {
    print("? ??????????? ???????????? ????? ?????????\n");
}

??????????? ??????????

?? ? ???????? ????? ?????:

???????? ????????????????? ????????????

??????:

? ??????????? ???????????? ????? ?????????

?????

??????????

???????? ?? ?????????? ?? ???????, ?? ???????????? ???????? ???????? ?????????? ? ?? ??????????? ?? ?????? ??? ????????????. ????? ?? CONTRIBUTING.md ??? ???????.

????? ??????

???? ? ?????? ?????????? ??? ??? Ascoos General License (AGL). ????? ?? LICENSE.md.