[SPARK-18862][SPARKR][ML] Split SparkR mllib.R into multiple files

## What changes were proposed in this pull request?
SparkR ```mllib.R``` is getting bigger as we add more ML wrappers, I'd like to 
split it into multiple files to make us easy to maintain:
* mllib_classification.R
* mllib_clustering.R
* mllib_recommendation.R
* mllib_regression.R
* mllib_stat.R
* mllib_tree.R
* mllib_utils.R

Note: Only reorg, no actual code change.

## How was this patch tested?
Existing tests.

Author: Yanbo Liang <yblia...@gmail.com>

Closes #16312 from yanboliang/spark-18862.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/6b6b555a
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/6b6b555a
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/6b6b555a

Branch: refs/heads/master
Commit: 6b6b555a1e667a9f03dfe4a21e56c513a353a58d
Parents: 923e594
Author: Yanbo Liang <yblia...@gmail.com>
Authored: Sun Jan 8 01:10:36 2017 -0800
Committer: Yanbo Liang <yblia...@gmail.com>
Committed: Sun Jan 8 01:10:36 2017 -0800

----------------------------------------------------------------------
 R/pkg/DESCRIPTION                               |    8 +-
 R/pkg/R/mllib.R                                 | 2114 ------------------
 R/pkg/R/mllib_classification.R                  |  417 ++++
 R/pkg/R/mllib_clustering.R                      |  456 ++++
 R/pkg/R/mllib_recommendation.R                  |  162 ++
 R/pkg/R/mllib_regression.R                      |  448 ++++
 R/pkg/R/mllib_stat.R                            |  127 ++
 R/pkg/R/mllib_tree.R                            |  496 ++++
 R/pkg/R/mllib_utils.R                           |  119 +
 R/pkg/inst/tests/testthat/test_mllib.R          | 1170 ----------
 .../tests/testthat/test_mllib_classification.R  |  341 +++
 .../inst/tests/testthat/test_mllib_clustering.R |  224 ++
 .../tests/testthat/test_mllib_recommendation.R  |   65 +
 .../inst/tests/testthat/test_mllib_regression.R |  417 ++++
 R/pkg/inst/tests/testthat/test_mllib_stat.R     |   53 +
 R/pkg/inst/tests/testthat/test_mllib_tree.R     |  203 ++
 16 files changed, 3535 insertions(+), 3285 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/6b6b555a/R/pkg/DESCRIPTION
----------------------------------------------------------------------
diff --git a/R/pkg/DESCRIPTION b/R/pkg/DESCRIPTION
index 6a36748..cc471ed 100644
--- a/R/pkg/DESCRIPTION
+++ b/R/pkg/DESCRIPTION
@@ -41,7 +41,13 @@ Collate:
     'functions.R'
     'install.R'
     'jvm.R'
-    'mllib.R'
+    'mllib_classification.R'
+    'mllib_clustering.R'
+    'mllib_recommendation.R'
+    'mllib_regression.R'
+    'mllib_stat.R'
+    'mllib_tree.R'
+    'mllib_utils.R'
     'serialize.R'
     'sparkR.R'
     'stats.R'


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to