1. Use a genetic algorithm to train a feedforward neural network with one hidden
ID: 656705 • Letter: 1
Question
1. Use a genetic algorithm to train a feedforward neural network with one hidden layer and unipolar discrete (sgn) activation function to classify characters: A E. 2. The construction of a magic square using genetic algorithms. A magic square of order n is an arrangement of the numbers from 1 to n2 in an n-by-n matrix, with each number occurring exactly once, so that each row, each column, and each main diagonal has the same sum. Construct a magic square using a genetic algorithm. First, generate an initial population of magic squares with random values. The fitness of each individual square is calculated based on the flatness, that is, the degree of deviation in the sums of the rows, columns, and diagonals. Write your own code. Turn in the hard copy of the code and the numerical results:Explanation / Answer
.MAGIC SQUARES
A magic square of order n consists of the integers 1 to n2 arranged in n
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.