class TrainingSet implements Iterator, ArrayAccess, Countable
A collection of TrainingDocument objects.
It implements many built
in php interfaces for ease of use.
Constants
| CLASS_AS_KEY |
|
| OFFSET_AS_KEY |
|
Methods
| __construct() | ||
| void |
addDocument($class $class, DocumentInterface $d)
Add a document to the set. |
|
| getClassSet() | ||
|
setAsKey($what)
Decide what should be returned as key when iterated upon |
||
|
applyTransformations(array $transforms)
Apply an array of transformations to all documents in this container. |
||
| rewind() | ||
| next() | ||
| valid() | ||
| current() | ||
| key() | ||
| offsetSet($key, $value) | ||
| offsetUnset($key) | ||
| offsetGet($key) | ||
| offsetExists($key) | ||
| count() |
Details
at line 23
public
__construct()
at line 37
public void
addDocument($class $class, DocumentInterface $d)
Add a document to the set.
at line 43
public
getClassSet()
at line 51
public
setAsKey($what)
Decide what should be returned as key when iterated upon
at line 69
public
applyTransformations(array $transforms)
Apply an array of transformations to all documents in this container.