1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyScikitOptimize(PythonPackage):
"""Scikit-Optimize, or skopt, is a simple and efficient library to
minimize (very) expensive and noisy black-box functions. It implements
several methods for sequential model-based optimization. skopt aims to
be accessible and easy to use in many contexts.
The library is built on top of NumPy, SciPy and Scikit-Learn."""
homepage = "https://scikit-optimize.github.io"
pypi = "scikit-optimize/scikit-optimize-0.5.2.tar.gz"
git = "https://github.com/scikit-optimize/scikit-optimize.git"
maintainers = ["liuyangzhuan"]
version("master", branch="master")
version("0.5.2", sha256="1d7657a4b8ef9aa6d81e49b369c677c584e83269f11710557741d3b3f8fa0a75")
variant("plots", default=True, description="Build with plot support from py-matplotlib")
variant("gptune", default=False, description="Build with patches for GPTune")
depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run"))
depends_on("py-scipy@0.14.0:", type=("build", "run"))
depends_on("py-scikit-learn@0.19.1:", type=("build", "run"))
depends_on("py-pyyaml", when="+gptune", type=("build", "run"))
depends_on("py-matplotlib", when="+plots")
patch("space.patch", when="+gptune")
|