Skip to content

Add test_inputs #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Add test_inputs #49

merged 1 commit into from
Mar 4, 2025

Conversation

nevillelyh
Copy link
Contributor

@nevillelyh nevillelyh commented Mar 4, 2025

  • Check for predictor.test_inputs in coglet.schema command.
    • If test_inputs is missing, each Input must have a default value and they'll be used for testing
    • test_inputs will be type checked with the same logic when running normal prediction loop
  • Run predictor.predict() with test_inputs in coglet.test
  • Add python3 -m cog.command.test entrypoint for consistency

@nevillelyh nevillelyh requested a review from a team as a code owner March 4, 2025 02:08
@nevillelyh nevillelyh requested review from 8W9aG and NikhilSinha1 March 4, 2025 02:08
@nevillelyh nevillelyh force-pushed the neville/tests branch 2 times, most recently from c7059ba to 7a66786 Compare March 4, 2025 16:01
* Check for predictor.test_inputs in coglet.schema
* Test predictor.predict(test_inputs) in coglet.test
@nevillelyh nevillelyh merged commit 2092311 into main Mar 4, 2025
15 checks passed
@nevillelyh nevillelyh deleted the neville/tests branch March 4, 2025 17:23
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.

3 participants