Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
adaptive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Quantum Tinkerer
adaptive
Merge requests
!122
implement 'npoints' strategy for the 'BalancingLearner'
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
implement 'npoints' strategy for the 'BalancingLearner'
balancing_learner_points
into
master
Overview
1
Commits
3
Pipelines
7
Changes
1
Merged
Bas Nijholt
requested to merge
balancing_learner_points
into
master
6 years ago
Overview
1
Commits
3
Pipelines
7
Changes
1
Expand
Title is obvious.
1
0
Merge request reports
Compare
version 2
version 7
47d4e1d0
6 years ago
version 6
f6fb5f5b
6 years ago
version 5
c17d6bc1
6 years ago
version 4
c17d6bc1
6 years ago
version 3
f78f7462
6 years ago
version 2
0ef506d6
6 years ago
version 1
06ec5082
6 years ago
master (base)
and
version 3
latest version
197b56fe
3 commits,
6 years ago
version 7
47d4e1d0
2 commits,
6 years ago
version 6
f6fb5f5b
1 commit,
6 years ago
version 5
c17d6bc1
2 commits,
6 years ago
version 4
c17d6bc1
1 commit,
6 years ago
version 3
f78f7462
1 commit,
6 years ago
version 2
0ef506d6
1 commit,
6 years ago
version 1
06ec5082
1 commit,
6 years ago
Show latest version
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
adaptive/learner/skopt_learner.py
+
4
−
2
Options
@@ -24,15 +24,17 @@ class SKOptLearner(Optimizer, BaseLearner):
def
__init__
(
self
,
function
,
**
kwargs
):
self
.
function
=
function
self
.
pending_points
=
set
()
super
().
__init__
(
**
kwargs
)
def
tell
(
self
,
x
,
y
,
fit
=
True
):
def
tell
(
self
,
x
,
y
,
fit
=
True
):
self
.
pending_points
.
dicard
(
x
)
super
().
tell
([
x
],
y
,
fit
)
def
tell_pending
(
self
,
x
):
# 'skopt.Optimizer' takes care of points we
# have not got results for.
pass
self
.
pending_points
.
add
(
x
)
def
remove_unfinished
(
self
):
pass
Loading