Questions tagged [genetic]

Related to the information representation or its coding whereby different features of a unit of measurement, which can be interpreted as any decision. We can see the most common its implementation in evolutionary algorithms, the most famous of which are genetic algorithms. In generally, "Genetic" points us to something changeable in time base on an evolutionary process, like living organism. Technically, it is interesting to optimization algorithms.

A genetic algorithm (GA) is a method for solving both constrained and unconstrained optimization problems based on a natural selection process that mimics biological evolution.

Source: http://www.mathworks.com/discovery/genetic-algorithm.html

162 questions
1
vote
1 answer

Function, Vectors, and Loops in R

I recently began experimenting with R as a language to use for genetic programming. I have slowly but surely been learning more and more about how R works and its best coding practices. Yet, I have hit a road block. Here is my situation. I have a…
Isaac Drachman
  • 984
  • 6
  • 8
0
votes
2 answers

Python 'NoneType' object query

I am a Python noob. To learn I'm making a natural selection simulator but I'm a bit stuck. A bit of background: I make a list of organisms with random bit patterns, like so: population.append(chromosone.Chromosone(chromosoneSize)) Organisms breed,…
Lord Kinboat
  • 47
  • 1
  • 2
  • 6
0
votes
1 answer

Genetic Algorithms - Deap - eaSimple error

I am developing a simple genetic algorithm using Python and the Deap library . At the end of all I am launching the eaSimple function to have the population evolved, but I keep having the following error : "object 'int' has no len()'. The algorithm…
Booji Boy
  • 15
  • 4
0
votes
1 answer

Assigned values have not the same length - Python

I am working on Genetic Algorithm, particularly finding the fitness of population. But it has the #TypeError: object of type 'int' has no len() Python suggests me a reference code: /usr/local/lib/python3.9/dist-packages/deap/base.py in…
Jess
  • 9
  • 2
0
votes
0 answers

genetic algorithm or different algorithm to add practical materials

Is it possible to add practical materials and theoretical materials using the genetic algorithm only? Or does it need other different algorithms? is it possible to add practical materials and theoretical materials using the genetic algorithm only? …
Rnew
  • 1
0
votes
1 answer

Shakespeare Monkey experiment using Genetic Algorithm in Python [Problem]

I am working shakespeare monkey experiment using genetic algorithm in python . I understood the core concept of this experiment, where an entity randomly types letter, which should finally converege with the selected target text. But when put into…
0
votes
0 answers

How to organize facet_grid with too many panels

I am trying to plot gene expression values in a clinical trial. I have come to an scalar, represeting relative quantification, and I have 3 groups of intervention.I am trying to plot it in a bar graph (I am open to alternatives). My database is made…
0
votes
0 answers

compromise the solution of multi objective function in matlab

**I have two objective function, I optimized them in matlab using genetic algorithm multi objective function as the follow f unction [output]= multi_objective_function_2(input)** x1 = input(1); x2 = input(2); x3 = input(3); x4 =…
0
votes
0 answers

Discover the formula of a function using genetic programming in Python

I have a dataframe in Python with the data of an unknown function (i mean, values of x and their correspondant values of y) i want to discover the formula that relates both variables using genetic programming in python, how can i do that?
0
votes
0 answers

Can't pickle of TPOTRegressor with Multioutputregressor

my code is as below.. model = TPOTRegressor() multi_model = MultiOutputRegressor(model).fit(x_train, y_train) joblib.dump(multi_model , './multi_model.pkl') Training is working OK.. However, it can't save and shows errors as below.. How to save…
MCPMH
  • 175
  • 1
  • 1
  • 11
0
votes
1 answer

Installing packages - Gviz, rtracklayer and trackViewer, in R

I am trying to install the trackViewer package in R, following the instructions on the Bioconductor websites …
Ar1229
  • 131
  • 2
  • 9
0
votes
1 answer

Fitting blocks into an asymmetrical shape (Python, Genetic Algorithm)

Hi I'm trying to fit Lego Blocks into an asymmetrical shape. The shape looks like this: I can choose between all Lego blocks (different weights) which are: 8x2 (0.35) 8x1 (0.29) 6x2 (0.28) 6x1 (0.25) and so on all the bricks can be align…
ericheindl
  • 111
  • 1
  • 2
0
votes
1 answer

How do I implement genetic algorithm on placing 2 or more kinds of element with different (repeating)distances in a grid?

Please forgive me if I do not explain my question clearly in title. Here may I show you two pictures as my example: my question is described as follows: I have 2 or more different objects(In the pictures, two objects: circle and cross), each one…
Lake_Lagunita
  • 521
  • 1
  • 4
  • 20
0
votes
1 answer

Why is my genetic AI unable to solve the XOR problem?

I'm new to AI, but I've already written genetic AIs in Python and therefore wanted to challenge myself to program an AI from scratch in C. In order to take advantage of the object orientation, I am currently still writing it in C++, but if it really…
0
votes
0 answers

Python - How to replace character in list by index - Genetic algorithm

How am I able to swap character by the index. This is how I've done that already, but I guess there might be many mistakes. All I'm struggling right now is changing 0 to 1, and 1 to 0 in case of mutation class. I've tried many methods but I must say…