Skip to content

TypeError: unhashable type: 'slice' #1

@chunyanyin11

Description

@chunyanyin11

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() fsga = FeatureSelectionGA(model, x, y) pop = fsga.generate(100)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions