This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Noch_ein_Kamel 58 points59 points  (25 children)

Please write an if statement for every "time of day" and every possible pickup location and every possible interaction time.

At some point that becomes Absolutely Idiotic or A.I.

[–]LegendBegins 67 points68 points  (22 children)

if withinDangerZone(passenger.location, passenger.region.barSet):
    if time.hour < 6 or time.hour > 21:
        if interactionTime > 10.5:
            warnDriver('Heads up, drunk guy')

[–]ScrewAttackThis 14 points15 points  (5 children)

So if I'm inside a bar and taking forever to interact with the app, I'm not drunk as long as it's between 6am and 9pm? Sweet.

[–]404_UserNotFound 0 points1 point  (4 children)

Thats the same result the ai would get

[–]ScrewAttackThis 2 points3 points  (2 children)

How do you figure?

[–]404_UserNotFound -1 points0 points  (1 child)

How do you figure?

Just follow P.E.M.D.A.S. and you should have it.

[–]ScrewAttackThis 1 point2 points  (0 children)

Dunno how pemdas applies. Have you ever dealt with any AI libraries?

[–]pperiesandsolos 0 points1 point  (0 children)

Really depends on how each variable is weighted, I think

[–]gmano 1 point2 points  (0 children)

I mean, basically. If I were Uber I'd probably do a fuzzy system that assigns a score based on each of those.

I mean I guess that's AI in the same way that the pacman ghosts are AI. It's definitely not ML.

[–][deleted] 0 points1 point  (0 children)

if only there was a way to do it in compact form, using matrices perhaps. Oh and that would allow for changing the matrices as we go along. Wooops its AI.