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" +
str(len(y_train)))
if len(x_test) != len(y_test):
raise ValueError("shape of x_test and y_test must be equal "
"The x_train has " + str(len(x_test)) +
"The y_test 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: 6
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: 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
Project Name: geek-ai/MAgent
Commit Name: 2c00aa18540df4ab4c3afeacd44b556b3ce90782
Time: 2017-12-01
Author: zhenglianmin96@163.com
File Name: python/magent/utility.py
Class Name:
Method Name: download_file