Class SimilarityMeasuresImpl
- All Implemented Interfaces:
SimilarityMeasures
,io.vrap.rmf.base.client.ModelBase
Specify which ProductData attributes to use for estimating similarity and how to weigh them. An attribute's weight can be any whole positive integer, starting with 0. The larger the integer, the higher its weight.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Importance of thedescription
attribute in overall similarity.Importance of thedescription
attribute in overall similarity.getName()
Importance of thename
attribute in overall similarity.getPrice()
Importance of theprice
attribute in overall similarity.Importance of the number of product variants in overall similarity.int
hashCode()
void
setAttribute
(Long attribute) Importance of thedescription
attribute in overall similarity.void
setDescription
(Long description) Importance of thedescription
attribute in overall similarity.void
Importance of thename
attribute in overall similarity.void
Importance of theprice
attribute in overall similarity.void
setVariantCount
(Long variantCount) Importance of the number of product variants in overall similarity.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.ml.models.similar_products.SimilarityMeasures
withSimilarityMeasures
-
Constructor Details
-
SimilarityMeasuresImpl
public SimilarityMeasuresImpl()create empty instance
-
-
Method Details
-
getName
Importance of the
name
attribute in overall similarity.- Specified by:
getName
in interfaceSimilarityMeasures
- Returns:
- name
-
getDescription
Importance of the
description
attribute in overall similarity.- Specified by:
getDescription
in interfaceSimilarityMeasures
- Returns:
- description
-
getAttribute
Importance of the
description
attribute in overall similarity.- Specified by:
getAttribute
in interfaceSimilarityMeasures
- Returns:
- attribute
-
getVariantCount
Importance of the number of product variants in overall similarity.
- Specified by:
getVariantCount
in interfaceSimilarityMeasures
- Returns:
- variantCount
-
getPrice
Importance of the
price
attribute in overall similarity.- Specified by:
getPrice
in interfaceSimilarityMeasures
- Returns:
- price
-
setName
Description copied from interface:SimilarityMeasures
Importance of the
name
attribute in overall similarity.- Specified by:
setName
in interfaceSimilarityMeasures
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:SimilarityMeasures
Importance of the
description
attribute in overall similarity.- Specified by:
setDescription
in interfaceSimilarityMeasures
- Parameters:
description
- value to be set
-
setAttribute
Description copied from interface:SimilarityMeasures
Importance of the
description
attribute in overall similarity.- Specified by:
setAttribute
in interfaceSimilarityMeasures
- Parameters:
attribute
- value to be set
-
setVariantCount
Description copied from interface:SimilarityMeasures
Importance of the number of product variants in overall similarity.
- Specified by:
setVariantCount
in interfaceSimilarityMeasures
- Parameters:
variantCount
- value to be set
-
setPrice
Description copied from interface:SimilarityMeasures
Importance of the
price
attribute in overall similarity.- Specified by:
setPrice
in interfaceSimilarityMeasures
- Parameters:
price
- value to be set
-
equals
-
hashCode
-