Package org.aksw.limes.core.ml.algorithm
Class MLResults
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.MLResults
-
public class MLResults extends Object
Wraps around results of a ML algorithm.- Author:
- Klaus Lyko (lyko@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SimpleClassifier>classifiersprotected Map<String,Object>detailsprotected LinkSpecificationlinkspecprotected AMappingmappingprotected doublequality
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDetail(String key, Object value)Add additional computation detail.booleanclassifiersSet()Some ML algorithms such as Euclid don't produce LS but Mapping build by so called classifiers.List<SimpleClassifier>getClassifiers()Map<String,Object>getDetails()LinkSpecificationgetLinkSpecification()AMappinggetMapping()doublegetQuality()voidsetClassifiers(List<SimpleClassifier> classifiers)voidsetLinkSpecification(LinkSpecification spec)voidsetMapping(AMapping mapping)voidsetQuality(double quality)StringtoString()
-
-
-
Field Detail
-
linkspec
protected LinkSpecification linkspec
-
mapping
protected AMapping mapping
-
quality
protected double quality
-
classifiers
protected List<SimpleClassifier> classifiers
-
-
Constructor Detail
-
MLResults
public MLResults()
MLResults constructor.
-
MLResults
public MLResults(LinkSpecification linkspec, AMapping mapping, double quality, Map<String,Object> details)
MLResults full constructor.- Parameters:
linkspec- the link specificationmapping- the mappingquality- the value of quality measuredetails- additional computation details
-
-
Method Detail
-
getLinkSpecification
public LinkSpecification getLinkSpecification()
- Returns:
- the link specification
-
setLinkSpecification
public void setLinkSpecification(LinkSpecification spec)
- Parameters:
spec- the link specification
-
getMapping
public AMapping getMapping()
- Returns:
- the mapping
-
setMapping
public void setMapping(AMapping mapping)
- Parameters:
mapping- the mapping
-
getQuality
public double getQuality()
- Returns:
- the value of quality measure
-
setQuality
public void setQuality(double quality)
- Parameters:
quality- the value of quality measure
-
addDetail
public void addDetail(String key, Object value)
Add additional computation detail.- Parameters:
key- computation detail namevalue- computation detail value
-
getClassifiers
public List<SimpleClassifier> getClassifiers()
-
setClassifiers
public void setClassifiers(List<SimpleClassifier> classifiers)
-
classifiersSet
public boolean classifiersSet()
Some ML algorithms such as Euclid don't produce LS but Mapping build by so called classifiers. This method checks whether this (also) holds those.- Returns:
-
-