t

com.johnsnowlabs.nlp

HasImageFeatureProperties

trait HasImageFeatureProperties extends ParamsAndFeaturesWritable

example of required parameters

{
"do_normalize": true,
"do_resize": true,
"feature_extractor_type": "ViTFeatureExtractor",
"image_mean": [
0.5,
0.5,
0.5
],
"image_std": [
0.5,
0.5,
0.5
],
"resample": 2,
"size": 224
}
Linear Supertypes
ParamsAndFeaturesWritable, HasFeatures, Params, Serializable, Serializable, Identifiable, DefaultParamsWritable, MLWritable, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. HasImageFeatureProperties
  2. ParamsAndFeaturesWritable
  3. HasFeatures
  4. Params
  5. Serializable
  6. Serializable
  7. Identifiable
  8. DefaultParamsWritable
  9. MLWritable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def copy(extra: ParamMap): Params
    Definition Classes
    Params
  2. abstract val uid: String
    Definition Classes
    Identifiable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T
    Attributes
    protected
    Definition Classes
    Params
  4. def $$[T](feature: StructFeature[T]): T
    Attributes
    protected
    Definition Classes
    HasFeatures
  5. def $$[K, V](feature: MapFeature[K, V]): Map[K, V]
    Attributes
    protected
    Definition Classes
    HasFeatures
  6. def $$[T](feature: SetFeature[T]): Set[T]
    Attributes
    protected
    Definition Classes
    HasFeatures
  7. def $$[T](feature: ArrayFeature[T]): Array[T]
    Attributes
    protected
    Definition Classes
    HasFeatures
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. final def clear(param: Param[_]): HasImageFeatureProperties.this.type
    Definition Classes
    Params
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def copyValues[T <: Params](to: T, extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  13. final def defaultCopy[T <: Params](extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  14. val doNormalize: BooleanParam

    Whether or not to normalize the input with mean and standard deviation

  15. val doResize: BooleanParam

    Whether to resize the input to a certain size

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def explainParam(param: Param[_]): String
    Definition Classes
    Params
  19. def explainParams(): String
    Definition Classes
    Params
  20. final def extractParamMap(): ParamMap
    Definition Classes
    Params
  21. final def extractParamMap(extra: ParamMap): ParamMap
    Definition Classes
    Params
  22. val featureExtractorType: Param[String]

    Name of model's architecture for feature extraction

  23. val features: ArrayBuffer[Feature[_, _, _]]
    Definition Classes
    HasFeatures
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def get[T](feature: StructFeature[T]): Option[T]
    Attributes
    protected
    Definition Classes
    HasFeatures
  26. def get[K, V](feature: MapFeature[K, V]): Option[Map[K, V]]
    Attributes
    protected
    Definition Classes
    HasFeatures
  27. def get[T](feature: SetFeature[T]): Option[Set[T]]
    Attributes
    protected
    Definition Classes
    HasFeatures
  28. def get[T](feature: ArrayFeature[T]): Option[Array[T]]
    Attributes
    protected
    Definition Classes
    HasFeatures
  29. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  32. def getDoNormalize: Boolean

  33. def getDoResize: Boolean

  34. def getFeatureExtractorType: String

  35. def getImageMean: Array[Double]

  36. def getImageStd: Array[Double]

  37. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  38. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  39. def getResample: Int

  40. def getSize: Int

  41. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  42. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  43. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  44. val imageMean: DoubleArrayParam

    The sequence of means for each channel, to be used when normalizing images

  45. val imageStd: DoubleArrayParam

    The sequence of standard deviations for each channel, to be used when normalizing images

  46. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  49. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  50. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. def onWrite(path: String, spark: SparkSession): Unit
    Attributes
    protected
    Definition Classes
    ParamsAndFeaturesWritable
  53. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  54. val resample: IntParam

    An optional resampling filter.

    An optional resampling filter. This can be one of PIL.Image.NEAREST, PIL.Image.BOX, PIL.Image.BILINEAR, PIL.Image.HAMMING, PIL.Image.BICUBIC or PIL.Image.LANCZOS. Only has an effect if do_resize is set to True

  55. def save(path: String): Unit
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  56. def set[T](feature: StructFeature[T], value: T): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  57. def set[K, V](feature: MapFeature[K, V], value: Map[K, V]): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  58. def set[T](feature: SetFeature[T], value: Set[T]): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  59. def set[T](feature: ArrayFeature[T], value: Array[T]): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  60. final def set(paramPair: ParamPair[_]): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    Params
  61. final def set(param: String, value: Any): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    Params
  62. final def set[T](param: Param[T], value: T): HasImageFeatureProperties.this.type
    Definition Classes
    Params
  63. def setDefault[T](feature: StructFeature[T], value: () ⇒ T): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  64. def setDefault[K, V](feature: MapFeature[K, V], value: () ⇒ Map[K, V]): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  65. def setDefault[T](feature: SetFeature[T], value: () ⇒ Set[T]): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  66. def setDefault[T](feature: ArrayFeature[T], value: () ⇒ Array[T]): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    HasFeatures
  67. final def setDefault(paramPairs: ParamPair[_]*): HasImageFeatureProperties.this.type
    Attributes
    protected
    Definition Classes
    Params
  68. final def setDefault[T](param: Param[T], value: T): HasImageFeatureProperties.this.type
    Attributes
    protected[org.apache.spark.ml]
    Definition Classes
    Params
  69. def setDoNormalize(value: Boolean): HasImageFeatureProperties.this.type

  70. def setDoResize(value: Boolean): HasImageFeatureProperties.this.type

  71. def setFeatureExtractorType(value: String): HasImageFeatureProperties.this.type

  72. def setImageMean(value: Array[Double]): HasImageFeatureProperties.this.type

  73. def setImageStd(value: Array[Double]): HasImageFeatureProperties.this.type

  74. def setResample(value: Int): HasImageFeatureProperties.this.type

  75. def setSize(value: Int): HasImageFeatureProperties.this.type

  76. val size: IntParam

    Resize the input to the given size.

    Resize the input to the given size. If a tuple is provided, it should be (width, height). If only an integer is provided, then the input will be resized to (size, size). Only has an effect if do_resize is set to True.

  77. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  78. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  79. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  82. def write: MLWriter
    Definition Classes
    ParamsAndFeaturesWritable → DefaultParamsWritable → MLWritable

Inherited from ParamsAndFeaturesWritable

Inherited from HasFeatures

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from DefaultParamsWritable

Inherited from MLWritable

Inherited from AnyRef

Inherited from Any

getParam

param

setParam

Ungrouped