私は4つのファイルを持っている:train.txt、trainLabel.txt、test.txtという、testLabel.txtテンソルフローでデータを入力する方法は?
train.txt
1,60,feature_col0,feature_col1,feature_col2,feature_col3,feature_col4,feature_col5,feature_col6,feature_col7,feature_col8,feature_col9,feature_col10,feature_col11,feature_col12,feature_col13,feature_col14,feature_col15,feature_col16,feature_col17,feature_col18,feature_col19,feature_col20,feature_col21,feature_col22,feature_col23,feature_col24,feature_col25,feature_col26,feature_col27,feature_col28,feature_col29,feature_col30,feature_col31,feature_col32,feature_col33,feature_col34,feature_col35,feature_col36,feature_col37,feature_col38,feature_col39,feature_col40,feature_col41,feature_col42,feature_col43,feature_col44,feature_col45,feature_col46,feature_col47,feature_col48,feature_col49,feature_col50,feature_col51,feature_col52,feature_col53,feature_col54,feature_col55,feature_col56,feature_col57,feature_col58,feature_col59
1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1
trainLabel.txt
1,4,feature_col0,feature_col1,feature_col2,feature_col3
1,1,1,0
test.txt
1,60,feature_col0,feature_col1,feature_col2,feature_col3,feature_col4,feature_col5,feature_col6,feature_col7,feature_col8,feature_col9,feature_col10,feature_col11,feature_col12,feature_col13,feature_col14,feature_col15,feature_col16,feature_col17,feature_col18,feature_col19,feature_col20,feature_col21,feature_col22,feature_col23,feature_col24,feature_col25,feature_col26,feature_col27,feature_col28,feature_col29,feature_col30,feature_col31,feature_col32,feature_col33,feature_col34,feature_col35,feature_col36,feature_col37,feature_col38,feature_col39,feature_col40,feature_col41,feature_col42,feature_col43,feature_col44,feature_col45,feature_col46,feature_col47,feature_col48,feature_col49,feature_col50,feature_col51,feature_col52,feature_col53,feature_col54,feature_col55,feature_col56,feature_col57,feature_col58,feature_col59
0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1
testLabel.txt
1,4,feature_col0,feature_col1,feature_col2,feature_col3
1,1,0,0
dpNumが、私は入力にtrain.txt
[1 ,0..........., 1] # a rank 1 tensor; this is a vector with shape [60]
のようないくつかのデータが欲しいfeature_col
を意味
そして
を予測
# Fit model.
classifier.fit(x=training_set.data,
y=training_set.target,
steps=2000)
すなわち:tutorialsページから0
もう少し具体的に教えてください。 'train.csv'は実際に15000次元を持っていますか、それとも15000データポイントですか? 「ターゲットディメンション」とは何ですか? – kaufmanu
あなたのコードで 'IRIS_TRAINING'とは何ですか?そのCSVファイルから小さな抜粋を投稿できますか? – kaufmanu
私は偽のデータを生成し、私の質問を編集しました。どうもありがとう。 –