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
I'm working on speech recognition using raspberry pi while I was running the code of the build model using pybrain features I got the error:'SupervisedDataSet' object has no attribute '_convertToOneOfMany' ?
If anyone has any pointers to get me back on the right path and that would be very much appreciated.
def createRGBdataSet(inputSet, numOfSamples, numOfPoints):
alldata = ClassificationDataSet(numOfPoints, 1, nb_classes=3)
# Iter through all 3 groups and add the samples with appropriate class label
for i in range(0, 3*numOfSamples):
input = inputSet[i]
if (i < numOfSamples):
alldata.addSample(input, [0])
elif (i >= numOfSamples and i < numOfSamples*2):
alldata.addSample(input, [1])
else:
alldata.addSample(input, [2])
return alldata
# Split the dataset into 75% training and 25% test data.
def splitData(alldata):
tstdata, trndata = alldata.splitWithProportion( 0.25 )
trndata._convertToOneOfMany()
tstdata._convertToOneOfMany()
return trndata, tstdata
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Pybrain: 'SupervisedDataSet' object has no attribute '_convertToOneOfMany' error
I am having a problem with my code, please help!
Dec 11, 2021
I'm working on speech recognition using raspberry pi while I was running the code of the build model using pybrain features I got the error:'SupervisedDataSet' object has no attribute '_convertToOneOfMany' ?
If anyone has any pointers to get me back on the right path and that would be very much appreciated.
The text was updated successfully, but these errors were encountered: