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

Method get_effects

crates/openquant/src/fingerprint.rs:57–67  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 pub fn get_effects(&self) -> Result<(&Effect, &Effect, Option<&PairwiseEffect>), String> {
58 let lin = self
59 .linear_effect
60 .as_ref()
61 .ok_or_else(|| "fit must be called before get_effects".to_string())?;
62 let nonlin = self
63 .non_linear_effect
64 .as_ref()
65 .ok_or_else(|| "fit must be called before get_effects".to_string())?;
66 Ok((lin, nonlin, self.pair_wise_effect.as_ref()))
67 }
68
69 pub fn plot_effects(&self) -> Result<Vec<String>, String> {
70 let (lin, nonlin, pair) = self.get_effects()?;

Callers 5

plot_effectsMethod · 0.80
test_linear_effectFunction · 0.80
test_non_linear_effectFunction · 0.80
test_pairwise_effectFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_linear_effectFunction · 0.64
test_non_linear_effectFunction · 0.64
test_pairwise_effectFunction · 0.64