MCPcopy Create free account
hub / github.com/Open-Quant/openquant / predict_proba

Method predict_proba

crates/openquant/tests/cross_validation.rs:97–100  ·  view source on GitHub ↗
(&self, x: &[Vec<f64>])

Source from the content-addressed store, hash-verified

95 self.prob = if w_sum > 0.0 { pos_sum / w_sum } else { 0.5 };
96 }
97
98 fn predict_proba(&self, x: &[Vec<f64>]) -> Vec<f64> {
99 let _ = x;
100 vec![self.prob; x.len()]
101 }
102}
103

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected