Github user MLnick commented on a diff in the pull request:
https://github.com/apache/spark/pull/12202#discussion_r58665794
--- Diff: mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
---
@@ -169,6 +169,41 @@ private[recommendation] trait ALSParams extends
ALSModelParams with HasMaxIter w
require(ratingType == FloatType || ratingType == DoubleType)
SchemaUtils.appendColumn(schema, $(predictionCol), FloatType)
}
+
+ /** storage level for user/product in/out links */
+ private var intermediateRDDStorageLevel: StorageLevel =
StorageLevel.MEMORY_AND_DISK
+ private var finalRDDStorageLevel: StorageLevel =
StorageLevel.MEMORY_AND_DISK
+
+ /**
+ * :: DeveloperApi ::
+ * Sets storage level for intermediate RDDs (user/product in/out
links). The default value is
+ * `MEMORY_AND_DISK`. Users can change it to a serialized storage,
e.g., `MEMORY_AND_DISK_SER`
+ * and set `spark.rdd.compress` to `true` to reduce the space
requirement, at the cost of speed.
+ * @group expertParam
+ */
+ @DeveloperApi
+ @Since("2.0.0")
--- End diff --
Please be consistent with the approach used for other params in `ALSParams`
trait. Params work differently for `ml` compared to `mllib`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]