Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blackrock/HOLA
/ functions
Functions
1,098 in github.com/blackrock/HOLA
⨍
Functions
1,098
◇
Types & classes
115
↳
Endpoints
1
↓ 262 callers
Method
push
Append a new trial. Returns the assigned trial ID. This is an O(1) operation - no sorting is performed.
opt_engine/src/leaderboard.rs:333
↓ 125 callers
Method
iter
Iterator over all trials in insertion order.
opt_engine/src/leaderboard.rs:465
↓ 112 callers
Method
clone
(&self)
hola/src/hola_engine.rs:480
↓ 90 callers
Method
ask
Ask for the next trial to evaluate. Returns an error if `max_trials` has been reached.
hola/src/hola_engine.rs:1835
↓ 74 callers
Method
ask
Request the next trial to evaluate.
hola-py/src/lib.rs:671
↓ 68 callers
Method
len
(&self)
opt_engine/src/leaderboard.rs:418
↓ 65 callers
Method
get
Get a trial by its ID. O(1): backed by an internal `trial_id -> index` map kept in sync with `trials` on every push, eviction, and after deserializat
opt_engine/src/leaderboard.rs:452
↓ 64 callers
Method
tell
Tell the engine the result of a trial, returning the scored and ranked trial.
hola/src/hola_engine.rs:1879
↓ 56 callers
Method
tell
Report the result of a trial. Returns the scored and ranked CompletedTrial.
hola-py/src/lib.rs:728
↓ 46 callers
Function
json_request
( app: axum::Router, method: &str, uri: &str, body: Option<serde_json::Value>, )
hola/tests/integration/server.rs:122
↓ 44 callers
Method
run
( slf: Py<Self>, py: Python<'_>, func: &Bound<'_, PyAny>, n_trials: usize,
hola-py/src/lib.rs:1082
↓ 40 callers
Function
http_json
Make an HTTP request and return (status_code, json_body). Uses urllib only — no extra dependencies.
hola-py/tests/conftest.py:168
↓ 36 callers
Method
is_empty
(&self)
opt_engine/src/leaderboard.rs:422
↓ 36 callers
Method
top_k
(&self, py: Python<'_>, k: usize, include_infeasible: bool)
hola-py/src/lib.rs:860
↓ 34 callers
Method
trial_count
Number of completed trials.
hola-py/src/lib.rs:978
↓ 28 callers
Method
clone
(&self)
opt_engine/src/strategies/gmm.rs:783
↓ 24 callers
Function
minimal_config
()
hola/tests/integration/server.rs:28
↓ 23 callers
Method
len
(&self)
hola/src/hola_engine.rs:1082
↓ 22 callers
Method
read
(&mut self, buf: &mut [u8])
hola-cli/src/main.rs:538
↓ 19 callers
Function
create_router
Create the Axum router for the engine server. Returns an error if any configured CORS origin is not a valid HTTP header value.
hola/src/server.rs:602
↓ 19 callers
Function
single_objective_config
(strategy_type: &str)
hola/src/hola_engine.rs:3147
↓ 15 callers
Method
suggest
(&self, space: &Self::Space)
opt_engine/src/strategies/sobol.rs:157
↓ 15 callers
Method
top_k
Get the top-k trials by rank.
hola/src/hola_engine.rs:2014
↓ 14 callers
Method
as_str
(self)
hola/src/hola_engine.rs:969
↓ 13 callers
Function
_register
(p: SingleObjectiveProblem)
hola-py/benchmarks/problems/single_objective.py:32
↓ 13 callers
Method
add_real
(mut self, name: &str, min: f64, max: f64)
hola/src/hola_engine.rs:270
↓ 13 callers
Method
connect
(url: &str, token: Option<String>)
hola-py/src/lib.rs:618
↓ 13 callers
Function
dominates
(a, b)
dashboard/app.js:367
↓ 12 callers
Function
check
(cond, msg)
dashboard/tests/xss_dom.test.mjs:43
↓ 12 callers
Function
create_router_with_options
Create the Axum router for the engine server with explicit server options. Returns an error if any configured CORS origin is not a valid HTTP header
hola/src/server.rs:610
↓ 12 callers
Method
load
Load a full checkpoint, restoring both leaderboard and strategy state. This is the stable persistence API. Use `save` / `load` for checkpointing.
hola/src/hola_engine.rs:2183
↓ 12 callers
Method
pareto_front
Compute the Pareto front (non-dominated feasible trials). Infeasible trials (those with any infinite objective) are excluded. Use `pareto_front_all()
opt_engine/src/leaderboard.rs:804
↓ 12 callers
Method
update_objectives
Update objectives and re-scalarize (for mid-run dashboard adjustments). Persists the new objectives so that subsequent `tell()` calls use the updated
hola/src/hola_engine.rs:2126
↓ 12 callers
Function
valid_config_for_validation
()
hola/tests/integration/hola_engine.rs:93
↓ 11 callers
Function
assert_config_error
(config: StudyConfig, expected: &[&str])
hola/tests/integration/hola_engine.rs:125
↓ 11 callers
Method
pareto_front
( &self, py: Python<'_>, front: usize, include_infeasible: bool, )
hola-py/src/lib.rs:895
↓ 11 callers
Function
write_yaml_config
Write a YAML config file and return the path. Uses simple string formatting to avoid pyyaml dependency.
hola-py/tests/conftest.py:103
↓ 10 callers
Function
check_format_version_bytes
Cheaply validate the recorded format version from raw checkpoint bytes. On-disk checkpoints come in three shapes, two of which carry `metadata` at th
opt_engine/src/persistence.rs:332
↓ 10 callers
Method
top_k
Return the k trials with the lowest (best) observations. Infeasible trials (those with infinite observations) are excluded. Use `top_k_all()` to incl
opt_engine/src/leaderboard.rs:549
↓ 9 callers
Function
apiFetch
(url, options = {})
dashboard/app.js:68
↓ 9 callers
Method
from_unit_cube
(&self, vec: &[f64])
opt_engine/src/spaces/combinators.rs:61
↓ 9 callers
Method
suggest
(&self, space: &Self::Space)
opt_engine/src/strategies/gmm.rs:802
↓ 8 callers
Function
_register
(p: MultiObjectiveProblem)
hola-py/benchmarks/problems/multi_objective.py:29
↓ 8 callers
Function
_wait_for_server
Poll GET /api/space until the server is ready.
hola-py/tests/conftest.py:198
↓ 8 callers
Method
add_integer
(mut self, name: &str, min: i64, max: i64)
hola/src/hola_engine.rs:300
↓ 8 callers
Function
authorize_read
Read endpoints and the SSE stream require the token only when the server was started with read authentication enabled (`require_read_auth`).
hola/src/server.rs:230
↓ 8 callers
Method
non_dominated_sort
Perform NSGA-II non-dominated sorting on feasible trials. Returns trials grouped by rank (front). `fronts[0]` is the Pareto front (rank 1), `fronts[1
opt_engine/src/leaderboard.rs:1057
↓ 8 callers
Method
save_full_checkpoint
Save a full checkpoint (leaderboard + strategy state + config). The saved JSON has the format: ```json { "config": { ...StudyConfig... }, "checkpoint
hola/src/hola_engine.rs:2338
↓ 8 callers
Method
suggest
(&self, space: &Self::Space)
opt_engine/src/strategies/random.rs:108
↓ 8 callers
Method
trials
( &self, py: Python<'_>, sorted_by: &str, include_infeasible: bool, )
hola-py/src/lib.rs:936
↓ 8 callers
Method
trials
Get all trials with scoring and ranking.
hola/src/hola_engine.rs:2051
↓ 7 callers
Function
_find_free_port
()
hola-py/tests/test_cli.py:31
↓ 7 callers
Function
_unit_bounds
(n: int)
hola-py/benchmarks/problems/multi_objective.py:22
↓ 7 callers
Function
clearElement
(el)
dashboard/app.js:75
↓ 7 callers
Method
dimensionality
(&self)
opt_engine/src/spaces/combinators.rs:51
↓ 7 callers
Method
inverse
(&self, x: f64)
opt_engine/src/scales.rs:61
↓ 7 callers
Function
minMax
(arr)
dashboard/app.js:82
↓ 7 callers
Function
renderAll
()
dashboard/app.js:463
↓ 7 callers
Function
scalarize_raw
Collapse multi-field raw metrics into a single scalar cost F(x). Implements the paper's formula: F(x) = Σ φ_i(f_i(x)) where φ_i(u) = P_i × (u − T_i)/
hola/src/hola_engine.rs:2532
↓ 7 callers
Method
to_unit_cube
(&self, point: &f64)
opt_engine/src/spaces/continuous.rs:78
↓ 7 callers
Method
to_unit_cube
(&self, point: &Self::Domain)
opt_engine/src/spaces/combinators.rs:55
↓ 6 callers
Function
atomic_write_json
Write JSON to a file atomically: write to a unique temp file, fsync, rename, then fsync the parent directory. Prevents data loss if the process crashe
opt_engine/src/persistence.rs:444
↓ 6 callers
Method
cancel
Cancel a pending trial.
hola/src/hola_engine.rs:2001
↓ 6 callers
Function
json_to_py
(py: Python<'_>, val: &serde_json::Value)
hola-py/src/lib.rs:1287
↓ 6 callers
Method
load_full_checkpoint
Load a full checkpoint, restoring both leaderboard and strategy state. Handles both the new format (with `"config"` + `"checkpoint"` wrapper) and the
hola/src/hola_engine.rs:2401
↓ 6 callers
Method
load_leaderboard_checkpoint
Load a leaderboard-only checkpoint, replacing the current trial history. The strategy is not restored; call with `refit()` afterward if using GMM.
hola/src/hola_engine.rs:2252
↓ 6 callers
Function
normalize_server_url
Validate and normalize a server base URL. Requires an http/https scheme and a host, and strips any trailing slash so that paths joined as "{server}/a
hola-cli/src/main.rs:116
↓ 6 callers
Method
sample_clamped
Sample from the GMM, clamped to [0, 1]^n. Non-finite drawn values (NaN/inf) are replaced with the cube center (0.5) before clamping, since `f64::clam
opt_engine/src/strategies/gmm.rs:366
↓ 6 callers
Function
with_bearer_auth
( request: reqwest::RequestBuilder, token: Option<&str>, )
hola-cli/src/main.rs:140
↓ 6 callers
Method
with_max_size
Set an optional maximum number of stored trials (builder form). `None` (the default) leaves the leaderboard unbounded. `Some(0)` is normalized to unb
opt_engine/src/leaderboard.rs:213
↓ 5 callers
Function
_assert_same_params
(actual, expected)
hola-py/tests/test_study_advanced.py:283
↓ 5 callers
Function
_completed_trial
Run a single ask/tell and return the CompletedTrial for `metrics`.
hola-py/tests/test_ffi_roundtrip.py:29
↓ 5 callers
Function
_extract_vec
(p: dict[str, float])
hola-py/benchmarks/functions/zdt.py:28
↓ 5 callers
Function
_extract_vec
Extract ordered vector from dict with keys x0, x1, ... or x, x1, x2, ...
hola-py/benchmarks/functions/single_objective.py:27
↓ 5 callers
Method
add_categorical
(mut self, name: &str, choices: Vec<String>)
hola/src/hola_engine.rs:310
↓ 5 callers
Function
authorize_mutation
Mutating endpoints always require the token when one is configured.
hola/src/server.rs:221
↓ 5 callers
Function
auto_strategy_test_config
(exploration_budget: usize, seed: u64)
hola/tests/integration/hola_engine.rs:1789
↓ 5 callers
Method
clear
(&mut self)
opt_engine/src/leaderboard.rs:473
↓ 5 callers
Function
count_priority_groups
Count the number of distinct priority groups in the objectives.
hola/src/hola_engine.rs:1566
↓ 5 callers
Function
decide_exec_outcome
Decide what to do with a finished exec-mode command, independent of any network I/O so the decision can be unit-tested directly. A zero exit with val
hola-cli/src/main.rs:222
↓ 5 callers
Method
dim
(&self)
opt_engine/src/strategies/gmm.rs:152
↓ 5 callers
Method
dimensionality
(&self)
hola/src/hola_engine.rs:94
↓ 5 callers
Method
feasible_trials
Return only feasible trials (those with finite observations).
opt_engine/src/leaderboard.rs:528
↓ 5 callers
Function
fmtCell
(v)
dashboard/app.js:1109
↓ 5 callers
Method
from_unit_cube
(&self, vec: &[f64])
opt_engine/src/spaces/continuous.rs:102
↓ 5 callers
Function
json_request_with_headers
( app: axum::Router, method: &str, uri: &str, body: Option<serde_json::Value>, headers: &[
hola/tests/integration/server.rs:131
↓ 5 callers
Method
last
(&self)
opt_engine/src/leaderboard.rs:469
↓ 5 callers
Method
load
(path: &str)
hola-py/src/lib.rs:657
↓ 5 callers
Method
objectives
Get the current objectives configuration.
hola/src/hola_engine.rs:2109
↓ 5 callers
Method
quantile_threshold
Compute the quantile threshold for feasible observations. `quantile` should be in [0, 1]. Returns the observation value at that quantile. E.g., `quan
opt_engine/src/leaderboard.rs:660
↓ 5 callers
Function
read_capped_reader
Read at most `limit` bytes from a reader, erroring if the source yields more. The reader is bounded to `limit + 1` so reaching the extra byte signals
opt_engine/src/persistence.rs:379
↓ 5 callers
Function
read_checkpoint_capped
Read a checkpoint file into memory with a byte-size cap. Rejects files whose reported length exceeds [`MAX_CHECKPOINT_BYTES`] before reading them, an
opt_engine/src/persistence.rs:307
↓ 5 callers
Method
save_leaderboard_checkpoint_to
Save a leaderboard-only checkpoint (trial history, no strategy state). Uses atomic writes (write-to-temp + fsync + rename) to prevent data loss.
hola/src/hola_engine.rs:2228
↓ 5 callers
Function
setDot
(state)
dashboard/app.js:455
↓ 5 callers
Method
set_params
Update the GMM parameters.
opt_engine/src/strategies/gmm.rs:756
↓ 5 callers
Method
store_trial
Append a trial record, updating the id index and enforcing `max_size`. Index update is O(1); eviction (only when a cap is set and exceeded) removes o
opt_engine/src/leaderboard.rs:293
↓ 5 callers
Method
suggest
(&self, space: &DynSpace)
hola/src/hola_engine.rs:544
↓ 5 callers
Method
to_json
(&self)
opt_engine/src/persistence.rs:190
↓ 5 callers
Function
vectorize_raw
Compute per-group cost vector C(x) from raw metrics. Groups objectives by their explicit group label. Within each group, the group cost is: C_g(x) =
hola/src/hola_engine.rs:2554
↓ 4 callers
Function
_extract_vec
(p: dict[str, float])
hola-py/benchmarks/functions/dtlz.py:28
next →
1–100 of 1,098, ranked by callers