neural network and genetic algorithm











up vote
-2
down vote

favorite












I am working with a complex system, the system has five variables - depending upon values of these five variables, the response of the system is measured. There are seven output variables that are measured in-order to completely define the response.



I have been using artificial neural network to model relationship between the five variables and the seven output parameters. This has been successful so far.. The ANNs can predict really well the output (I have tested the trained network on a validation set of testcases also). I used python Keras/tensor flow for the same.
BTW, I also tried the linear regression as function approximator but it produces large errors. These errors are expected considering that the system is highly non-linear and may not be continuous everywhere.



Now, I would like to predict the values of the five variables from a vector of the seven output parameters (target vector). Tried using Genetic algorithm for the same. After a lot of effort in designing the GA, I still end up getting high differences between target vector and the GA prediction. I just try to minimize the mean squared error between ANN prediction (function approximator) and target vector.



Is this the right approach to use ANN as function approximator and GA for design space exploration?










share|improve this question


















  • 4




    What is your objective? Also GA cannot do prediction, it is used for optimization. May be u can find the best combination of five variables which can give the max value in your target variable using GA
    – AILearning
    Nov 13 at 7:22










  • " May be u can find the best combination of five variables which can give the max value in your target variable using GA –" I am doing this but slightly in a different way. I would like to minimize the error between the target and the predicted variables. The ANN serves as the function approximator. But, this does not seem to work. I now started thinking if GA can be used or not when the target function is ANN.
    – Puneeth
    Nov 13 at 7:50












  • GA is not an approach for function appropriator. What do you mean by "this does not work". But you mentioned earlier as "The ANNs can predict really well the output"
    – AILearning
    Nov 13 at 8:24










  • Input data ----> ANN ----> output data : ANN is used to build a relationship between input and output. How to find a set of "input variables" that can produce a specific output "target"? I used GA for this. target -----> GA -------> input variables What do I optimize in GA? it is the mean squared error of ANN output and target. So, how does it work? GA sets an initial population, sends those values to ANN, ANN predicts the output - GA compares ANN output with target - finds mse - repeats until a minimum mse is reached. Hence, GA is used as optimizer and not as function appropriator.
    – Puneeth
    Nov 13 at 8:35












  • Is this the right approach to use ANN as function approximator and GA for design space exploration? - Yes. I am not getting, where the issues is now!
    – AILearning
    Nov 13 at 8:39















up vote
-2
down vote

favorite












I am working with a complex system, the system has five variables - depending upon values of these five variables, the response of the system is measured. There are seven output variables that are measured in-order to completely define the response.



I have been using artificial neural network to model relationship between the five variables and the seven output parameters. This has been successful so far.. The ANNs can predict really well the output (I have tested the trained network on a validation set of testcases also). I used python Keras/tensor flow for the same.
BTW, I also tried the linear regression as function approximator but it produces large errors. These errors are expected considering that the system is highly non-linear and may not be continuous everywhere.



Now, I would like to predict the values of the five variables from a vector of the seven output parameters (target vector). Tried using Genetic algorithm for the same. After a lot of effort in designing the GA, I still end up getting high differences between target vector and the GA prediction. I just try to minimize the mean squared error between ANN prediction (function approximator) and target vector.



Is this the right approach to use ANN as function approximator and GA for design space exploration?










share|improve this question


















  • 4




    What is your objective? Also GA cannot do prediction, it is used for optimization. May be u can find the best combination of five variables which can give the max value in your target variable using GA
    – AILearning
    Nov 13 at 7:22










  • " May be u can find the best combination of five variables which can give the max value in your target variable using GA –" I am doing this but slightly in a different way. I would like to minimize the error between the target and the predicted variables. The ANN serves as the function approximator. But, this does not seem to work. I now started thinking if GA can be used or not when the target function is ANN.
    – Puneeth
    Nov 13 at 7:50












  • GA is not an approach for function appropriator. What do you mean by "this does not work". But you mentioned earlier as "The ANNs can predict really well the output"
    – AILearning
    Nov 13 at 8:24










  • Input data ----> ANN ----> output data : ANN is used to build a relationship between input and output. How to find a set of "input variables" that can produce a specific output "target"? I used GA for this. target -----> GA -------> input variables What do I optimize in GA? it is the mean squared error of ANN output and target. So, how does it work? GA sets an initial population, sends those values to ANN, ANN predicts the output - GA compares ANN output with target - finds mse - repeats until a minimum mse is reached. Hence, GA is used as optimizer and not as function appropriator.
    – Puneeth
    Nov 13 at 8:35












  • Is this the right approach to use ANN as function approximator and GA for design space exploration? - Yes. I am not getting, where the issues is now!
    – AILearning
    Nov 13 at 8:39













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











I am working with a complex system, the system has five variables - depending upon values of these five variables, the response of the system is measured. There are seven output variables that are measured in-order to completely define the response.



I have been using artificial neural network to model relationship between the five variables and the seven output parameters. This has been successful so far.. The ANNs can predict really well the output (I have tested the trained network on a validation set of testcases also). I used python Keras/tensor flow for the same.
BTW, I also tried the linear regression as function approximator but it produces large errors. These errors are expected considering that the system is highly non-linear and may not be continuous everywhere.



Now, I would like to predict the values of the five variables from a vector of the seven output parameters (target vector). Tried using Genetic algorithm for the same. After a lot of effort in designing the GA, I still end up getting high differences between target vector and the GA prediction. I just try to minimize the mean squared error between ANN prediction (function approximator) and target vector.



Is this the right approach to use ANN as function approximator and GA for design space exploration?










share|improve this question













I am working with a complex system, the system has five variables - depending upon values of these five variables, the response of the system is measured. There are seven output variables that are measured in-order to completely define the response.



I have been using artificial neural network to model relationship between the five variables and the seven output parameters. This has been successful so far.. The ANNs can predict really well the output (I have tested the trained network on a validation set of testcases also). I used python Keras/tensor flow for the same.
BTW, I also tried the linear regression as function approximator but it produces large errors. These errors are expected considering that the system is highly non-linear and may not be continuous everywhere.



Now, I would like to predict the values of the five variables from a vector of the seven output parameters (target vector). Tried using Genetic algorithm for the same. After a lot of effort in designing the GA, I still end up getting high differences between target vector and the GA prediction. I just try to minimize the mean squared error between ANN prediction (function approximator) and target vector.



Is this the right approach to use ANN as function approximator and GA for design space exploration?







python neural-network genetic-algorithm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 at 7:12









Puneeth

61




61








  • 4




    What is your objective? Also GA cannot do prediction, it is used for optimization. May be u can find the best combination of five variables which can give the max value in your target variable using GA
    – AILearning
    Nov 13 at 7:22










  • " May be u can find the best combination of five variables which can give the max value in your target variable using GA –" I am doing this but slightly in a different way. I would like to minimize the error between the target and the predicted variables. The ANN serves as the function approximator. But, this does not seem to work. I now started thinking if GA can be used or not when the target function is ANN.
    – Puneeth
    Nov 13 at 7:50












  • GA is not an approach for function appropriator. What do you mean by "this does not work". But you mentioned earlier as "The ANNs can predict really well the output"
    – AILearning
    Nov 13 at 8:24










  • Input data ----> ANN ----> output data : ANN is used to build a relationship between input and output. How to find a set of "input variables" that can produce a specific output "target"? I used GA for this. target -----> GA -------> input variables What do I optimize in GA? it is the mean squared error of ANN output and target. So, how does it work? GA sets an initial population, sends those values to ANN, ANN predicts the output - GA compares ANN output with target - finds mse - repeats until a minimum mse is reached. Hence, GA is used as optimizer and not as function appropriator.
    – Puneeth
    Nov 13 at 8:35












  • Is this the right approach to use ANN as function approximator and GA for design space exploration? - Yes. I am not getting, where the issues is now!
    – AILearning
    Nov 13 at 8:39














  • 4




    What is your objective? Also GA cannot do prediction, it is used for optimization. May be u can find the best combination of five variables which can give the max value in your target variable using GA
    – AILearning
    Nov 13 at 7:22










  • " May be u can find the best combination of five variables which can give the max value in your target variable using GA –" I am doing this but slightly in a different way. I would like to minimize the error between the target and the predicted variables. The ANN serves as the function approximator. But, this does not seem to work. I now started thinking if GA can be used or not when the target function is ANN.
    – Puneeth
    Nov 13 at 7:50












  • GA is not an approach for function appropriator. What do you mean by "this does not work". But you mentioned earlier as "The ANNs can predict really well the output"
    – AILearning
    Nov 13 at 8:24










  • Input data ----> ANN ----> output data : ANN is used to build a relationship between input and output. How to find a set of "input variables" that can produce a specific output "target"? I used GA for this. target -----> GA -------> input variables What do I optimize in GA? it is the mean squared error of ANN output and target. So, how does it work? GA sets an initial population, sends those values to ANN, ANN predicts the output - GA compares ANN output with target - finds mse - repeats until a minimum mse is reached. Hence, GA is used as optimizer and not as function appropriator.
    – Puneeth
    Nov 13 at 8:35












  • Is this the right approach to use ANN as function approximator and GA for design space exploration? - Yes. I am not getting, where the issues is now!
    – AILearning
    Nov 13 at 8:39








4




4




What is your objective? Also GA cannot do prediction, it is used for optimization. May be u can find the best combination of five variables which can give the max value in your target variable using GA
– AILearning
Nov 13 at 7:22




What is your objective? Also GA cannot do prediction, it is used for optimization. May be u can find the best combination of five variables which can give the max value in your target variable using GA
– AILearning
Nov 13 at 7:22












" May be u can find the best combination of five variables which can give the max value in your target variable using GA –" I am doing this but slightly in a different way. I would like to minimize the error between the target and the predicted variables. The ANN serves as the function approximator. But, this does not seem to work. I now started thinking if GA can be used or not when the target function is ANN.
– Puneeth
Nov 13 at 7:50






" May be u can find the best combination of five variables which can give the max value in your target variable using GA –" I am doing this but slightly in a different way. I would like to minimize the error between the target and the predicted variables. The ANN serves as the function approximator. But, this does not seem to work. I now started thinking if GA can be used or not when the target function is ANN.
– Puneeth
Nov 13 at 7:50














