title | description | keywords | author | ms.author | manager | ms.date | ms.topic | ms.service | ms.assetid | ROBOTS | audience | ms.devlang | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
as.kmeans function (revoAnalytics) | Microsoft Docs |
Converts objects containing RevoScaleR-computed k-means clusters to an R kmeans object. |
(revoAnalytics), as.kmeans, as.kmeans.rxKmeans, category, models |
chuckheinzelman |
charlhe |
cgronlun |
07/15/2019 |
reference |
mlserver |
Converts objects containing RevoScaleR-computed k-means clusters to an R kmeans object.
## S3 method for class `rxKmeans':
as.kmeans (x, ...)
object of class "rxKmeans"
.
additional arguments (currently not used).
This function converts an existing object of class "rxKmeans"
an object of
class "kmeans"
.
The underlying structure of the output object will be a subset of that produced by an equivalent call to
kmeans
. Often, this method can be used to coerce an object
for use with the pmml package. RevoScaleR model objects that contain
transforms
or a transformFunc
are not supported.
an object of class "kmeans"
.
Microsoft Corporation Microsoft Technical Support
as.lm, as.glm, as.rpart, as.xtabs, rxKmeans.
## Not run:
# If the pmml package is installed
library(pmml)
form <- ~ height + weight
set.seed(17)
irow <- unique(sample.int(nrow(women), 4L, replace = TRUE))[seq(2)]
centers <- women[irow,, drop = FALSE]
rxKmeansObj <- rxKmeans(form, data = women, centers = centers)
pmml(as.kmeans(rxKmeansObj))
## End(Not run)