php-ml/src/Phpml/NeuralNetwork/Network.php

28 lines
400 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
*
* @return self
2016-08-05 14:12:39 +00:00
*/
public function setInput($input);
/**
* @return array
*/
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[]
*/
public function getLayers() : array;
2016-08-05 14:12:39 +00:00
}