Skip to content

Add error message for predicting with untrained PipeOp or Graph#897

Merged
advieser merged 5 commits intomasterfrom
error_untrained_predict
Apr 9, 2025
Merged

Add error message for predicting with untrained PipeOp or Graph#897
advieser merged 5 commits intomasterfrom
error_untrained_predict

Conversation

@advieser
Copy link
Copy Markdown
Collaborator

closes #893

@advieser
Copy link
Copy Markdown
Collaborator Author

Added error message for Graph would not be strictly necessary, I think, because PipeOps and Learners would throw error. However, error message makes more sense this way.

I have not added something similar to GraphLearner, as it inherits from Learner which already has an appropriate error message. Only slight discrepancy is that the error message says Learner, and not GraphLearner, in that case.

@advieser advieser marked this pull request as ready for review March 28, 2025 10:57
@advieser advieser merged commit be39a01 into master Apr 9, 2025
@advieser advieser deleted the error_untrained_predict branch April 9, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

$predict should throw an error if PO is not trained

1 participant