Continue refactoring
This commit is contained in:
@@ -13,7 +13,7 @@ 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_ = torch::full({ m }, 1.0 / m, torch::kFloat64);
|
||||
weights_ = weights;
|
||||
normalize_weights(num_instances);
|
||||
aode_.fit(X, y, features, className, states, weights_, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user