mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-04-28 22:36:22 +02:00
enhance calculation of nb classes + tests (#45)
* update get_nb_classes method to handle 1-hot and scalar input
This commit is contained in:
parent
50317a8d67
commit
e25e58b253
4 changed files with 62 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from apt.utils.models.model import Model, BlackboxClassifier, ModelOutputType, ScoringMethod, \
|
||||
BlackboxClassifierPredictions, BlackboxClassifierPredictFunction
|
||||
BlackboxClassifierPredictions, BlackboxClassifierPredictFunction, get_nb_classes, is_one_hot
|
||||
from apt.utils.models.sklearn_model import SklearnModel, SklearnClassifier, SklearnRegressor
|
||||
from apt.utils.models.keras_model import KerasClassifier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue