1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Comboことはじめ

Posted at

Comboの概要

ベイズ最適化ライブラリ
tsudalab/combo: COMmon Bayesian Optimization

インストール

README.mdにある通り

git clone https://github.com/tsudalab/combo.git
cd combo
python setup.py install

でインストールできる。

トラブルシューティング

import comboのときにImportError: No module named enhance_gaussなるエラーが出る

例えば以下のエラーが出た時。

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "combo/__init__.py", line 1, in <module>
    import gp
  File "combo/gp/__init__.py", line 1, in <module>
    import cov
  File "combo/gp/cov/__init__.py", line 1, in <module>
    from gauss import gauss
  File "combo/gp/cov/gauss.py", line 5, in <module>
    from _src.enhance_gauss import grad_width64
ImportError: No module named enhance_gauss

comboをgit clone したディレクトリでpythonを立ち上げてimport comboすると、このエラーが出る。
他のディレクトリに移って試して見て問題がなければOK。

import comboのときにImportError: No module named sixなるエラーが出る

README.mdでは、numpy, scipy, Cythonが要求ライブラリとして記載されているが、実はsixも必要。
sixが無いときは、importした時にその旨エラーが出るのでpip install sixで解決する。

1
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?