File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,24 @@ impl PyNutsSettings {
320
320
}
321
321
}
322
322
323
+ #[ getter]
324
+ fn mindepth ( & self ) -> u64 {
325
+ match & self . inner {
326
+ Settings :: Diag ( nuts_settings) => nuts_settings. mindepth ,
327
+ Settings :: LowRank ( nuts_settings) => nuts_settings. mindepth ,
328
+ Settings :: Transforming ( nuts_settings) => nuts_settings. mindepth ,
329
+ }
330
+ }
331
+
332
+ #[ setter( maxdepth) ]
333
+ fn set_mindepth ( & mut self , val : u64 ) {
334
+ match & mut self . inner {
335
+ Settings :: Diag ( nuts_settings) => nuts_settings. mindepth = val,
336
+ Settings :: LowRank ( nuts_settings) => nuts_settings. mindepth = val,
337
+ Settings :: Transforming ( nuts_settings) => nuts_settings. mindepth = val,
338
+ }
339
+ }
340
+
323
341
#[ getter]
324
342
fn store_gradient ( & self ) -> bool {
325
343
match & self . inner {
You can’t perform that action at this time.
0 commit comments