我正在处理多标签分类问题,因此我从sklearn.multiclass导入OneVsRestClassifier。
我使用MultiLabelBinarizer将标签(列表列表)转换为0和1的数组(总共5975个标签)
因为输入数据太大,所以我在每个数据批次上都使用了partial_fit(),但是当我运行代码时,它引发了一个错误:
" ValueError:对象未安装多标签输入。"
似乎y_train不合适,但是当我使用" fit()"时,y_train就可以了。
我只是想知道参数的正确格式是什么" y"和#34;班级"在OneVsRestClassifier中partial_fit()?
应该" y"是列表列表还是多标签二值化?
应该"班级"是所有标签的数组还是二进制化?
问题代码:
classif = OneVsRestClassifier(estimator=SGDClassifier())
for i,(X_train, y_train) in enumerate(minibatch_iterators):
classif.partial_fit(X_train,y_train,classes=np.array(list(range(1,5975))))
以下是数据的格式
X:input data
-1.571,1.454,1.279,6.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-2.952,1.087,1.151,7.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.386,2.559,2.157,8.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-0.946,1.946,-0.032,6.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-3.352,-0.218,1.298,6.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-3.89,2.053,0.883,6.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-0.127,3.173,1.899,6.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.223,2.813,0.443,6.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-4.661,-0.55,1.175,7.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-2.537,-1.136,1.539,8.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-5.249,1.74,0.751,6.0,0.0,0.0,0.0,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0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
Y:
原始格式(列表清单):
[[1006,1093,2109,2539,3104,351,3558,5077,5827],
[1076,263,3156,324,405,4079,4707,5560,730],
[5325],
[1077,3755,3863,4256],
[2883],...]
在multilabel binarized 之后,标签y成为以下格式。数组中有一些:
binarized labels
完整的python代码在这里:
import csv
import pandas as pd
import numpy as np
#from sklearn.svm import SVC
from sklearn.multiclass import OneVsRestClassifier
from sklearn.preprocessing import MultiLabelBinarizer
from sklearn.linear_model import SGDClassifier
def generate_input_label_list(csvPath):
print("reading input labels:",csvPath)
with open(csvPath, 'rt') as f:
reader = csv.reader(f)
labellist = list(reader)#generate a string format labellist
intLabelList=[] # def a labellist to store the label after convertion
for i in labellist: # convert string label to list
temp=[]
for j in i:
j=int(j)
temp.append(j)
temp.sort() # sort each multilabel
intLabelList.append(temp)
print("finish reading input labels!")
return intLabelList
mlb = MultiLabelBinarizer(classes=[x for x in range(1,5975)])
alllabel=generate_input_label_list("target_train.csv")
all_y=mlb.fit_transform(alllabel)
def iter_minibatch(X_path,y_path,minibatch_size=45):
# data batch generator
# generate a batch of data and label once a time,default size is 45
reader = pd.read_csv(X_path,header=None,chunksize=minibatch_size,iterator=True)
labelList = generate_input_label_list(y_path)
for i in range(0,12589):
X_batch=reader.get_chunk()
X=X_batch.values
y_list=labelList[i*minibatch_size:i*minibatch_size+minibatch_size]
y=mlb.fit_transform(y_list)
yield X,y
minibatch_iterators=iter_minibatch("data_train.csv","target_train.csv")
X_test,y_test=minibatch_iterators.__next__()
classif = OneVsRestClassifier(estimator=SGDClassifier())
for i,(X_train, y_train) in enumerate(minibatch_iterators):
classif.partial_fit(X_train,y_train,classes=np.array(list(range(1,5975))))
#classif.fit(X_train,y_train)
print("time:",i)
print(X_train)
print(y_train)
print("score:",classif.score(X_test,y_test))