コード例 #1
0
ファイル: __init__.py プロジェクト: zenghanfu/SMAC3
    raise ValueError("SMAC requires Python 3.5.2 or newer.")

from smac.__version__ import __version__
from smac.utils import dependencies

AUTHORS = "Marius Lindauer, Matthias Feurer, Katharina Eggensperger, " \
          "Aaron Klein, Stefan Falkner and Frank Hutter"

__MANDATORY_PACKAGES__ = '''
numpy>=1.7.1
scipy>=0.18.1
scikit-learn>=0.18.0
pyrfr>=0.5.0
ConfigSpace>=0.4.6,<0.5
emcee>=2.1.0
george
cython
psutil
pyDOE
statsmodels
joblib
sobol_seq
'''

dependencies.verify_packages(__MANDATORY_PACKAGES__)

if os.name != 'posix':
    print(
        'Detected unsupported operating system: %s. Please be aware, that SMAC might not run on this system.'
        % sys.platform)
コード例 #2
0
ファイル: __init__.py プロジェクト: hfurkanbozkurt/SMAC3
import json
import os
import sys

import lazy_import
from smac.utils import dependencies

__version__ = '0.11.0'
__author__ = 'Marius Lindauer, Matthias Feurer, Katharina Eggensperger, Joshua Marben, André Biedenkapp, Aaron Klein, Stefan Falkner and Frank Hutter'

with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fh:
    dependencies.verify_packages(fh.read())

with open(os.path.join(os.path.dirname(__file__),
                       'extras_require.json')) as fh:
    extras_require = json.load(fh)

extras_installed = set()
for name, requirements in extras_require.items():
    if dependencies.are_valid_packages(requirements):
        extras_installed.add(name)
    for requirement in requirements:
        package_name = dependencies.RE_PATTERN.match(requirement).group('name')
        if package_name == 'scikit-optimize':
            package_name = 'skopt'
        lazy_import.lazy_module(package_name)

if sys.version_info < (3, 5, 2):
    raise ValueError("SMAC requires Python 3.5.2 or newer.")

if os.name != 'posix':