Auto-Keras与AutoML:入门指南( 九 )

Auto-Keras包依赖于Python 3.6、TensorFlow和Keras 。

正如Auto-Keras GitHub存储库所述 , Auto-Keras处于“预发布”状态-它现在还不是正式版本 。 其次 , Auto-Keras需要Python 3.6并且只与Python 3.6兼容 。 如果你使用的是3.6以外的任何其他版本的Python , 你将无法使用Auto-Keras软件包 。

如果你想要检查Python版本 , 只需使用以下命令:

python --version

如果你有Python 3.6 , 你可以使用pip安装Auto-Keras:

pip install tensorflow # or tensorflow-gpu

pip install keras

pip install autokeras

使用Auto-Keras实现我们的训练脚本:

让我们继续使用Auto-Keras实现我们的训练脚本 , 打开train_auto_keras.py文件并插入以下代码:

推荐阅读