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

Function test_plot_effects

crates/openquant/tests/fingerprint.rs:136–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135#[test]
136fn test_plot_effects() {
137 let x = synthetic_x(100, 13);
138 let mut fp = RegressionModelFingerprint::new();
139 fp.fit(&NonLinearRegModel, &x, 20, None).unwrap();
140 let lines = fp.plot_effects().unwrap();
141 assert!(!lines.is_empty());
142
143 fp.fit(&NonLinearRegModel, &x, 20, Some(&[(1, 2), (3, 5)])).unwrap();
144 let lines_pair = fp.plot_effects().unwrap();
145 assert!(lines_pair.iter().any(|s| s.contains("pairwise")));
146}

Callers

nothing calls this directly

Calls 3

synthetic_xFunction · 0.85
plot_effectsMethod · 0.80
fitMethod · 0.45

Tested by

no test coverage detected