tolerance <- 3
This commit is contained in:
@@ -13,8 +13,8 @@ namespace platform {
|
||||
auto X = TensorUtils::to_matrix(dataset.slice(0, 0, dataset.size(0) - 1));
|
||||
auto y = TensorUtils::to_vector<int>(dataset.index({ -1, "..." }));
|
||||
int num_instances = X[0].size();
|
||||
weights_ = weights;
|
||||
weights_ = torch::full({ num_instances }, 1.0);
|
||||
normalize_weights(num_instances);
|
||||
aode_.fit(X, y, features, className, states, weights_, true);
|
||||
aode_.fit(X, y, features, className, states, weights_, true, smoothing);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user