-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MRG] Clean up the tutorial and examples (#449)
* Add a general tabular classifier. * Separate Tabular Preprocessing * Modify Predict function * Modify Tabular Preprocessor * Add example tabular_classification * Add tabular examples. * Add testing. * Add preprocessing test and remove multiprocessing * tabular * update * resolve conflicts in examples * resolve conflicts test * update data extraction method * add comments * Modify tabular tests and examples * Delete three .pt files * Modify Start.md * reorganize example dictionary
- Loading branch information
1 parent
ac35486
commit 8bd304b
Showing
20 changed files
with
145 additions
and
72 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Binary file not shown.
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from keras.datasets import mnist | ||
from autokeras import ImageClassifier | ||
from autokeras.constant import Constant | ||
|
||
if __name__ == '__main__': | ||
(x_train, y_train), (x_test, y_test) = mnist.load_data() | ||
x_train = x_train.reshape(x_train.shape + (1,)) | ||
x_test = x_test.reshape(x_test.shape + (1,)) | ||
clf = ImageClassifier(verbose=True, augment=False) | ||
clf.fit(x_train, y_train, time_limit=30 * 60) | ||
clf.final_fit(x_train, y_train, x_test, y_test, retrain=True) | ||
y = clf.evaluate(x_test, y_test) | ||
|
||
print(y * 100) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters