• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PrincetonUniversity / PsyNeuLink / 27641887821
84%
master: 85%

Build:
Build:
LAST BUILD BRANCH: feat/pec-dask-mle
DEFAULT BRANCH: master
Ran 16 Jun 2026 08:15PM UTC
Jobs 1
Files 167
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jun 2026 07:15PM UTC coverage: 83.999% (-0.004%) from 84.003%
27641887821

push

github

web-flow
feat(pec): allow passing an optuna Study to PECOptimizationFunction (#3559)

## Summary

Adds support for passing an instantiated `optuna.study.Study` object as
the
`method` of `PECOptimizationFunction`, in addition to the existing
options
(`"differential_evolution"`, an optuna sampler instance, or a sampler
class).

Previously the study object was always created under the hood, giving
the user
no opportunity to interact with it. Passing your own study enables
optuna
features that operate on the study directly — e.g.
`study.enqueue_trial(...)`
to "warm start" a sampler with parameter values from a previous fit.

## Usage

```python
study = optuna.create_study(
    sampler=optuna.samplers.RandomSampler(seed=0),
    direction="maximize",  # required for data fitting (MLE)
)
study.enqueue_trial({"param1": value1, "param2": value2})  # optional warm start

optimization_function = PECOptimizationFunction(method=study, max_iterations=10)

11017 of 14384 branches covered (76.59%)

Branch coverage included in aggregate %.

9 of 10 new or added lines in 1 file covered. (90.0%)

2 existing lines in 1 file now uncovered.

37653 of 43557 relevant lines covered (86.45%)

0.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
88.18
0.0% psyneulink/core/components/functions/nonstateful/fitfunctions.py

Coverage Regressions

Lines Coverage ∆ File
2
60.11
-1.12% psyneulink/library/components/mechanisms/processing/objective/comparatormechanism.py
Jobs
ID Job ID Ran Files Coverage
1 27641887821.1 16 Jun 2026 08:16PM UTC 167
84.0
GitHub Action Run
Source Files on build 27641887821
  • Tree
  • List 167
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • d7abf715 on github
  • Prev Build on devel (#27177779689)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc