Skip to content

Commit 40aaa91

Browse files
committed
Fix incorrect method name referenced in exception message
1 parent d840da3 commit 40aaa91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers/DatasetHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static function buildUnlabeledDataset($model, string $attributeToPredict)
1212
$predictableAttributes = $model->registerPredictableAttributes();
1313

1414
if (!array_key_exists($attributeToPredict, $predictableAttributes)) {
15-
throw new InvalidArgumentException('Attempted to predict an attribute that is not returned from the model\'s `getPredictionAttributes` method.');
15+
throw new InvalidArgumentException('Attempted to predict an attribute that is not returned from the model\'s `registerPredictableAttributes` method.');
1616
}
1717

1818
$otherAttributes = $predictableAttributes[$attributeToPredict];

0 commit comments

Comments
 (0)