def __init__(self,
base_estimator=DecisionTreeClassifier(max_depth=10),
softmax=None,
n_estimators=50,
learning_rate=1.0,
random_state=None,
verbose=False):
super(MILBoostClassifier, self).__init__(
base_estimator=base_estimator,
n_estimators=n_estimators,
learning_rate=learning_rate,
random_state=random_state)
if not isinstance(softmax, SoftmaxFunction):
raise TypeError("Softmax input must be an object of class `SoftmaxFunction`")
self.softmax_fcn = softmax
self._verbose = verbose
self._bag_labels = None
self._inferred_y = None
self._bag_partitioning = None
评论列表
文章目录