Skip to content

Is there a way to create a custom early stopping criterion? #44

Closed Answered by SimonBlanke
erussell92 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for this detailed explanation! It is nice to see such an interesting use-case.

So this problem is interesting, because you want to enable early-stopping by the condition of the parameters (but normally the condition is the score). And if I understood this correctly you could already solve this with some conditions in the objective-function:

import numpy as np
...
def objective_function(image, x , y , h , w):
    ...
    #computes score for the box defined by vector [x,y,h,w]

  if h == 0 or w == 0:
    return np.inf
return score
...

With this 'hack' that score gets automatically set to the worst possible value (GFO can handle inf/nan) if 'h' or 'w' are 0. So if we have the negat…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@erussell92
Comment options

@SimonBlanke
Comment options

Answer selected by erussell92
@erussell92
Comment options

@SimonBlanke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants