347 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
119
views
How can I define a custom operator using radiate crate for genetic programming?
I'm trying to make a custom operator function for the Op enum in the radiate crate for genetic programming but I can't. Can someone give me some example for that?
I'm trying to implement for example ...
1
vote
1
answer
170
views
How to specify range of genes in PyGAD for genetic algorithms?
I have an optimization problem with a lot of variables. Let suppose there is just three: car speed (km/h), car weight (tons) and car price ($). Obviously, the range of each variable is different: car ...
0
votes
0
answers
50
views
Genetic Algorithm Implementation – Error in Selection/Mutation/Population Formation Steps
I’m working on a genetic algorithm for an optimization task where I need to compare different parameters across three functions, including:
Crossover: One-point (OT), two-point (DT)
Mutation rates: 0....
0
votes
1
answer
61
views
DEAP eaSimple in python crashes becouse of too many laggs
Error
I get SyntaxError: too many nested parentheses.
File /home/tilen/genetic_programming/.venv/lib/python3.10/site-packages/IPython/core/interactiveshell.py:3577 in run_code
exec(code_obj, self....
0
votes
0
answers
42
views
Schemata Theorem, Crossover Probability and Mutation Probability in different techniques
For the mutation probability, the definition I found is "Mutation probability (or ratio) is basically a measure of the likeness that random elements of your chromosome will be flipped into ...
0
votes
1
answer
31
views
Neataptic Machine-Learning - Flatten inputs or nested & based on features or samples
I am learning ML NEAT with Neataptic within NodeJS.
I am making a basic weather prediction model. Essentially predict the next temperature.
I have this type of data, where I want to give samples of ...
0
votes
1
answer
52
views
what does verbose = __debug__ mean in following code?
from deap import tools
from deap import algorithms
def eaSimpleWithElitism(population, toolbox, cxpb, mutpb, ngen, stats=None,
halloffame=None, verbose=__debug__):
"""...
0
votes
0
answers
124
views
MPI coding error : program exiting without completing execution
I am doing small coding on Genetic Algorithm and the below is my main function :
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <mpi.h>
#include <limits.h&...
1
vote
1
answer
365
views
Pygad create new population if fitness is saturated
I am using Pygad to compute an optimization problem, however the algorithm is reaching local minima (not the ideal solution) before all the generations have run. I would like to be able to check ...
0
votes
1
answer
494
views
Couldn't get more than two solutions in pymoo
I have a problem with two objectives. The problem is minimized by NSGA-2 algorithm. I run minimize with different population sizes and different termination criterias, but every time the algorithm ...
0
votes
1
answer
80
views
Allocate letters to an NxM grid to minimize the distance between letter pairs that show up frequently in a given list of words
Given a input of a lot of words and an NxM dimension I have to create an algorithm that designs the best (if possible, or one of the bests) single-finger NxM keyboard layout for mobile. Which means ...
1
vote
1
answer
156
views
PYGAD how to debug the built-in parent selection method
I am using PYGAD GA module to write a genetic programming, I want to use the tournament selection for my parent matching, I do not known how to use print() to debug the parent selection method, here ...
0
votes
1
answer
89
views
How to use linear regression B/SE estimates into a new formula to calculate Wald Ratio method statistic?
In Stata how to perform one-sample Mendelian randomization using the Wald ratio method for causal estimates, SE and P value? Is there a package or special command?
Essentially I want to perform ...
0
votes
0
answers
102
views
Why is it showing 'invalid syntax' when I am trying to run a genetic programming code using deap library?
After calling all required modules, I assined all the operators and created Fitness and Individual. After that Evaluation function was defined and toolbox was registered as follows:
# Define the ...
0
votes
0
answers
112
views
Genetic Programming with Numpy, Pandas and Swifter, how to speed up tree evaluation/fitness calculation?
I'm trying to implement a GP algorithm.
This is my first time using numpy/pandas/swifter, so perhaps that explains a lot.
I have a tree class (only relevant methods shown):
FUNCTIONS = [np.add, np....