public class EvaluationResult extends ExportablePersistentObject
filled, oid
emptyKeys
Constructor and Description |
---|
EvaluationResult()
Creates an empty evaluation result object
|
EvaluationResult(Persistent belongsTo,
Duration duration,
int amountOfData,
double accuracy,
String confusionMatrix,
String additionalInfos)
Creates a new evaluation result of classification model.
|
Modifier and Type | Method and Description |
---|---|
double |
accuracy()
Returns the accuracy (as value between 0 and 1) of the model, i.e. how well the model performs in predicting the correct result.
|
String |
additionalInfos()
Returns additional information about the result.
|
int |
amountOfData()
Returns the number of data records used for calculation this result
|
Persistent |
belongsTo()
Returns the representative of the model to which this result belongs to
|
String |
confusionMatrix()
Returns the confusion matrix for the data of this result.
|
Date |
createdAt()
Returns the date when this result was created
|
long |
duration()
Returns how long it took (in seconds) for calculating this result
|
String[][] |
getKeys()
A class may return key field groups in order to identify already existing objects
of that class.
|
String |
getLocalClassName() |
String |
getLocalObjectName()
Get the object name in localized form.
|
String |
getTableName()
This method must return the table name of the database table in which
this persistent object is stored.
|
String |
toString() |
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, clone, dbFields, equals, getKey, getOid, getStore, getValue, hashCode, isFilled, isValid, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, setStore, toListString
finalize, getClass, notify, notifyAll, wait, wait, wait
beforeImport, exportFields, getAdditionalObjects, getRequiredObjects, getRequiredReferences
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getOid, getStore, getValue, isFilled, isValid, setFilled, setOid, setOid, setStore, toListString
public EvaluationResult(Persistent belongsTo, Duration duration, int amountOfData, double accuracy, String confusionMatrix, String additionalInfos)
belongsTo
- a Persistent
representing the model to which this result belongs toduration
- the duration (in seconds) for calculating this resultamountOfData
- the number of data records used for calculation this resultaccuracy
- the accuracy of the model (as value between 0 and 1)confusionMatrix
- the confusion matrix for the data of this resultadditionalInfos
- additional information about the result; may vary depending on the used evaluation implementationpublic EvaluationResult()
public String getTableName()
Persistent
public Persistent belongsTo()
public Date createdAt()
public long duration()
public int amountOfData()
public double accuracy()
public String confusionMatrix()
public String additionalInfos()
public String[][] getKeys()
Persistent
The first key field group is occasionally treated in a special manner as the primary business key. E.g. the export import functionality checks for object existence according to just the first key field group.
If no key field groups can be provided by the implementing class an empty result must be returned - use Persistent.emptyKeys
to do so.
getKeys
in interface Persistent
getKeys
in class PersistentObject
{{"name", "birthdate"},{"ssn"}}
for a
class defining two key field groups. The first one contains the fields name
and
birthdate
, the second key field group has just one field ssn
.public String getLocalObjectName()
PersistentObject
getLocalObjectName
in interface Persistent
getLocalObjectName
in class PersistentObject
public String getLocalClassName()
getLocalClassName
in interface Persistent
getLocalClassName
in class PersistentObject
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.