apply google-java-style indentation and impose import orders....
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
*/
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* DMatrix for xgboost.
|
||||
*
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
*/
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Error handle for Xgboost.
|
||||
*/
|
||||
|
||||
@@ -15,14 +15,13 @@
|
||||
*/
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* Booster for xgboost, similar to the python wrapper xgboost.py
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
*/
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* class to load native library
|
||||
*
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import java.util.Map;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Rabit global class for synchronization.
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
*/
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* trainer for xgboost
|
||||
|
||||
@@ -19,7 +19,7 @@ package ml.dmlc.xgboost4j.scala
|
||||
import scala.collection.JavaConverters._
|
||||
import scala.collection.mutable
|
||||
|
||||
import ml.dmlc.xgboost4j.{Booster => JBooster, IEvaluation, IObjective}
|
||||
import ml.dmlc.xgboost4j.{Booster => JBooster}
|
||||
|
||||
private[scala] class ScalaBoosterImpl private[xgboost4j](booster: JBooster) extends Booster {
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
|
||||
package ml.dmlc.xgboost4j.scala
|
||||
|
||||
import _root_.scala.collection.JavaConverters._
|
||||
import scala.collection.JavaConverters._
|
||||
|
||||
import ml.dmlc.xgboost4j.{XGBoost => JXGBoost}
|
||||
|
||||
object XGBoost {
|
||||
|
||||
@@ -15,13 +15,14 @@
|
||||
*/
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* test cases for Booster
|
||||
*
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
*/
|
||||
package ml.dmlc.xgboost4j;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Random;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* test cases for DMatrix
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user