Package com.polytechnik.utils
Class RN
java.lang.Object
com.polytechnik.utils.RN
A simple ML example of the Spectral Radon-Nikodym approach. A "driver" class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegularizedVectorXF
getDataRegularizedAccordingToConfig
(DataReadObservationVectorXF d, RegularizationMethod regularization_method) static void
The driver for Radon--Nikodym.static void
printRNEvaluation
(String[] comand_line_arguments, String rn_data_file_to_build_model_from, List<String> xHeader, RadonNikodymSpectralModel rn, double[] wK, double[][] getxorigprojectedtopsik, int flag_print_verbosity, List<ObservationVectorXF> evaluation_data, String evaluation_data_file, Function<String, String> getoutputfilename) Print RN model.
-
Constructor Details
-
RN
public RN()
-
-
Method Details
-
printRNEvaluation
public static void printRNEvaluation(String[] comand_line_arguments, String rn_data_file_to_build_model_from, List<String> xHeader, RadonNikodymSpectralModel rn, double[] wK, double[][] getxorigprojectedtopsik, int flag_print_verbosity, List<ObservationVectorXF> evaluation_data, String evaluation_data_file, Function<String, String> getoutputfilename) throws IOExceptionPrint RN model.- Parameters:
rn_data_file_to_build_model_from
- The filename the model is built from (used for diag).xHeader
- Columns header (attributes names).rn
- The model.wK
- Christoffel weights, an alternative to Lebesgue weights rn.w (obtained as rn.getChristoffelWeights(d)).flag_print_verbosity
- Whether to print the psi_f[k](x) for every point or original x expansion in psi_f[k].evaluation_data_file
- The filename on which to evaluate (used for diag).getoutputfilename
- A function to generate output file name (typically evaluation_data_file+suffix).- Throws:
IOException
-
main
The driver for Radon--Nikodym.- Throws:
IOException
-
getDataRegularizedAccordingToConfig
public static RegularizedVectorXF getDataRegularizedAccordingToConfig(DataReadObservationVectorXF d, RegularizationMethod regularization_method)
-