Skip to content

Commit

Permalink
Drop mleap for R (#5166)
Browse files Browse the repository at this point in the history
* Drop mleap R

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix namespace

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* apply diff

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
harupy committed Dec 15, 2021
1 parent 630c212 commit f9b5745
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 183 deletions.
38 changes: 9 additions & 29 deletions docs/source/R-api.rst
Expand Up @@ -1719,42 +1719,22 @@ model types.
mlflow_save_model(model, path, model_spec = list(), ...)
list(list("mlflow_save_model"), list("H2OModel"))(model, path, model_spec = list(), conda_env = NULL, ...)
list(list("mlflow_save_model"), list("keras.engine.training.Model"))(model, path, model_spec = list(), conda_env = NULL, ...)
list(list("mlflow_save_model"), list("ml_pipeline_model"))(
model,
path,
model_spec = list(),
conda_env = NULL,
sample_input = NULL,
...
)
list(list("mlflow_save_model"), list("xgb.Booster"))(model, path, model_spec = list(), conda_env = NULL, ...)
.. _arguments-40:

Arguments
---------

+-------------------------------+--------------------------------------+
| Argument | Description |
+===============================+======================================+
| ``model`` | The model that will perform a |
| | prediction. |
+-------------------------------+--------------------------------------+
| ``path`` | Destination path where this MLflow |
| | compatible model will be saved. |
+-------------------------------+--------------------------------------+
| ``model_spec`` | MLflow model config this model |
| | flavor is being added to. |
+-------------------------------+--------------------------------------+
| ``...`` | Optional additional arguments. |
+-------------------------------+--------------------------------------+
| ``conda_env`` | Path to Conda dependencies file. |
+-------------------------------+--------------------------------------+
| ``sample_input`` | Sample Spark DataFrame input that |
| | the model can evaluate. This is |
| | required by MLeap for data schema |
| | inference. |
+-------------------------------+--------------------------------------+
============== ==================================================================
Argument Description
============== ==================================================================
``model`` The model that will perform a prediction.
``path`` Destination path where this MLflow compatible model will be saved.
``model_spec`` MLflow model config this model flavor is being added to.
``...`` Optional additional arguments.
``conda_env`` Path to Conda dependencies file.
============== ==================================================================

``mlflow_search_runs``
======================
Expand Down
3 changes: 0 additions & 3 deletions mlflow/R/mlflow/DESCRIPTION
Expand Up @@ -55,12 +55,10 @@ Suggests:
h2o,
keras,
lintr,
mleap,
sparklyr,
stringi (< 1.4.4),
testthat (>= 2.0.0),
xgboost
Additional_repositories: https://mlflow.github.io/drat
Encoding: UTF-8
RoxygenNote: 7.1.2
Collate:
Expand All @@ -77,7 +75,6 @@ Collate:
'model-utils.R'
'model-h2o.R'
'model-keras.R'
'model-mleap.R'
'model-registry.R'
'model-serve.R'
'model-swagger.R'
Expand Down
3 changes: 0 additions & 3 deletions mlflow/R/mlflow/NAMESPACE
Expand Up @@ -5,17 +5,14 @@ S3method(mlflow_id,mlflow_run)
S3method(mlflow_load_flavor,mlflow_flavor_crate)
S3method(mlflow_load_flavor,mlflow_flavor_h2o)
S3method(mlflow_load_flavor,mlflow_flavor_keras)
S3method(mlflow_load_flavor,mlflow_flavor_mleap)
S3method(mlflow_load_flavor,mlflow_flavor_xgboost)
S3method(mlflow_predict,H2OModel)
S3method(mlflow_predict,crate)
S3method(mlflow_predict,keras.engine.training.Model)
S3method(mlflow_predict,mleap_transformer)
S3method(mlflow_predict,xgb.Booster)
S3method(mlflow_save_model,H2OModel)
S3method(mlflow_save_model,crate)
S3method(mlflow_save_model,keras.engine.training.Model)
S3method(mlflow_save_model,ml_pipeline_model)
S3method(mlflow_save_model,xgb.Booster)
S3method(mlflow_ui,"NULL")
S3method(mlflow_ui,mlflow_client)
Expand Down
57 changes: 0 additions & 57 deletions mlflow/R/mlflow/R/model-mleap.R

This file was deleted.

14 changes: 1 addition & 13 deletions mlflow/R/mlflow/man/mlflow_save_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 0 additions & 78 deletions mlflow/R/mlflow/tests/testthat/test-model-mleap.R

This file was deleted.

0 comments on commit f9b5745

Please sign in to comment.