首页 > 解决方案 > 对随机森林的对抗性攻击

问题描述

我正在尝试使用Adversarial Robustness Toolkit并创建一个强大的随机森林模型,并在下面创建模型。

from sklearn.ensemble import RandomForestClassifier
model = RandomForestClassifier(n_estimators=50)

from art.estimators.classification.scikitlearn import ScikitlearnRandomForestClassifier
classifier = ScikitlearnRandomForestClassifier(model=model)

classifier.fit(x_train, y_train)
predictions = classifier.predict(x_test)

如何测试我的模型对对抗性攻击的稳健性?或者我怎样才能发起攻击?

标签: python-3.xmachine-learning-model

解决方案


推荐阅读