Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Iris=read.csv("Desktop/iris.csv")
  2. Iris$class <- NULL
  3. fitness <- function(x) daisy(Iris, metric = "euclidean", stand = FALSE)
  4. GA <- ga(type = "real-valued", fitness = fitness, min = -30, max =30,popSize=100,pcrossover = 0.8,pmutation = 0.1)
  5. summary(GA)
  6. plot(GA)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement