You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: