Skip to content

Commit 2397321

Browse files
committed
init pr
1 parent 64c314e commit 2397321

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

mllib/src/main/scala/org/apache/spark/ml/image/ImageSchema.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ import org.apache.spark.sql.types._
3535
*/
3636
@Experimental
3737
@Since("2.3.0")
38+
@deprecated("use `spark.read.format(\"image\").load(path)` and this `ImageSchema` will be " +
39+
"removed in 3.0.0.", "2.4.0")
3840
object ImageSchema {
3941

4042
val undefinedImageType = "Undefined"

python/pyspark/ml/image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
2121
An attribute of this module that contains the instance of :class:`_ImageSchema`.
2222
23+
.. note:: Deprecated in 2.4.0. Use `spark.read.format("image").load(path)` instead and
24+
this :py:attribute:`ImageSchema` will be removed in 3.0.0.
25+
2326
.. autoclass:: _ImageSchema
2427
:members:
2528
"""

0 commit comments

Comments
 (0)