Class RN

java.lang.Object
com.polytechnik.utils.RN

public class RN extends Object
A simple ML example of the Spectral Radon-Nikodym approach. A "driver" class.
  • 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 IOException
      Print 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

      public static void main(String[] args) throws IOException
      The driver for Radon--Nikodym.
      Throws:
      IOException
    • getDataRegularizedAccordingToConfig

      public static RegularizedVectorXF getDataRegularizedAccordingToConfig(DataReadObservationVectorXF d, RegularizationMethod regularization_method)