GA is not an approach for function appropriator. What do you mean by "this does not work". But you mentioned earlier as "The ANNs can predict really well the output"
– AILearning
Nov 13 at 8:24




GA is not an approach for function appropriator. What do you mean by "this does not work". But you mentioned earlier as "The ANNs can predict really well the output"
– AILearning
Nov 13 at 8:24












Input data ----> ANN ----> output data : ANN is used to build a relationship between input and output. How to find a set of "input variables" that can produce a specific output "target"? I used GA for this. target -----> GA -------> input variables What do I optimize in GA? it is the mean squared error of ANN output and target. So, how does it work? GA sets an initial population, sends those values to ANN, ANN predicts the output - GA compares ANN output with target - finds mse - repeats until a minimum mse is reached. Hence, GA is used as optimizer and not as function appropriator.
– Puneeth
Nov 13 at 8:35






Input data ----> ANN ----> output data : ANN is used to build a relationship between input and output. How to find a set of "input variables" that can produce a specific output "target"? I used GA for this. target -----> GA -------> input variables What do I optimize in GA? it is the mean squared error of ANN output and target. So, how does it work? GA sets an initial population, sends those values to ANN, ANN predicts the output - GA compares ANN output with target - finds mse - repeats until a minimum mse is reached. Hence, GA is used as optimizer and not as function appropriator.
– Puneeth
Nov 13 at 8:35














Is this the right approach to use ANN as function approximator and GA for design space exploration? - Yes. I am not getting, where the issues is now!
– AILearning
Nov 13 at 8:39




Is this the right approach to use ANN as function approximator and GA for design space exploration? - Yes. I am not getting, where the issues is now!
– AILearning
Nov 13 at 8:39












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Yes, it is a good approach to do search space exploration using GA. But designing the crossover, mutation, generation evolution logic, etc. plays a major role in the determining the performance of the Genetic algo.



If your search space is limited, you can use exact methods (which solves to optimality).



There are few implementation in python-scipy itself



If you prefer to go with meta-heuristics,



there is a wide range of options other than Genetic algorithm



Memetic algorithm
Tabu Search
Simulated annealing
Particle swarm optimization
Ant colony optimization






share|improve this answer

















  • 1




    thank you for the answer.
    – Puneeth
    Nov 13 at 9:10











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275666%2fneural-network-and-genetic-algorithm%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










Yes, it is a good approach to do search space exploration using GA. But designing the crossover, mutation, generation evolution logic, etc. plays a major role in the determining the performance of the Genetic algo.



If your search space is limited, you can use exact methods (which solves to optimality).



There are few implementation in python-scipy itself



If you prefer to go with meta-heuristics,



there is a wide range of options other than Genetic algorithm



Memetic algorithm
Tabu Search
Simulated annealing
Particle swarm optimization
Ant colony optimization






share|improve this answer

















  • 1




    thank you for the answer.
    – Puneeth
    Nov 13 at 9:10















up vote
0
down vote



accepted










Yes, it is a good approach to do search space exploration using GA. But designing the crossover, mutation, generation evolution logic, etc. plays a major role in the determining the performance of the Genetic algo.



If your search space is limited, you can use exact methods (which solves to optimality).



There are few implementation in python-scipy itself



If you prefer to go with meta-heuristics,



there is a wide range of options other than Genetic algorithm



Memetic algorithm
Tabu Search
Simulated annealing
Particle swarm optimization
Ant colony optimization






share|improve this answer

















  • 1




    thank you for the answer.
    – Puneeth
    Nov 13 at 9:10













up vote
0
down vote



accepted







up vote
0
down vote



accepted






Yes, it is a good approach to do search space exploration using GA. But designing the crossover, mutation, generation evolution logic, etc. plays a major role in the determining the performance of the Genetic algo.



If your search space is limited, you can use exact methods (which solves to optimality).



There are few implementation in python-scipy itself



If you prefer to go with meta-heuristics,



there is a wide range of options other than Genetic algorithm



Memetic algorithm
Tabu Search
Simulated annealing
Particle swarm optimization
Ant colony optimization






share|improve this answer












Yes, it is a good approach to do search space exploration using GA. But designing the crossover, mutation, generation evolution logic, etc. plays a major role in the determining the performance of the Genetic algo.



If your search space is limited, you can use exact methods (which solves to optimality).



There are few implementation in python-scipy itself



If you prefer to go with meta-heuristics,



there is a wide range of options other than Genetic algorithm



Memetic algorithm
Tabu Search
Simulated annealing
Particle swarm optimization
Ant colony optimization







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 at 8:52









AILearning

461417




461417








  • 1




    thank you for the answer.
    – Puneeth
    Nov 13 at 9:10














  • 1




    thank you for the answer.
    – Puneeth
    Nov 13 at 9:10








1




1




thank you for the answer.
– Puneeth
Nov 13 at 9:10




thank you for the answer.
– Puneeth
Nov 13 at 9:10


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275666%2fneural-network-and-genetic-algorithm%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?