Skip to content

TypeError: The first input argument needs to be a sequence #8

@jiyuanli002523

Description

@jiyuanli002523

hi, when my program run into
def train(gmm,features):
X = np.concatenate(features.values())
Y = np.concatenate([np.float32([i]*len(v)) for i,v in zip(range(0, len(features)), features.values())])
clf = svm.SVC()
clf.fit(X,Y)
return clf
report the error :
in train
X = np.concatenate(features.values())
TypeError: The first input argument needs to be a sequence

can you help me resolve this? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions