@@ -4039,6 +4039,7 @@ def analyze(
4039
4039
targeted_model : t .Optional [TargetedModel ] = None ,
4040
4040
use_case_weights : t .Optional [bool ] = None ,
4041
4041
use_deviations : t .Optional [bool ] = None ,
4042
+ use_sdm : t .Optional [bool ] = None ,
4042
4043
weight_feature : t .Optional [str ] = None ,
4043
4044
** kwargs
4044
4045
):
@@ -4101,6 +4102,14 @@ def analyze(
4101
4102
will be used if the Trainee has them.
4102
4103
use_deviations : bool, optional
4103
4104
When True, uses deviations for LK metric in queries.
4105
+ use_sdm : bool, default None,
4106
+ When True, Howso Engine will compute and use a sparse deviation
4107
+ matrix (SDM) for each nominal feature in all similarity queries.
4108
+ Enabling SDM will typically incur a small to moderate penalty on
4109
+ speed when using nominal features in inference in exchange for
4110
+ yielding higher quality inference. The magnitude of the changes are
4111
+ dependent on relationships among the data and the task at hand.
4112
+ Howso Engine will default to True, if left unset.
4104
4113
weight_feature : str, optional
4105
4114
Name of feature whose values to use as case weights.
4106
4115
When left unspecified uses the internally managed case weight.
@@ -4165,6 +4174,7 @@ def analyze(
4165
4174
rebalance_features = rebalance_features ,
4166
4175
targeted_model = targeted_model ,
4167
4176
use_deviations = use_deviations ,
4177
+ use_sdm = use_sdm ,
4168
4178
weight_feature = weight_feature ,
4169
4179
)
4170
4180
@@ -4235,6 +4245,7 @@ def set_auto_analyze_params(
4235
4245
targeted_model : t .Optional [TargetedModel ] = None ,
4236
4246
use_deviations : t .Optional [bool ] = None ,
4237
4247
use_case_weights : t .Optional [bool ] = None ,
4248
+ use_sdm : t .Optional [bool ] = None ,
4238
4249
weight_feature : t .Optional [str ] = None ,
4239
4250
** kwargs
4240
4251
):
@@ -4307,6 +4318,14 @@ def set_auto_analyze_params(
4307
4318
If set to True, will scale influence weights by each case's
4308
4319
`weight_feature` weight. If unspecified, case weights
4309
4320
will be used if the Trainee has them.
4321
+ use_sdm : bool, default None,
4322
+ When True, Howso Engine will compute and use a sparse deviation
4323
+ matrix (SDM) for each nominal feature in all similarity queries.
4324
+ Enabling SDM will typically incur a small to moderate penalty on
4325
+ speed when using nominal features in inference in exchange for
4326
+ yielding higher quality inference. The magnitude of the changes are
4327
+ dependent on relationships among the data and the task at hand.
4328
+ Howso Engine will default to True, if left unset.
4310
4329
weight_feature : str
4311
4330
Name of feature whose values to use as case weights.
4312
4331
When left unspecified uses the internally managed case weight.
@@ -4395,6 +4414,7 @@ def set_auto_analyze_params(
4395
4414
"use_deviations" : use_deviations ,
4396
4415
"inverse_residuals_as_weights" : inverse_residuals_as_weights ,
4397
4416
"use_case_weights" : use_case_weights ,
4417
+ "use_sdm" : use_sdm ,
4398
4418
"weight_feature" : weight_feature ,
4399
4419
** kwargs ,
4400
4420
})
0 commit comments