Skip to content

New Examples and Classifier Changes #66

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

ColtonPayne
Copy link

@ColtonPayne ColtonPayne commented May 5, 2025

This PR Does a few things:

Adds New Example files:

  • Football project: Adds a new example which generates football players at random and simulates a draft for a few teams. Example shows how you can write custom functions to define facts dynamically and showcases some rules as to how teams may use this to decide which free agents are worth making offers to.
  • Image classifier example: Shows how we can use an out-of-the-box image classification model to make inferences on various fish and sharks. Note for Dyuman: The likes_to_eat rule is not working as intended - please take a look into the logic around nodes and edges here.

Image classifier Updates

  • adds exception handling for the AttributeError raised when trying to add the google/vit-base-patch16-224 Vision Transformer model (This should be tested with additional ML models to validate that this fix generalizes to other models)
  • Adds a new parameter limit_classification_output_classes, which will limit the range of an out-of-the-box image transformer to the classes provided in the class_names parameter.

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.

1 participant