KeyboardInterruptTraceback (most recent call last)
<ipython-input-24-721a860c9529> in <module>()
----> 1 get_ipython().run_cell_magic(u'time', u'', u'from pyspark.ml.regression import GBTRegressor\nalgo = GBTRegressor()\nmodel = algo.fit(dataset=training_data)\n# algo.fit??')
/usr/local/envs/py2env/lib/python2.7/site-packages/datalab/kernel/__init__.pyc in _run_cell_magic(self, magic_name, line, cell)
102 # IPython will complain if cell is empty string but not if it is None
103 cell = None
--> 104 return _orig_run_cell_magic(self, magic_name, line, cell)
105
106 _shell.InteractiveShell.run_cell_magic = _run_cell_magic
/usr/local/envs/py2env/lib/python2.7/site-packages/google/datalab/kernel/__init__.pyc in _run_cell_magic(self, magic_name, line, cell)
90 # IPython will complain if cell is empty string but not if it is None
91 cell = None
---> 92 return _orig_run_cell_magic(self, magic_name, line, cell)
93
94 _shell.InteractiveShell.run_cell_magic = _run_cell_magic
/usr/local/envs/py2env/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)
2115 magic_arg_s = self.var_expand(line, stack_depth)
2116 with self.builtin_trap:
-> 2117 result = fn(magic_arg_s, cell)
2118 return result
2119
<decorator-gen-60> in time(self, line, cell, local_ns)
/usr/local/envs/py2env/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
/usr/local/envs/py2env/lib/python2.7/site-packages/IPython/core/magics/execution.pyc in time(self, line, cell, local_ns)
1191 else:
1192 st = clock2()
-> 1193 exec(code, glob, local_ns)
1194 end = clock2()
1195 out = None
<timed exec> in <module>()
/usr/lib/spark/python/lib/pyspark.zip/pyspark/ml/base.py in fit(self, dataset, params)
62 return self.copy(params)._fit(dataset)
63 else:
---> 64 return self._fit(dataset)
65 else:
66 raise ValueError("Params must be either a param map or a list/tuple of param maps, "
/usr/lib/spark/python/lib/pyspark.zip/pyspark/ml/wrapper.py in _fit(self, dataset)
263
264 def _fit(self, dataset):
--> 265 java_model = self._fit_java(dataset)
266 return self._create_model(java_model)
267
/usr/lib/spark/python/lib/pyspark.zip/pyspark/ml/wrapper.py in _fit_java(self, dataset)
260 """
261 self._transfer_params_to_java()
--> 262 return self._java_obj.fit(dataset._jdf)
263
264 def _fit(self, dataset):
/usr/lib/spark/python/lib/py4j-0.10.4-src.zip/py4j/java_gateway.py in __call__(self, *args)
1129 proto.END_COMMAND_PART
1130
-> 1131 answer = self.gateway_client.send_command(command)
1132 return_value = get_return_value(
1133 answer, self.gateway_client, self.target_id, self.name)
/usr/lib/spark/python/lib/py4j-0.10.4-src.zip/py4j/java_gateway.py in send_command(self, command, retry, binary)
881 connection = self._get_connection()
882 try:
--> 883 response = connection.send_command(command)
884 if binary:
885 return response, self._create_connection_guard(connection)
/usr/lib/spark/python/lib/py4j-0.10.4-src.zip/py4j/java_gateway.py in send_command(self, command)
1026
1027 try:
-> 1028 answer = smart_decode(self.stream.readline()[:-1])
1029 logger.debug("Answer received: {0}".format(answer))
1030 if answer.startswith(proto.RETURN_MESSAGE):
/usr/local/envs/py2env/lib/python2.7/socket.pyc in readline(self, size)
449 while True:
450 try:
--> 451 data = self._sock.recv(self._rbufsize)
452 except error, e:
453 if e.args[0] == EINTR:
KeyboardInterrupt: