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
|
|
|
|
*/
|
2017-11-22 21:16:10 +00:00
|
|
|
public function setInput($input): self;
|
2016-08-05 14:12:39 +00:00
|
|
|
|
2017-11-22 21:16:10 +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[]
|
|
|
|
*/
|
2017-11-22 21:16:10 +00:00
|
|
|
public function getLayers(): array;
|
2016-08-05 14:12:39 +00:00
|
|
|
}
|