Click here to Skip to main content
15,914,165 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
QuestionDeveloping a Genetic Algorithm Pin
Sreram K14-Sep-15 6:39
Sreram K14-Sep-15 6:39 
AnswerRe: Developing a Genetic Algorithm Pin
Marc Clifton14-Sep-15 6:53
mvaMarc Clifton14-Sep-15 6:53 
GeneralRe: Developing a Genetic Algorithm Pin
Sreram K14-Sep-15 7:25
Sreram K14-Sep-15 7:25 
GeneralRe: Developing a Genetic Algorithm Pin
CDP180214-Sep-15 22:24
CDP180214-Sep-15 22:24 
GeneralRe: Developing a Genetic Algorithm Pin
Sreram K15-Sep-15 3:34
Sreram K15-Sep-15 3:34 
GeneralRe: Developing a Genetic Algorithm Pin
harold aptroot14-Sep-15 7:13
harold aptroot14-Sep-15 7:13 
AnswerRe: Developing a Genetic Algorithm Pin
Duncan Edwards Jones14-Sep-15 7:20
professionalDuncan Edwards Jones14-Sep-15 7:20 
GeneralRe: Developing a Genetic Algorithm Pin
Sreram K15-Sep-15 3:16
Sreram K15-Sep-15 3:16 
Duncan Edwards Jones wrote:
The fitness of any "gene" should be evaluated by the environment rather than by the gene


Yes I agree to that! I haven't mentioned a lot about the fitness function. I believe that there can be two possibilities for a fitness function. If the problem is such that it is possible test the correctness of a solution to the problem in linear time, then this function can be used to compare the answers provided by each of these genes with every other gene in the population. Their performance can be evaluated and a specific weight value can be assigned to each of these genes; now these genes can be sorted based on their weight values. After mutation and crossover process, the population size would be greater than it started with. The obvious thing to do here will be to eliminate the low-ranking gene and retain the remaining genes, thereby maintaining a constant population size.

And for cases where there is no specific linear-time function to check the correctness of a given solution to a problem, we would require the user to input the correct result along with the input, to train the population. In this case, the system becomes more dependent on the user's training which is considerably slower than the former case; so it would be necessary that the learning process should require very less epochs.


Duncan Edwards Jones wrote:
also, you need to be able to tweak the mutation rate as if it is too high then your fitness gets lost in the noise.

Yes I also agree to that! Mainly because if we do so, the system would be changing on a random phase. But we require that the system provides more accurate results for each generation. So this can only be done if the newer generation is greatly dependent on the genetic code that proved to be the fittest among others rather than having its code determined by random values. If it were determined by the random values, then the change in the behavior of the population could also be such that it causes a setback to the learning process. The real necessity of the mutation process is to include functionalities that don't exist among the population and need to be introduced.
GeneralRe: Developing a Genetic Algorithm Pin
Duncan Edwards Jones15-Sep-15 4:33
professionalDuncan Edwards Jones15-Sep-15 4:33 
AnswerRe: Developing a Genetic Algorithm Pin
BillWoodruff14-Sep-15 11:07
professionalBillWoodruff14-Sep-15 11:07 
GeneralRe: Developing a Genetic Algorithm Pin
Sreram K14-Sep-15 15:41
Sreram K14-Sep-15 15:41 
QuestionRe: Developing a Genetic Algorithm Pin
Sreram K15-Sep-15 3:25
Sreram K15-Sep-15 3:25 
JokeRiddles of nature Pin
Duncan Edwards Jones14-Sep-15 5:37
professionalDuncan Edwards Jones14-Sep-15 5:37 
GeneralRe: Riddles of nature Pin
Richard Deeming14-Sep-15 6:04
mveRichard Deeming14-Sep-15 6:04 
JokeRe: Riddles of nature Pin
MacSpudster14-Sep-15 6:05
professionalMacSpudster14-Sep-15 6:05 
GeneralRe: Riddles of nature Pin
908236514-Sep-15 12:03
908236514-Sep-15 12:03 
GeneralRe: Riddles of nature Pin
MacSpudster15-Sep-15 5:54
professionalMacSpudster15-Sep-15 5:54 
GeneralRe: Riddles of nature Pin
908236514-Sep-15 8:04
908236514-Sep-15 8:04 
GeneralThought of the day Pin
OriginalGriff14-Sep-15 4:58
mveOriginalGriff14-Sep-15 4:58 
GeneralRe: Thought of the day Pin
Rage14-Sep-15 5:07
professionalRage14-Sep-15 5:07 
GeneralRe: Thought of the day Pin
Colin Mullikin14-Sep-15 5:10
professionalColin Mullikin14-Sep-15 5:10 
GeneralRe: Thought of the day Pin
OriginalGriff14-Sep-15 5:16
mveOriginalGriff14-Sep-15 5:16 
GeneralRe: Thought of the day Pin
Ravi Bhavnani14-Sep-15 5:09
professionalRavi Bhavnani14-Sep-15 5:09 
GeneralRe: Thought of the day Pin
OriginalGriff14-Sep-15 5:10
mveOriginalGriff14-Sep-15 5:10 
GeneralRe: Thought of the day Pin
Ravi Bhavnani14-Sep-15 5:33
professionalRavi Bhavnani14-Sep-15 5:33 

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.