Fix Xspode
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
namespace bayesnet {
|
||||
Classifier::Classifier(Network model) : model(model), m(0), n(0), metrics(Metrics()), fitted(false) {}
|
||||
const std::string CLASSIFIER_NOT_FITTED = "Classifier has not been fitted";
|
||||
Classifier& Classifier::build(const std::vector<std::string>& features, const std::string& className, std::map<std::string, std::vector<int>>& states, const torch::Tensor& weights, const Smoothing_t smoothing)
|
||||
{
|
||||
this->features = features;
|
||||
@@ -22,11 +21,8 @@ namespace bayesnet {
|
||||
auto n_classes = states.at(className).size();
|
||||
metrics = Metrics(dataset, features, className, n_classes);
|
||||
model.initialize();
|
||||
std::cout << "Ahora buildmodel"<< std::endl;
|
||||
buildModel(weights);
|
||||
std::cout << "Ahora trainmodel"<< std::endl;
|
||||
trainModel(weights, smoothing);
|
||||
std::cout << "Después de trainmodel"<< std::endl;
|
||||
fitted = true;
|
||||
return *this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user