Cosan  1.0
Data Analytics Library
featureengineering.cpp File Reference

Go to the source code of this file.

Typedefs

typedef double NumericType
 

Functions

int main ()
 

Typedef Documentation

◆ NumericType

typedef double NumericType

Definition at line 18 of file featureengineering.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 19 of file featureengineering.cpp.

19  {
20  Cosan::CosanRawData<NumericType> CRD("./example_data/toy2/X_.csv","./example_data/toy2/Y_.csv");
21  Cosan::OverUnderFlow ouf(CRD);
22  Cosan::MissingValues MissV(CRD);
23  Cosan::Normalizer NM(CRD,2);
24 // Cosan::StandardScaler SS(CRD);
25 // Cosan::Encoder ED(CRD,true);
26 // NumericType lb=0,ub=1;
27 // Cosan::MinmaxScaler MMS(CRD,lb,ub);//transform X to domain [lb,ub]. If not provided, default value lb =0,ub=1
28 // std::vector<std::pair<gsl::index,NumericType>> um = {{0,1.2},{1,1.1}};
29 // Cosan::PolynomialFeatures PF(CRD,um,true);//um is a vector of pair where each entries indicates index and power to be generated. The third argument indicates whether the new features should be added to CRD.X. Default is false.
30 // std::pair<gsl::index,gsl::index> pair = {4,5};
31 // PF.SetInteractionFeatures(CRD,pair,true);//to generative interactive features from column 4 and 5.
32  gsl::index ncomponent = 5;
33  Cosan::PrincipalComponentAnalysis PCA(CRD,ncomponent);
34 // gsl::index nrows = CRD.GetrowsX();
35 // std::default_random_engine generator;
36 // std::uniform_real_distribution<NumericType> distribution(0,1);
37 // std::vector<NumericType> newInputX(nrows);
38 // for (gsl::index i = 0;i<nrows;i++){
39 // newInputX[i] = distribution(generator);
40 // }
41 // Cosan::CustomTransform CT(CRD,newInputX);
42 
43  return 0;
44 }
Cosan::OverUnderFlow
Definition: overunderflow.h:14
Cosan::Normalizer
Definition: normalizer.h:12
Cosan::PrincipalComponentAnalysis
Definition: principalcomponentanalysis.h:16
Cosan::CosanRawData
Raw Data container.
Definition: CosanData.h:36
Cosan::MissingValues
Definition: missingvalues.h:13