P S*_*P S 5 python python-3.x jupyter-notebook turi-create
我正在使用它Jupyter notebooks来创建一个ML Model with TuriCreate.
我所遵循的步骤如上所述。
我已经从https://www.kaggle.com/zynicide/wine-reviews下载了 .csv 和 .json (同一文件)
该文件大小为 51 MB。
我已经创建了一个环境turienvFrom Anaconda Navigation,以下步骤非常适合较小的 CSV / JSON 文件。
源激活turienv
pip 安装 turicreate=5.0
木星笔记本
----笔记本里面----
import turicreate as tc
wine_data = tc.SFrame.read_json('winemag-data-130k-v2.json', orient='records')
wine_data.head() <-- I see that everything is loaded properly
wine_model = tc.text_classifier.create(wine_data,'title',features=['description'])
PROGRESS: Creating a validation set from 5 percent of training data. This may take a while.
You can set ``validation_set=None`` to disable validation tracking.
Logistic regression:
--------------------------------------------------------
Number of examples : 123481
Number of classes : 113404
Number of feature columns : 1
Number of unpacked features : 21030
Number of coefficients : 2384978493
Starting L-BFGS
--------------------------------------------------------
+-----------+----------+-----------+--------------+-------------------+---------------------+
| Iteration | Passes | Step size | Elapsed Time | Training Accuracy | Validation Accuracy |
+-----------+----------+-----------+--------------+-------------------+---------------------+
Run Code Online (Sandbox Code Playgroud)
然后大约 3-4 分钟后,我收到错误 msg = 内核似乎已死亡。
有人可以帮忙吗?我是 Python 新手,Jupyter 是我使用过的唯一环境。如果有其他环境,我可以在一些指导下运行相同的操作,以获得可以调试的更可靠的错误消息,请告诉我。
编辑:我在 2018 MacBook Pro 16GB 512GB 上运行上述内容。我在活动监视器上看到 python 内存达到 130GB,CPU 83%
提前致谢
| 归档时间: |
|
| 查看次数: |
1017 次 |
| 最近记录: |