Skip to content
#

deap

Here are 52 public repositories matching this topic...

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()

rodrigo-arenas
rodrigo-arenas commented May 31, 2021

Is your feature request related to a problem? Please describe.
Currently the .fit method of GASearchCV accepts a callbacks argument, this is used to stop the training process when a condition is met. All the callbacks implements the same methods: .on_step and __call__ which are used while the optimization routine is running.
Currently, each callback does not have any kind of inheritance

Improve this page

Add a description, image, and links to the deap 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 deap topic, visit your repo's landing page and select "manage topics."

Learn more