Implementation of various utility functions for machine learning. More...
#include <time.h>#include <Eigen/Dense>#include <chrono>#include <cmath>#include <ctime>#include <iomanip>#include <iostream>#include <locale>#include "velox/exec/tests/utils/AssertQueryBuilder.h"#include "velox/exec/tests/utils/PlanBuilder.h"#include "velox/exec/tests/utils/TempDirectoryPath.h"#include "BaseFunction.h"#include "velox/vector/tests/utils/VectorTestBase.h"Go to the source code of this file.
Classes | |
| class | IsWeekday |
| Implements a function to check if a given timestamp corresponds to a weekday. More... | |
| class | GetAge |
| Implements a function to calculate the age based on the birth year. More... | |
| class | GetTransactionFeatures |
| Implements a function to extract features from transaction data. More... | |
| class | GetCustomerFeatures |
| Implements a function to extract features from customer data. More... | |
| class | TimeDiffInDays |
| Implements a function to calculate the difference in days between two timestamps. More... | |
| class | DateToTimestamp |
| Implements a function to convert a date string to a timestamp. More... | |
| class | GetBinaryClass |
| Implements a function to determine the binary class based on probabilities. More... | |
Functions | |
| std::unordered_map< std::string, int > | getCountryMap () |
| Reads a file containing country mappings and returns an unordered_map. | |
Implementation of various utility functions for machine learning.
| std::unordered_map< std::string, int > getCountryMap | ( | ) |
Reads a file containing country mappings and returns an unordered_map.