Skip to content
#

genetic-algorithm

Here are 910 public repositories matching this topic...

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

  • Updated Aug 29, 2020
  • Python
chunyanyin11
chunyanyin11 commented Dec 21, 2018

Hello, when I ran your code got "TypeError: unhashable type: 'slice' ".Can you help me analyze the problem?thanks

`
import pandas as pd
from sklearn.linear_model import LogisticRegression
from feature_selection_ga import FeatureSelectionGA
data = pd.read_excel("D:\Project_CAD\实验6\data\train_data_1\train_1.xlsx")
x, y = data.iloc[:, :53], data.iloc[:, 56]
model = LogisticRegression()

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

You can’t perform that action at this time.