Skip to content
#

genetic-algorithm

Here are 3,926 public repositories matching this topic...

ychong
ychong commented Feb 8, 2018

Hi I would like to propose a better implementation for 'test_indices':

We can remove the unneeded np.array casting:

Cleaner/New:
test_indices = list(set(range(len(texts))) - set(train_indices))

Old:
test_indices = np.array(list(set(range(len(texts))) - set(train_indices)))

enhancement good first issue

Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing, Ant Colony Optimization Algorithm,Immune Algorithm, Artificial Fish Swarm Algorithm, Differential Evolution and TSP(Traveling salesman)

  • Updated Apr 8, 2022
  • Python

Improve this page

Add a description, image, and links to the genetic-algorithm topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the genetic-algorithm topic, visit your repo's landing page and select "manage topics."

Learn more