Fix mistake in node count
This commit is contained in:
parent
32293af69f
commit
4975feabff
@ -137,7 +137,7 @@ namespace bayesnet {
|
|||||||
int Classifier::getNumberOfNodes() const
|
int Classifier::getNumberOfNodes() const
|
||||||
{
|
{
|
||||||
// Features does not include class
|
// Features does not include class
|
||||||
return fitted ? model.getFeatures().size() + 1 : 0;
|
return fitted ? model.getFeatures().size() : 0;
|
||||||
}
|
}
|
||||||
int Classifier::getNumberOfEdges() const
|
int Classifier::getNumberOfEdges() const
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,8 @@ namespace platform {
|
|||||||
void ReportConsole::body()
|
void ReportConsole::body()
|
||||||
{
|
{
|
||||||
auto tmp = ConfigLocale();
|
auto tmp = ConfigLocale();
|
||||||
int maxHyper = 0;
|
int maxHyper = 15;
|
||||||
int maxDataset = 0;
|
int maxDataset = 7;
|
||||||
for (const auto& r : data["results"]) {
|
for (const auto& r : data["results"]) {
|
||||||
maxHyper = max(maxHyper, (int)r["hyperparameters"].dump().size());
|
maxHyper = max(maxHyper, (int)r["hyperparameters"].dump().size());
|
||||||
maxDataset = max(maxDataset, (int)r["dataset"].get<string>().size());
|
maxDataset = max(maxDataset, (int)r["dataset"].get<string>().size());
|
||||||
|
Loading…
Reference in New Issue
Block a user