AttributeError: 'OneHotEncoder' object has no attribute '_fit_transform'
ub16c9@ub16c9-gpu:/media/ub16c9/fcd84300-9270-4bbd-896a-5e04e79203b7/ub16_prj/ESIM-tf$ python3.6 Train.py
Using TensorFlow backend.
CMD : python3 Train.py --num_epochs 300 --batch_size 32 --dropout_keep_prob 0.5 --clip_value 10 --learning_rate 0.0004 --l2 0.0 --seq_length 100 --optimizer adam --early_stop_step 5000000 --threshold 0 --embedding_size 300 --embedding_normalize 1 --hidden_size 300 --attention_size 300 --eval_batch 1000 --vocab_path data/vocab.txt --embedding_path data/embeddings.pkl --trainset_path data/train.txt --devset_path data/dev.txt --testset_path data/test.txt --save_path ./model/checkpoint --best_path ./model/bestval --log_path ./config/log/log --config_path ./config/config.yaml
Training with following options :
------------- HYPER PARAMETERS -------------
attention_size: 300
batch_size: 32
best_path: ./model/bestval
clip_value: 10.0
config_path: ./config/config.yaml
devset_path: data/dev.txt
dropout_keep_prob: 0.5
early_stop_step: 5000000
embedding_normalize: 1
embedding_path: data/embeddings.pkl
embedding_size: 300
eval_batch: 1000
hidden_size: 300
l2: 0.0
learning_rate: 0.0004
log_path: config/log/log.2019_06_21_08_26_24
n_classes: 3
n_vocab: 47955
num_epochs: 300
optimizer: adam
save_path: ./model/checkpoint
seq_length: 100
testset_path: data/test.txt
threshold: 0
trainset_path: data/train.txt
vocab_dict_size: 47955
vocab_path: data/vocab.txt
embeded_left : (?, 100, 300)
embeded_right : (?, 100, 300)
a_bar : (?, 100, 600)
b_bar : (?, 100, 600)
att_wei : (?, 100, 100)
att_soft_a : (?, 100, 100)
att_soft_b : (?, 100, 100)
a_hat : (?, 100, 600)
b_hat : (?, 100, 600)
a_diff : (?, 100, 600)
a_mul : (?, 100, 600)
m_a : (?, 100, 2400)
m_b : (?, 100, 2400)
v_a : (?, 100, 600)
v_b : (?, 100, 600)
v_a_avg : (?, 600)
v_a_max : (?, 600)
v : (?, 2400)
Loading training and validation data ...
Traceback (most recent call last):
File "Train.py", line 164, in