php-ml/src/NeuralNetwork/Network.php

23 lines
346 B
PHP
Raw Normal View History

2016-08-05 14:12:39 +00:00
<?php
2016-11-20 21:53:17 +00:00
declare(strict_types=1);
2016-08-05 14:12:39 +00:00
namespace Phpml\NeuralNetwork;
2016-08-07 21:41:02 +00:00
interface Network
2016-08-05 14:12:39 +00:00
{
/**
* @param mixed $input
*/
public function setInput($input): self;
2016-08-05 14:12:39 +00:00
public function getOutput(): array;
2016-08-07 21:41:02 +00:00
2018-10-28 06:44:52 +00:00
public function addLayer(Layer $layer): void;
2016-08-05 14:12:39 +00:00
2016-08-07 21:41:02 +00:00
/**
* @return Layer[]
*/
public function getLayers(): array;
2016-08-05 14:12:39 +00:00
}