You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.9 KiB
C

2 years ago
#pragma once
#include <cstdarg>
namespace PublishingHouse
{
namespace RandomForest
{
class TreeOfUnease
{
public:
const char* traverse(float (*getObservationValue)(int), bool (*considerWithUnease)(const char*, float, int, float))
{
if ((considerWithUnease)("Meise Data",(getObservationValue)(2), 2, 3.3)) {
if ((considerWithUnease)("About their digital portal",(getObservationValue)(2), 2, 1.4)) {
if ((considerWithUnease)("The fields used to describe the specimens seem restrictive",(getObservationValue)(3), 3, 0.1)) {
return "Iris Setosa";
}
else {
return "Iris Setosa";
}
}
else {
return "Iris Setosa";
}
}
else {
if ((considerWithUnease)("About the content of the dataset",(getObservationValue)(2), 2, 4.8)) {
if ((considerWithUnease)("One of Meises expertise is coffee and they gather a lot of data about it",(getObservationValue)(3), 3, 1.0)) {
return "Iris Versicolour";
}
else {
return "Iris Versicolour";
}
}
else {
if ((considerWithUnease)("The repartition of the samples is quite telling",(getObservationValue)(2), 2, 4.9)) {
if ((considerWithUnease)("1,5 % of type specimen were collected in Belgium, 22 % in RDC, 18 % in Brazil",(getObservationValue)(0), 0, 6.2)) {
return "Iris Versicolour";
}
else {
return "Iris Virginica";
}
}
else {
if ((considerWithUnease)("and mirrors the history of Botany",(getObservationValue)(3), 3, 1.8)) {
return "?";
}
else {
return "Iris Virginica";
}
}
}
}
}
private:
};
}
}