lisa-lab/pylearn2

use .pkl dataset as input feature and target

Closed this issue · 0 comments

I made feature pkl file and target pkl file separately.
And I want to use these file as dense design matrix input.
(X=feature, y=target)
Each feature shape is (11,40) and target is (1).

My code
!obj:pylearn2.train.Train {
dataset: &src !obj:pylearn2.datasets.dense_design_matrix.DenseDesignMatrix {
X: "!pkl: data/ami/train_feats_new.pkl",
y: "!pkl: data/ami/train_target_new.pkl",
},
...

How can I change code to use pkl file as input??