> */ protected $aSamples; /** * @var list> */ protected $bSamples; public function setUp() : void { $samples = []; for ($i = 0; $i < self::DATASET_SIZE; ++$i) { $text = self::SAMPLE_TEXT; $samples[] = [str_shuffle($text)]; } $this->dataset = Unlabeled::quick($samples); $this->transformer = new WordCountVectorizer(1000); } /** * @Subject * @Iterations(5) * @OutputTimeUnit("milliseconds", precision=3) */ public function apply() : void { $this->dataset->apply($this->transformer); } }