Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Iris=read.csv("Desktop/iris.csv")
- Iris$class <- NULL
- fitness <- function(x) daisy(Iris, metric = "euclidean", stand = FALSE)
- GA <- ga(type = "real-valued", fitness = fitness, min = -30, max =30,popSize=100,pcrossover = 0.8,pmutation = 0.1)
- summary(GA)
- plot(GA)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement