Repository: keras-team/autokeras

Issue:
Autokeras1.0 task api error TypeError: __init__() got an unexpected keyword argument 'seed'
### Bug Description
i have installed autokeras1.0 from git at 12/20/2019,
when i running the code bellow, i got errors

this is the code:
```
import autokeras as ak
from keras.datasets import mnist
from sklearn import exceptions
from sklearn.metrics import confusion_matrix

(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 = ak.ImageClassifier(max_trials=100)
clf.fit(x_train, y_train,validation_split=0.2)
y = clf.predict(x_test, y_test)
```

erros
```
Traceback (most recent call last):
  File "D:/work/python_project/autokeras_test/autokerasv1.py", line 13, in <module>
    clf.fit(x_train, y_train,validation_split=0.2)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\task.py", line 116, in fit
    **kwargs)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\auto_model.py", line 199, in fit
    **kwargs)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\tuner.py", line 138, in search
    super().search(callbacks=new_callbacks, **fit_kwargs)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\kerastuner\engine\base_tuner.py", line 122, in search
    self.run_trial(trial, *fit_args, **fit_kwargs)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\tuner.py", line 53, in run_trial
    trial.hyperparameters)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\hypermodel\graph.py", line 460, in build_graphs
    plain_graph = self.hyper_build(hp)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\hypermodel\graph.py", line 480, in hyper_build
    outputs = old_block.build(hp, inputs=inputs)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\hypermodel\base.py", line 117, in _build_wrapper
    return self._build(hp, *args, **kwargs)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\hypermodel\hyperblock.py", line 62, in build
    seed=self.seed)(output_node)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\hypermodel\preprocessor.py", line 577, in __init__
    super().__init__(**kwargs)
  File "D:\work\python_project\autokeras_test\venv\lib\site-packages\autokeras\hypermodel\base.py", line 100, in __init__
    super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'seed'

```

### Setup Details
Include the details about the versions of:
 - OS type and version: window 10
 - Python: 3.6
 - autokeras: 1.0
 - scikit-learn:0.22
 - numpy:1.7.14
 - keras:2.3.1
 - scipy:1.4.1
 - tensorflow:2.0.0
 - pytorch:1.1.0





Discussion:
This issue is fixed in autokeras 1.0.0b0. If not, please reopen the issue. Thanks.
I am facing the same issue when I am trying to compile the following code:

```
import tensorflow as tf
config = tf.compat.v1.ConfigProto()
config.gpu_options.allow_growth = True
tf.compat.v1.keras.backend.set_session(tf.compat.v1.Session(config=config))

from tensorflow.keras.datasets import mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
print(x_train.shape) # (60000, 28, 28)
print(y_train.shape) # (60000,)
print(y_train[:3]) # array([7, 2, 1], dtype=uint8)

import autokeras as ak

clf = ak.ImageClassifier(max_trials=10) # It tries 10 different models.
clf.fit(x_train, y_train)
predicted_y = clf.predict(x_test)
print(clf.evaluate(x_test, y_test))
```

The trace is as follows:

```
Traceback (most recent call last):
  File "demo.py", line 17, in <module>
    clf.fit(x_train, y_train)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/task.py", line 116, in fit
    **kwargs)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/auto_model.py", line 199, in fit
    **kwargs)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/tuner.py", line 138, in search
    super().search(callbacks=new_callbacks, **fit_kwargs)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/kerastuner/engine/base_tuner.py", line 122, in search
    self.run_trial(trial, *fit_args, **fit_kwargs)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/tuner.py", line 53, in run_trial
    trial.hyperparameters)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/hypermodel/graph.py", line 460, in build_graphs
    plain_graph = self.hyper_build(hp)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/hypermodel/graph.py", line 480, in hyper_build
    outputs = old_block.build(hp, inputs=inputs)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/hypermodel/base.py", line 117, in _build_wrapper
    return self._build(hp, *args, **kwargs)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/hypermodel/hyperblock.py", line 62, in build
    seed=self.seed)(output_node)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/hypermodel/preprocessor.py", line 577, in __init__
    super().__init__(**kwargs)
  File "/home/abhinit/anaconda3/envs/keras/lib/python3.7/site-packages/autokeras/hypermodel/base.py", line 100, in __init__
    super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'seed'
```

My setup is as follows:

- autokeras                 1.0.0b0       
- cudatoolkit               10.0.130      
- cudnn                     7.6.4             
- keras-applications        1.0.8       
- keras-base                2.2.4          
- keras-preprocessing       1.1.0    
- keras-tuner               1.0.0          
- numpy                     1.17.4         
- numpy-base                1.17.4     
- python                    3.7.5            
- tensorflow                2.0.0          
- tensorflow-gpu            2.0.0                

Resolving patch:
diff --git a/autokeras/hypermodel/hyperblock.py b/autokeras/hypermodel/hyperblock.py
--- a/autokeras/hypermodel/hyperblock.py
+++ b/autokeras/hypermodel/hyperblock.py
@@ -58,8 +58,7 @@ def build(self, hp, inputs=None):
         if normalize:
             output_node = preprocessor_module.Normalization()(output_node)
         if augment:
-            output_node = preprocessor_module.ImageAugmentation(
-                seed=self.seed)(output_node)
+            output_node = preprocessor_module.ImageAugmentation()(output_node)
         sub_block_name = self.name + '_' + block_type
         if block_type == 'resnet':
             output_node = block_module.ResNetBlock(name=sub_block_name)(output_node)


Test patch: