a71e59578a0ba78b81b40678ddd99e53edfc5fce,examples/tabular_examples/tabular_classification_binary.py,,,#,4
Before Change
x_num = np.random.random([nsample, nnum])
x_time = np.random.random([nsample, ntime])
x_cat = np.random.randint(0, 10, [nsample, ncat])
x_mvc = np.random.randint(0, 10, [nsample, nmvc])
x_all = np.concatenate([x_num, x_time, x_cat, x_mvc], axis=1)
x_train = x_all[:int(nsample * 0.8), :]
x_test = x_all[int(nsample * 0.8):, :]
y_all = np.random.randint(0, 2, nsample)
y_train = y_all[:int(nsample * 0.8)]
y_test = y_all[int(nsample * 0.8):]
clf = TabularClassifier()
datainfo = {"loaded_feat_types": [ntime, nnum, ncat, nmvc]}
clf.fit(x_train, y_train, time_limit=12 * 60 * 60, datainfo=datainfo)
results = clf.evaluate(x_test, y_test)
print(results)
After Change
y_test = y_all[int(nsample * 0.8):]
clf = TabularClassifier()
datainfo = np.array(["TIME"] * ntime + ["NUM"] * nnum + ["CAT"] * ncat)
clf.fit(x_train, y_train, time_limit=12 * 60 * 60, data_info=datainfo)
AUC = clf.evaluate(x_test, y_test)
print(AUC)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 19
Instances
Project Name: keras-team/autokeras
Commit Name: a71e59578a0ba78b81b40678ddd99e53edfc5fce
Time: 2019-01-03
Author: song_3134@tamu.edu
File Name: examples/tabular_examples/tabular_classification_binary.py
Class Name:
Method Name:
Project Name: jhfjhfj1/autokeras
Commit Name: a71e59578a0ba78b81b40678ddd99e53edfc5fce
Time: 2019-01-03
Author: song_3134@tamu.edu
File Name: examples/tabular_examples/tabular_regression.py
Class Name:
Method Name:
Project Name: jhfjhfj1/autokeras
Commit Name: a71e59578a0ba78b81b40678ddd99e53edfc5fce
Time: 2019-01-03
Author: song_3134@tamu.edu
File Name: examples/tabular_examples/tabular_classification_multiclass.py
Class Name:
Method Name:
Project Name: jhfjhfj1/autokeras
Commit Name: a71e59578a0ba78b81b40678ddd99e53edfc5fce
Time: 2019-01-03
Author: song_3134@tamu.edu
File Name: examples/tabular_examples/tabular_classification_binary.py
Class Name:
Method Name: