Click here to Skip to main content
15,908,634 members
Home / Discussions / C#
   

C#

 
GeneralRe: using k means heart diseases prediction system Pin
harold aptroot7-Apr-17 11:04
harold aptroot7-Apr-17 11:04 
The basic version of the algorithm is really very simple.
  • guess k points that might be means of clusters. It matters how you do it, a simple trick is just pick some random samples.
  • classify your data using the current means
  • compute the means of the clusters thus formed, make them the new means
  • repeat until it stops changing
  • repeat all of the above with new initialization until you like the results (the update step gets caught in local minima)
These are all steps that anyone who can write code should be able to implement from scratch, there's nothing crazy in there.
QuestionTask Question Pin
Kevin Marois6-Apr-17 8:08
professionalKevin Marois6-Apr-17 8:08 
AnswerRe: Task Question Pin
Pete O'Hanlon6-Apr-17 8:59
mvePete O'Hanlon6-Apr-17 8:59 
GeneralRe: Task Question Pin
Kevin Marois6-Apr-17 9:07
professionalKevin Marois6-Apr-17 9:07 
AnswerRe: Task Question Pin
Eddy Vluggen6-Apr-17 9:02
professionalEddy Vluggen6-Apr-17 9:02 
AnswerRe: Task Question Pin
Richard Deeming7-Apr-17 0:42
mveRichard Deeming7-Apr-17 0:42 
QuestionC#: When one should go for factory method pattern instead of factory pattern Pin
Tridip Bhattacharjee5-Apr-17 4:56
professionalTridip Bhattacharjee5-Apr-17 4:56 
AnswerRe: C#: When one should go for factory method pattern instead of factory pattern Pin
Pete O'Hanlon5-Apr-17 5:08
mvePete O'Hanlon5-Apr-17 5:08 
GeneralRe: C#: When one should go for factory method pattern instead of factory pattern Pin
OriginalGriff5-Apr-17 6:00
mveOriginalGriff5-Apr-17 6:00 
GeneralRe: C#: When one should go for factory method pattern instead of factory pattern Pin
Pete O'Hanlon5-Apr-17 7:33
mvePete O'Hanlon5-Apr-17 7:33 
GeneralRe: C#: When one should go for factory method pattern instead of factory pattern Pin
Luc Pattyn5-Apr-17 8:18
sitebuilderLuc Pattyn5-Apr-17 8:18 
GeneralRe: C#: When one should go for factory method pattern instead of factory pattern Pin
Pete O'Hanlon5-Apr-17 8:33
mvePete O'Hanlon5-Apr-17 8:33 
GeneralRe: C#: When one should go for factory method pattern instead of factory pattern Pin
OriginalGriff5-Apr-17 8:37
mveOriginalGriff5-Apr-17 8:37 
GeneralRe: C#: When one should go for factory method pattern instead of factory pattern Pin
Luc Pattyn5-Apr-17 9:02
sitebuilderLuc Pattyn5-Apr-17 9:02 
AnswerRe: C#: When one should go for factory method pattern instead of factory pattern Pin
Eddy Vluggen6-Apr-17 1:48
professionalEddy Vluggen6-Apr-17 1:48 
QuestionFactory pattern: issue with this definition "let subclass decide which class to instantiate." Pin
Tridip Bhattacharjee5-Apr-17 2:09
professionalTridip Bhattacharjee5-Apr-17 2:09 
AnswerRe: Factory pattern: issue with this definition "let subclass decide which class to instantiate." Pin
Pete O'Hanlon5-Apr-17 2:34
mvePete O'Hanlon5-Apr-17 2:34 
AnswerRe: Factory pattern: issue with this definition "let subclass decide which class to instantiate." Pin
Eddy Vluggen5-Apr-17 2:54
professionalEddy Vluggen5-Apr-17 2:54 
QuestionTask.Wait() -Why?? Pin
Kevin Marois4-Apr-17 6:54
professionalKevin Marois4-Apr-17 6:54 
AnswerRe: Task.Wait() -Why?? Pin
Pete O'Hanlon4-Apr-17 7:00
mvePete O'Hanlon4-Apr-17 7:00 
GeneralRe: Task.Wait() -Why?? Pin
Kevin Marois4-Apr-17 7:19
professionalKevin Marois4-Apr-17 7:19 
GeneralRe: Task.Wait() -Why?? Pin
Pete O'Hanlon4-Apr-17 7:26
mvePete O'Hanlon4-Apr-17 7:26 
GeneralRe: Task.Wait() -Why?? Pin
Richard Deeming4-Apr-17 7:38
mveRichard Deeming4-Apr-17 7:38 
GeneralRe: Task.Wait() -Why?? Pin
Pete O'Hanlon4-Apr-17 7:40
mvePete O'Hanlon4-Apr-17 7:40 
AnswerRe: Task.Wait() -Why?? Pin
Richard Deeming4-Apr-17 7:48
mveRichard Deeming4-Apr-17 7:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.