Initial commit
This commit is contained in:
1 parent
1d9daab565
commit
c5e7774637
7 files changed
+359
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/bootstrap.php';
|
||||
function getStoragePath(int $id): string
|
||||
{
|
||||
return __DIR__ . '/storage/synapseWeightStorage_' . $id . '.json';
|
||||
}
|
||||
|
||||
$ob = new NeuroNetwork(getStoragePath(1));
|
||||
$res = $ob->run([1, 1]);
|
||||
print_r($res);
|
||||
|
||||
$ob->mutate();
|
||||
$res = $ob->run([1, 1]);
|
||||
print_r($res);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user