필터 지우기
필터 지우기

How to use ANN model as fitness function in genetic algorithm

조회 수: 17 (최근 30일)
Raihan Arfin
Raihan Arfin 2021년 4월 2일
답변: lolo 2024년 6월 12일
I am using ANN for modeling the reactive extraction efficiency of gallic acid. Now I want to optimize this model using GA, I am using the calling function 'optimtool', but after entering the fitness function and number of variables and running the silver, it shows 'Parameters.hiddenSizes contains negative value'.... I am not very proficient at all these, I have just started learning.. So somebody please help me in first identifying the correct fitness function to be called and secondly hobw to deal with this error, also in another problem, the error was "undefined function 'train' for input arguments of type double"... I am getting anything about this... Kindly help me out, I have little time left to complete it, any help would be appreciated
  댓글 수: 1
Mpho Muloiwa
Mpho Muloiwa 2021년 6월 17일
Hi,
i am having a similar problem. i have checked in a number of forums with no luck. Let me know if you have a solution.

댓글을 달려면 로그인하십시오.

답변 (2개)

David Willingham
David Willingham 2021년 6월 18일
Hi Rihan,
Can I ask what in the model are you trying to optimize?
Typically Optimization is used to determine the optimal parameters of some fundamental equation that have a solution space that may not be completely bounded.
On the other hand ANN's are used to understand a solution space bounded by the historical data they are trained on.
It's for this reason ANN's, another technique called "Experimentation" is commonly used. This is where you setup an experiments which will run "trials" to tune, test or compare the network. For example:
  • Tune the hyperparams
  • Test different network types
  • Compare different input datasets
MATLAB's Experiment Manager App helps you setup and manage these types of experiments. It allows you to setup the range of the parameters you wish to sweep over or use Baysian Optimization to fine tune them.
Here are 2 videos that show how it works:
  댓글 수: 1
Raihan Arfin
Raihan Arfin 2021년 6월 20일
편집: Raihan Arfin 2021년 6월 20일
Thanks Sir for your response. I am actually trying to minimize the MSE of an ANN model using genetic algorithm. The problem that I am encountering is regarding defining the objective function. Since, I am not proficient in programming so I am not writing my own codes and using inbuilt tools. So if you could help me regarding this I will be really thankful to you.

댓글을 달려면 로그인하십시오.


lolo
lolo 2024년 6월 12일
how to creat ann and optimaize moga

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by