assertSame($expected, $specification->passes()); } /** * @return \Generator */ public function passesProvider() : Generator { yield [ EstimatorIsCompatibleWithMetric::with( new SoftmaxClassifier(), new MeanSquaredError() ), false, ]; yield [ EstimatorIsCompatibleWithMetric::with( new SoftmaxClassifier(), new Accuracy() ), true, ]; yield [ EstimatorIsCompatibleWithMetric::with( new RobustZScore(), new Accuracy() ), true, ]; yield [ EstimatorIsCompatibleWithMetric::with( new Ridge(), new VMeasure() ), false, ]; yield [ EstimatorIsCompatibleWithMetric::with( new Ridge(), new MeanSquaredError() ), true, ]; } }