ac3f3222871de9e371e26913472529c353c8ba52,RMDL/RMDL_Text.py,,Text_Classification,#,29
Before Change
if len(x_train) != len(y_train) :
raise ValueError("shape of x_train and y_train must be equal"
"The x_train has " + str(len(x_train)) +
"The x_train has" +
After Change
return np.array(encoded)
if not isinstance(y_train[0], list) and not isinstance(y_train[0], np.ndarray):
//checking if labels are one hot or not otherwise dense_layer will give shape error
print("converted_into_one_hot")
y_train = _one_hot_values(y_train)
y_test = _one_hot_values(y_test)
if GloVe_needed:
if glove_directory == "":
GloVe_directory = GloVe.download_and_extract()
GloVe_DIR = os.path.join(GloVe_directory, GloVe_file)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: kk7nc/RMDL
Commit Name: ac3f3222871de9e371e26913472529c353c8ba52
Time: 2018-06-02
Author: 3x3paul@gmail.com
File Name: RMDL/RMDL_Text.py
Class Name:
Method Name: Text_Classification
Project Name: hunkim/PyTorchZeroToAll
Commit Name: c4610ff26a01a0622bc11dcac0f0812f05c56e0c
Time: 2017-11-02
Author: hunkim@gmail.com
File Name: 12_4_name_classify.py
Class Name:
Method Name: test
Project Name: Microsoft/MMdnn
Commit Name: fdeeaff5e452e257bf3a3dd76e25c81304cc4c98
Time: 2020-03-15
Author: linmajia@users.noreply.github.com
File Name: mmdnn/conversion/examples/tensorflow/vis_meta.py
Class Name:
Method Name: _main