5 #ifndef COSAN_POLYNOMIALFEATURES_H
6 #define COSAN_POLYNOMIALFEATURES_H
13 template<Numeric NumericType>
18 fmt::print(
"*********************************\n");
19 fmt::print(
"Begin to generating polynomial features!!\n");
26 for (
const auto & each : um) {
28 fmt::print(
"Your choice of power {:f} may be too big. High potential of overflow!",each.second);
31 fmt::print(
"Generating power {:f} of Column {:d}!\n",each.second,each.first);
34 fmt::print(
"Finish generating polynomial features! Use .GetPolynomialFeatures() to get access it.\n");
35 fmt::print(
"*********************************\n");
38 fmt::print(
"Notice that CRD.X has been modified. The dimension of X is ({:},{:}). {:} columns of polynomial features have been added.\n",RD.
GetrowsX(),RD.
GetcolsX(),
__polynomialFeatures.cols());
42 fmt::print(
"*********************************\n");
43 fmt::print(
"Begin generating interaction features between {:d} and {:d}!!\n",pair.first,pair.second);
47 fmt::print(
"End of generating interaction features. Get access to it via .GetInteractionFeatures()\n",pair.first,pair.second);
48 fmt::print(
"*********************************\n");
51 fmt::print(
"Notice that CRD.X has been modified. The dimension of X is ({:d},{:d}). {:d} columns of interaction features have been added.\n",RD.
GetrowsX(),RD.
GetcolsX(),
__interactionFeatures.cols());
118 #endif //COSAN_POLYNOMIALFEATURES_H