38b091ba7664f090b0df9973e6c57c7a130b3ad0,tests/test_classifier.py,,test_fit_predict,#Any#,46
Before Change
path = "tests/resources/temp"
clean_dir(path)
clf = ImageClassifier(path=path, verbose=False)
train_x = np.array([[[1], [2]], [[3], [4]]])
train_y = np.array(["a", "b"])
clf.fit(train_x, train_y)
results = clf.predict(train_x)
assert all(map(lambda result: result in np.array(["a", "b"]), results))
After Change
clean_dir(path)
clf = ImageClassifier(path=path, verbose=False)
train_x = np.random.rand(100, 25, 25, 1)
train_y = np.random.randint(0, 5, 100)
clf.fit(train_x, train_y)
results = clf.predict(train_x)
assert all(map(lambda result: result in train_y, results))
clean_dir(path)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: keras-team/autokeras
Commit Name: 38b091ba7664f090b0df9973e6c57c7a130b3ad0
Time: 2018-04-09
Author: jin@tamu.edu
File Name: tests/test_classifier.py
Class Name:
Method Name: test_fit_predict
Project Name: autorope/donkeycar
Commit Name: d52f37e431cb96d49d865b722978a9e1b1b90848
Time: 2020-10-09
Author: 47540921+DocGarbanzo@users.noreply.github.com
File Name: scripts/profile.py
Class Name:
Method Name: profile