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
|
2016-08-10 20:43:47 +00:00
|
|
|
*
|
|
|
|
* @return self
|
2016-08-05 14:12:39 +00:00
|
|
|
*/
|
|
|
|
public function setInput($input);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
2017-11-06 07:56:37 +00:00
|
|
|
public function getOutput() : array;
|
2016-08-07 21:41:02 +00:00
|
|
|
|
|
|
|
public function addLayer(Layer $layer);
|
2016-08-05 14:12:39 +00:00
|
|
|
|
2016-08-07 21:41:02 +00:00
|
|
|
/**
|
|
|
|
* @return Layer[]
|
|
|
|
*/
|
2017-11-06 07:56:37 +00:00
|
|
|
public function getLayers() : array;
|
2016-08-05 14:12:39 +00:00
|
|
|
}
|