Logistic regression to determine cloudiness