-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 0.10.0
- Loading branch information
Showing
16 changed files
with
470 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
[metadata] | ||
description-file = README.md | ||
name = smac | ||
author_email = "[email protected]" | ||
description = SMAC3, a Python implementation of 'Sequential Model-based Algorithm Configuration'. | ||
long_description = file: README.md, CHANGELOG.md, LICENSE | ||
license = 3-clause BSD | ||
keywords = machine learning, algorithm configuration, hyperparameter optimization, tuning | ||
classifiers= | ||
Development Status :: 3 - Alpha | ||
Topic :: Utilities | ||
Topic :: Scientific/Engineering | ||
Topic :: Scientific/Engineering :: Artificial Intelligence | ||
License :: OSI Approved :: BSD License | ||
platforms = Linux | ||
|
||
[options] | ||
packages = find: | ||
|
||
[options.packages.find] | ||
exclude = test | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
smac = smac.smac_cli:cmd_line_call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,37 @@ | ||
import setuptools | ||
import sys | ||
|
||
import smac | ||
#!/usr/bin/env python3 | ||
import os | ||
from setuptools import setup | ||
|
||
|
||
with open('requirements.txt') as fh: | ||
requirements = fh.read() | ||
requirements = requirements.split('\n') | ||
requirements = [requirement.strip() for requirement in requirements] | ||
|
||
with open("smac/__version__.py") as fh: | ||
version = fh.readlines()[-1].split()[-1].strip("\"'") | ||
|
||
if sys.version_info < (3, 5, 2): | ||
raise ValueError('Unsupported Python version %s found. SMAC3 requires Python 3.5.2 or higher.' % sys.version_info) | ||
|
||
setuptools.setup( | ||
name="smac", | ||
version=version, | ||
author=smac.AUTHORS, | ||
author_email="[email protected]", | ||
description=("SMAC3, a Python implementation of 'Sequential Model-based " | ||
"Algorithm Configuration'."), | ||
license="3-clause BSD", | ||
keywords="machine learning algorithm configuration hyperparameter " | ||
"optimization tuning", | ||
url="", | ||
entry_points={ | ||
'console_scripts': ['smac=smac.smac_cli:cmd_line_call'], | ||
}, | ||
packages=setuptools.find_packages(exclude=['test', 'source']), | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Topic :: Utilities", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"License :: OSI Approved :: BSD License", | ||
], | ||
platforms=['Linux'], | ||
|
||
def get_version(): | ||
version_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "smac", "__init__.py") | ||
for line in open(version_file): | ||
if line.startswith("__version__"): | ||
version = line.split("=")[1].strip().replace("'", "").replace('"', '') | ||
return version | ||
raise RuntimeError("Unable to find version string in %s" % version_file) | ||
|
||
|
||
def get_author(): | ||
version_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "smac", "__init__.py") | ||
for line in open(version_file): | ||
if line.startswith("__author__"): | ||
version = line.split("=")[1].strip().replace("'", "").replace('"', '') | ||
return version | ||
raise RuntimeError("Unable to find author string in %s" % version_file) | ||
|
||
|
||
setup( | ||
python_requires=">=3.5.2", | ||
install_requires=requirements, | ||
python_requires='>=3.5.2', | ||
tests_require=['mock', | ||
'nose'], | ||
test_suite='nose.collector' | ||
author=get_author(), | ||
version=get_version(), | ||
test_suite="nose.collector", | ||
tests_require=["mock", "nose"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from functools import partial | ||
|
||
from ConfigSpace import ConfigurationSpace, Configuration, CategoricalHyperparameter | ||
from ConfigSpace import ConfigurationSpace, Configuration, Constant,\ | ||
CategoricalHyperparameter, UniformFloatHyperparameter, \ | ||
UniformIntegerHyperparameter, InCondition | ||
from ConfigSpace.read_and_write import pcs, pcs_new, json | ||
from ConfigSpace.util import get_one_exchange_neighbourhood | ||
from smac.configspace.util import convert_configurations_to_array | ||
|
||
get_one_exchange_neighbourhood = partial(get_one_exchange_neighbourhood, stdev=0.05, num_neighbors=8) | ||
get_one_exchange_neighbourhood = partial(get_one_exchange_neighbourhood, stdev=0.05, num_neighbors=8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.