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
The sklearn implementation has many parameters that you can tune, for example max_iter or activation. However, all these parameters are hardcoded in SDMetrics right now without an API to change them.
Expected behavior
I would expect the ability to change the parameters of the underlying sklearn model. Exact API may vary but one possibility is just to provide a dictionary:
In the meantime, a workaround is to access the hardcoded parameters from the class, and modify them.
fromsdmetrics.single_tableimportMulticlassMLPClassifier# hardcode the parameters in the class itselfMulticlassMLPClassifier.MODEL_KWARGS= { 'max_iter': 500, 'activation': 'identity' }
# use the class to compute a scoreMulticlassMLPClassifier.compute(
test_data=real_data,
train_data=synthetic_data,
target='categorical_column_name',
metadata=metadata
)
The text was updated successfully, but these errors were encountered:
Filed from a conversation on the public, SDV Slack. This is a lower priority feature request.
Problem Description
The single table ML Efficacy metrics make use of different ML algorithms from sklearn. For example, the
MulticlassMLPClassifier
uses this implementation under-the-hood.The sklearn implementation has many parameters that you can tune, for example
max_iter
oractivation
. However, all these parameters are hardcoded inSDMetrics
right now without an API to change them.Expected behavior
I would expect the ability to change the parameters of the underlying sklearn model. Exact API may vary but one possibility is just to provide a dictionary:
Workaround
In the meantime, a workaround is to access the hardcoded parameters from the class, and modify them.
The text was updated successfully, but these errors were encountered: