Traceback (most recent call last):


 "/anaconda/envs/azureml_py36/lib/python3.6/site-packages/py4j/java_gateway.py", line 929, in _get_connection

connection = self.deque.pop()
IndexError: pop from an empty deque

Traceback (most recent call last):

 "<stdin>", line 1, in <module>

 "/usr/lib64/python3.4/site-packages/keras/engine/topology.py", line 2391, in to_yaml
return yaml.dump(model_config, **kwargs)

 "/usr/lib64/python3.4/site-packages/yaml/__init__.py", line 200, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)

 "/usr/lib64/python3.4/site-packages/yaml/__init__.py", line 188, in dump_all
dumper.represent(data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 26, in represent
node = self.represent_data(data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 203, in represent_dict
return self.represent_mapping('tag:yaml.org,2002:map', data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 116, in represent_mapping
node_value = self.represent_data(item_value)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 195, in represent_list
return self.represent_sequence('tag:yaml.org,2002:seq', data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 91, in represent_sequence
node_item = self.represent_data(item)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 203, in represent_dict
return self.represent_mapping('tag:yaml.org,2002:map', data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 116, in represent_mapping
node_value = self.represent_data(item_value)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 203, in represent_dict
return self.represent_mapping('tag:yaml.org,2002:map', data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 116, in represent_mapping
node_value = self.represent_data(item_value)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 203, in represent_dict
return self.represent_mapping('tag:yaml.org,2002:map', data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 116, in represent_mapping
node_value = self.represent_data(item_value)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 51, in represent_data
node = self.yaml_multi_representers[data_type](self, data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 352, in represent_object
return self.represent_mapping(tag+function_name, value)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 116, in represent_mapping
node_value = self.represent_data(item_value)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 47, in represent_data
node = self.yaml_representers[data_types[0]](self, data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 282, in represent_tuple
return self.represent_sequence('tag:yaml.org,2002:python/tuple', data)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 91, in represent_sequence
node_item = self.represent_data(item)

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 33, in represent_data
if self.ignore_aliases(data):

 "/usr/lib64/python3.4/site-packages/yaml/representer.py", line 135, in ignore_aliases
if data in [None, ()]:TypeError: data type not understood