I don't understand the problem

thank you.
Moderator: Board moderators
The result is undefined for the example you give. You need to have at least one inversion in the input for the result to be well-defined. The judge data has this property, but it was a little awkward to state the conditions in the problem statement. By an inversion, I mean thatQuantris wrote:What's the output for the case:
2
1 0
2 1
..my program runs off to -infinity for a, and i'm not sure where to stop it.
I assume you are referring to the previous example [(1,0), (2,1)]. When you apply the logistic transformation you're trying to fit [(1,log(0/1-0)), (2,log(1/(1-1))] = [(1,-inf),(2,+inf)]. The "solution" to this is a=-inf, b=+inf.backslash null wrote:isn't it more accurate if u select a=0 and b=0.25 ?