Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Open-Quant/openquant
/ as_f64
Method
as_f64
crates/openquant/src/hyperparameter_tuning.rs:30–36 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
28
}
29
30
pub fn as_f64(&self) -> Option<f64> {
31
match self {
32
Self::Int(v) => Some(*v as f64),
33
Self::Float(v) => Some(*v),
34
_ => None,
35
}
36
}
37
38
pub fn as_bool(&self) -> Option<bool> {
39
match self {
Callers
8
test_bet_size_probability_defaults
Function · 0.80
test_bet_size_probability_avg_active
Function · 0.80
test_bet_size_probability_stepsize
Function · 0.80
test_bet_size_dynamic
Function · 0.80
test_bet_size_budget
Function · 0.80
test_bet_size_reserve_stub
Function · 0.80
test_against_python_fixture_weights
Function · 0.80
test_bound_and_infeasible_behavior_against_fixture
Function · 0.80
Calls
no outgoing calls
Tested by
8
test_bet_size_probability_defaults
Function · 0.64
test_bet_size_probability_avg_active
Function · 0.64
test_bet_size_probability_stepsize
Function · 0.64
test_bet_size_dynamic
Function · 0.64
test_bet_size_budget
Function · 0.64
test_bet_size_reserve_stub
Function · 0.64
test_against_python_fixture_weights
Function · 0.64
test_bound_and_infeasible_behavior_against_fixture
Function · 0.64