Skip to content
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

Integrate calculate_acceptance_threshold into spec #51

Open
SeanMcOwen opened this issue Jul 4, 2024 · 0 comments
Open

Integrate calculate_acceptance_threshold into spec #51

SeanMcOwen opened this issue Jul 4, 2024 · 0 comments

Comments

@SeanMcOwen
Copy link
Collaborator

Probably just as a policy option within ride pricing

def calculate_acceptance_threshold(self, ride_metadata):
    threshold = (
        ride_metadata['cost_usd'] * self.preferences['cost_weight'] +
        ride_metadata['distance_km'] * self.preferences['distance_weight'] +
        ride_metadata['duration_min'] * self.preferences['duration_weight'] +
        ride_metadata['driver_rating'] * self.preferences['driver_rating_weight'] +
        ride_metadata['rider_rating'] * self.preferences['rider_rating_weight']
    )
    return threshold
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

No branches or pull requests

1 participant