colab运行时终止,自动重新启动

时间:2018-09-28 01:00:57

标签: python google-colaboratory kaggle

当我尝试在Colab进行Adaboosting竞赛时,该项目在https://www.kaggle.com/c/competitive-data-science-predict-future-sales,它肯定会“运行时终止,自动重启”。 然后,我用Google搜索了一些答案,一种方法是说“您可以在进行计算之前输入'!/opt/bin/nvidia-smi',然后进行计算。  是:

Fri Sep 28 00:48:45 2018       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.111                Driver Version: 384.111                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla K80           Off  | 00000000:00:04.0 Off |                    0 |
| N/A   36C    P8    33W / 149W |      0MiB / 11439MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                              

因此,我确保拥有所有内存,但是无论我如何运行代码:

adb_reg = AdaBoostRegressor(base_estimator=None, n_estimators=20, learning_rate=1.0, loss='linear', random_state=None)
adb_reg.fit(df[predictors],np.ravel(df[response]), sample_weight=None)  

我将得到“运行时已死...”。在“享受”这种失败之后;我可以说Colab只是一个玩具,我需要找到另一种方法来进行kaggle项目吗?有什么建议吗?

0 个答案:

没有答案