To test crossover_individual, do we have to give it a list of ProgramNodes and see if any crossover is performed? Other than this, we have to test if the length of the output is correct?
. Don’t worry about testing this function deeply. Just check for some obvious things such as length of the output. • I got some questions about the function pick_individual_using_tournament_selection. If I want to write the test cases for this function, is it I need to find if this is true or not? abs(observed-expected) Yes, you will need to compute the probability of each individual being returned. For example, consider a scenario with two individuals, A with fitness 0 and B with fitness 1. Now, the function will return 0 iff it randomly selects A 7 times. This occurs with probability (1/2)^7. The function will return B iff B is selected at least once. This probability is simply 1-(1/2)^7. You could then see if you observe these probabilities when invoking the function many times. You could also try examples with more individuals. • I got some question about the assg. Do we need to write the type signatures for the test cases functions?? And can you tell me the exact submission time,
Related Questions
- To test crossover_individual, do we have to give it a list of ProgramNodes and see if any crossover is performed? Other than this, we have to test if the length of the output is correct?
- What is the typical nondestructive test performed on splice welds?
- What is a wake-up test and when is it performed?