安装说明

hyperopt安装说明 Font Tian translated this article on 23 December 2017

有关MongoDB的部分

Hyperopt要求mongodb(有时候简称“mongo”)来执行并行搜索。据我所知,hyperopt与2.xx系列中的所有版本兼容,这是目前的(在这里下载最新版本)。它甚至可能与mongodb的所有版本兼容,我不知道mongo的任何特定的版本要求。

在linux和OSX上,一旦你下载了mongodb并解压,只需将它链接到bin/你的virtualenv 的子目录中,然后安装完成。

  1. # from the root of your virtualenv
  2. # (or basically any folder with an active bin/ subdirectory)
  3. (cd bin && { for F in ../mongodb-linux-x86_64-2.2.2/bin/* ; do echo "linking $F" ; ln -s $F ; done } )

通过运行完整的单元测试套件或者只是mongo文件来验证hyperopt是否可以使用mongodb

  1. # cd to the hyperopt project root
  2. nosetests hyperopt/tests/test_mongoexp.py