49ca8c83ca65a1060713d0295d1d206b43933e3b,autokeras/generator.py,HillClimbingClassifierGenerator,_remove_duplicate,#HillClimbingClassifierGenerator#Any#,89
Before Change
def _remove_duplicate(self,models):
ans = []
for model_a in models:
if len(ans) == 0:
ans.append(model_a)
else:
same = False
After Change
ans = []
for model_a in models:
for model_b in self.history_models:
if compare_network(model_a, model_b):
ans.append(model_a)
break
return ans
def generate(self):
if self.model is None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: keras-team/autokeras
Commit Name: 49ca8c83ca65a1060713d0295d1d206b43933e3b
Time: 2017-12-18
Author: jhfjhfj1@gmail.com
File Name: autokeras/generator.py
Class Name: HillClimbingClassifierGenerator
Method Name: _remove_duplicate
Project Name: uber/ludwig
Commit Name: 64efb3ae8506f853997074afcd451312111f528e
Time: 2020-06-30
Author: w4nderlust@gmail.com
File Name: ludwig/features/audio_feature.py
Class Name: AudioBaseFeature
Method Name: add_feature_data
Project Name: streamlit/streamlit
Commit Name: 7a60bb5289b4ecb59a510f8ca666948c7f4c2e3d
Time: 2019-03-28
Author: thiagot@gmail.com
File Name: lib/streamlit/server.py
Class Name: Server
Method Name: loop_coroutine