ee3c89053691029f8a039d9921eba0cc39d7483b,autokeras/auto_model.py,AutoModel,fit,#AutoModel#Any#Any#Any#Any#Any#Any#,111

Before Change


            validation_split=validation_split)

        // Initialize the hyper_graph.
        self._meta_build(dataset)

        // Initialize the Tuner.
        // The hypermodel needs input_shape, which can only be known after
        // preprocessing. So we preprocess the dataset once to get the input_shape,
        // so that the hypermodel can be built in the initializer of the Tuner, which
        // does not access the dataset.
        hp = kerastuner.HyperParameters()
        preprocess_graph, keras_graph = self.hyper_graph.build_graphs(hp)
        preprocess_graph.preprocess(
            dataset=dataset,
            validation_data=validation_data,
            fit=True)
        self.tuner = self.tuner(
            hyper_graph=self.hyper_graph,
            hypermodel=keras_graph,
            fit_on_val_data=self._split_dataset,
            overwrite=self.overwrite,

After Change


            validation_split=validation_split)

        // Initialize the hyper_graph.
        hyper_graph = self._meta_build(dataset)

        // Process the args.
        if callbacks is None:
            callbacks = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: ee3c89053691029f8a039d9921eba0cc39d7483b
Time: 2020-01-09
Author: jhfjhfj1@gmail.com
File Name: autokeras/auto_model.py
Class Name: AutoModel
Method Name: fit


Project Name: jhfjhfj1/autokeras
Commit Name: c7c0adb3a5d2c4ad4a8139c61d8f2b698198a111
Time: 2019-12-18
Author: jhfjhfj1@gmail.com
File Name: autokeras/auto_model.py
Class Name: AutoModel
Method Name: fit