You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many operators in lale.lib.sklearn have similar schemas for fit, predict, transform, predict_proba, etc. Similarly, there are some hyperparameters that occur in many of the operators in lale.lib.sklearn, such as random_state, n_jobs, etc. We could make our code base smaller and easier to maintain by defining such schemas only once in a file imported by each of the operators, and then plugging them in at the right place.
We already do something like that for lale.lib.aif360:
Many operators in
lale.lib.sklearn
have similar schemas forfit
,predict
,transform
,predict_proba
, etc. Similarly, there are some hyperparameters that occur in many of the operators inlale.lib.sklearn
, such asrandom_state
,n_jobs
, etc. We could make our code base smaller and easier to maintain by defining such schemas only once in a file imported by each of the operators, and then plugging them in at the right place.We already do something like that for
lale.lib.aif360
:fit
andpredict
:lale/lale/lib/aif360/disparate_impact_remover.py
Lines 120 to 122 in 1f03397
lale/lale/lib/aif360/disparate_impact_remover.py
Line 131 in 1f03397
lale/lale/lib/aif360/disparate_impact_remover.py
Line 138 in 1f03397
The text was updated successfully, but these errors were encountered: