def network(self, borrow=False):
if self._network is None and self.network_json is not None:<EOL><INDENT>self.load_weights()<EOL>if borrow:<EOL><INDENT>return self.borrow_cached_network(<EOL>self.network_json,<EOL>self.network_weights)<EOL><DEDENT>else:<EOL><INDENT>import keras.models<EOL>self._network = keras.models.model_from_json(self.network_json)<EOL>if self.network_weights is not None:<EOL><INDENT>self._network.set_weights(self.network_weights)<EOL><DEDENT>self.network_json = None<EOL>self.network_weights = None<EOL><DEDENT><DEDENT>return self._network<EOL>
Return the keras model associated with this predictor.

Parameters
----------
borrow : bool
    Whether to return a cached model if possible. See
    borrow_cached_network for details

Returns
-------
keras.models.Model