assertSame($expected, $specification->passes()); } /** * @return \Generator */ public function passesProvider() : Generator { yield [ SamplesAreCompatibleWithEstimator::with( Unlabeled::quick([ ['swamp', 'island', 'black knight', 'counter spell'], ]), new NaiveBayes() ), true, ]; yield [ SamplesAreCompatibleWithEstimator::with( Unlabeled::quick([ [6.0, -1.1, 5, 'college'], ]), new RegressionTree() ), true, ]; yield [ SamplesAreCompatibleWithEstimator::with( Unlabeled::quick([ [6.0, -1.1, 5, 'college'], ]), new NaiveBayes() ), false, ]; yield [ SamplesAreCompatibleWithEstimator::with( Unlabeled::quick([ [6.0, -1.1, 5, 'college'], ]), new GaussianMixture(3) ), false, ]; } }