public class PerformanceMetrics extends Object implements Serializable, Cloneable
Measurements of how well the MLModel
performed on known
observations. One of the following metrics is returned, based on the
type of the MLModel
:
BinaryAUC: The binary MLModel
uses the Area Under the
Curve (AUC) technique to measure performance.
RegressionRMSE: The regression MLModel
uses the Root Mean
Square Error (RMSE) technique to measure performance. RMSE measures
the difference between predicted and actual values for a single
variable.
MulticlassAvgFScore: The multiclass MLModel
uses the F1
score technique to measure performance.
For more information about performance metrics, please see the Amazon Machine Learning Developer Guide .
Constructor and Description |
---|
PerformanceMetrics() |
Modifier and Type | Method and Description |
---|---|
PerformanceMetrics |
addPropertiesEntry(String key,
String value)
Sets the value of the Properties property for this object.
|
PerformanceMetrics |
clearPropertiesEntries()
Removes all the entries added into Properties.
|
PerformanceMetrics |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getProperties()
Returns the value of the Properties property for this object.
|
int |
hashCode() |
void |
setProperties(Map<String,String> properties)
Sets the value of the Properties property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PerformanceMetrics |
withProperties(Map<String,String> properties)
Sets the value of the Properties property for this object.
|
public Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
properties
- The new value for the Properties property for this object.public PerformanceMetrics withProperties(Map<String,String> properties)
Returns a reference to this object so that method calls can be chained together.
properties
- The new value for the Properties property for this object.public PerformanceMetrics addPropertiesEntry(String key, String value)
The method adds a new key-value pair into Properties parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Properties.value
- The corresponding value of the entry to be added into Properties.public PerformanceMetrics clearPropertiesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
public PerformanceMetrics clone()
Copyright © 2015. All rights reserved.