uni.bielefeld.cmg.sparkhit.main.MainOfRegressioner.java Source code

Java tutorial

Introduction

Here is the source code for uni.bielefeld.cmg.sparkhit.main.MainOfRegressioner.java

Source

package uni.bielefeld.cmg.sparkhit.main;

import org.apache.commons.cli.ParseException;
import uni.bielefeld.cmg.sparkhit.pipeline.Pipelines;
import uni.bielefeld.cmg.sparkhit.util.DefaultParam;
import uni.bielefeld.cmg.sparkhit.util.InfoDumper;
import uni.bielefeld.cmg.sparkhit.util.ParameterForCluster;
import uni.bielefeld.cmg.sparkhit.util.ParameterForRegressioner;

import java.io.IOException;

/**
 * Created by Liren Huang on 17/03/16.
 * <p/>
 * SparkHit
 * <p/>
 * Copyright (c) 2015-2015
 * Liren Huang      <huanglr at cebitec.uni-bielefeld.de>
 * <p/>
 * SparkHit is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.
 * <p/>
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; Without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more detail.
 * <p/>
 * You should have received a copy of the GNU General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses>.
 */

public class MainOfRegressioner {
    public static void main(String[] args) {
        InfoDumper info = new InfoDumper();
        info.readParagraphedMessages("SparkHit Clustering initiating ... \ninterpreting parameters.");
        info.screenDump();

        ParameterForRegressioner parameterR = null;
        try {
            parameterR = new ParameterForRegressioner(args);
        } catch (IOException e) {
            e.fillInStackTrace();
        } catch (ParseException e) {
            e.fillInStackTrace();
        }
        DefaultParam param = parameterR.importCommandLine();

        Pipelines pipes = new Pipelines();
        pipes.setParameter(param);
        pipes.sparkRegressioner();

    }
}