From 4109818b3229f99e300a9da82b6326fa82e855fd Mon Sep 17 00:00:00 2001 From: Nan Zhu Date: Tue, 10 Apr 2018 09:00:58 -0700 Subject: [PATCH] [jvm-packages] add back libsvm notes (#3232) * add back train method but mark as deprecated * add back train method but mark as deprecated * fix scalastyle error * fix scalastyle error * add back libsvm notes --- jvm-packages/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jvm-packages/README.md b/jvm-packages/README.md index 920f2fe06..15ddae771 100644 --- a/jvm-packages/README.md +++ b/jvm-packages/README.md @@ -20,3 +20,11 @@ You can find more about XGBoost on [Documentation](https://xgboost.readthedocs.o Full code examples for Scala, Java, Apache Spark, and Apache Flink can be found in the [examples package](https://github.com/dmlc/xgboost/tree/master/jvm-packages/xgboost4j-example). + +**NOTE on LIBSVM Format**: + +* Use *1-based* ascending indexes for the LIBSVM format in distributed training mode + + * Spark does the internal conversion, and does not accept formats that are 0-based + +* Whereas, use *0-based* indexes format when predicting in normal mode - for instance, while using the saved model in the Python package \ No newline at end of file