#include "daal.h"
#include "service.h"
using namespace std;
using namespace daal;
using namespace daal::algorithms;
using namespace daal::algorithms::math;
string datasetName = "../data/batch/covcormoments_dense.csv";
int main()
{
FileDataSource<CSVFeatureManager> dataSource(datasetName, DataSource::doAllocateNumericTable, DataSource::doDictionaryFromContext);
dataSource.loadDataBlock();
tanh::Batch<> tanh;
tanh.input.set(tanh::data, dataSource.getNumericTable());
tanh.compute();
tanh::ResultPtr res = tanh.getResult();
printNumericTable(res->get(tanh::value), "Tanh result (first 5 rows):", 5);
return 0;
}