Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- regression = new LogisticRegressionAnalysis(allInput, allOutput);
- isConverged = regression.Compute(1e-005, 50);
- if (isConverged)
- {
- //Save the fake data to the db when it converges.
- UserTimeServices uts = new UserTimeServices();
- uts.populateTimeProfile(trueFakeInput, true, user.UserGuid);
- uts.populateTimeProfile(falseFakeInput, false, user.UserGuid);
- return Math.Round(regression.Regression.Compute(loginTimes.ToArray()), 5);
- }
- }
- }// the part above is in a while loop.
- var regressionAnalysis = new LogisticRegressionAnalysis(input, output);
- bool converging = regressionAnalysis.Compute(1e-005, 50);// it always doesnt converge even with the same set of data.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement