According to the example given here:
https://php-ml.readthedocs.io/en/latest/machine-learning/datasets/array-dataset/
One dataset can have one label. I am brand new to ML and am trying to classify articles that have multiple categories per article so is it possible to do something like the following? In effect teach the model that articles can have multiple labels or does this defeat the object.
use Phpml\Dataset\ArrayDataset;
$dataset = new ArrayDataset([[1, 1], [2, 1], [3, 2], [4, 1]], [['a','b'],['a','c'],['b','d'],['b','e']]);
It would appear I'm not the only one who is experiencing this - https://github.com/php-ai/php-ml/issues/423