// Math looks good, but haven't rigorously tested it func LogisticRegression(s *session.Session) { // Grab all people because of many iterations people := s.GetPeople() objective := Objective{ People: people, Lambda: s.GetLambda(), Alpha: s.GetAlpha(), Size: float64(len(people)), } start := []float64{1, 1, 1, 0} // Bias, Following, Followers, Posts minimum := Minimize(objective, start) log.Println(minimum) s.SetTheta(minimum) s.StopProcessing() }