|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.ports.metadata.MetaData
com.rapidminer.operator.ports.metadata.ExampleSetMetaData
public class ExampleSetMetaData
This class stores detailed meta data information about ExampleSets.
| Constructor Summary | |
|---|---|
ExampleSetMetaData()
|
|
ExampleSetMetaData(ExampleSet exampleSet)
This constructor will generate a complete meta data description of the given example set. |
|
ExampleSetMetaData(ExampleSet exampleSet,
boolean shortened)
|
|
ExampleSetMetaData(java.util.List<AttributeMetaData> attributeMetaData)
|
|
ExampleSetMetaData(java.util.Map<java.lang.String,java.lang.Object> keyValueMap)
|
|
ExampleSetMetaData(java.lang.String key,
java.lang.Object value)
|
|
| Method Summary | |
|---|---|
void |
addAllAttributes(java.util.Collection<AttributeMetaData> attributes)
|
void |
addAttribute(AttributeMetaData attribute)
|
void |
attributesAreKnown()
|
void |
attributesAreSubset()
Declares that the attributes in this example set are only a subset of attributeMetaData. |
void |
attributesAreSuperset()
Declares that the attributes in this example set are a superset of attributeMetaData. |
void |
clear()
This method removes every attribute |
void |
clearRegular()
This method removes all regular attributes from this exampleSet meta data |
ExampleSetMetaData |
clone()
|
MetaDataInfo |
containsAttributeName(java.lang.String name)
|
MetaDataInfo |
containsAttributesWithValueType(int type,
boolean includeSpecials)
|
MetaDataInfo |
containsSpecialAttribute(java.lang.String role)
|
MetaDataInfo |
equalHeader(ExampleSetMetaData other)
Checks if the attribute sets are equal. |
java.util.Collection<AttributeMetaData> |
getAllAttributes()
|
AttributeMetaData |
getAttributeByName(java.lang.String name)
|
AttributeMetaData |
getAttributeByRole(java.lang.String role)
|
java.util.Collection<java.lang.String> |
getAttributeNamesByType(int mustBeOfType)
|
SetRelation |
getAttributeSetRelation()
|
java.lang.String |
getDescription()
|
AttributeMetaData |
getLabelMetaData()
|
static int |
getMaximumNumberOfAttributes()
Returns the maximum number of attributes to be used for shortened meta data generation as specified by RapidMiner.PROPERTY_RAPIDMINER_GENERAL_MAX_META_DATA_ATTRIBUTES. |
MDInteger |
getNumberOfExamples()
|
int |
getNumberOfRegularAttributes()
|
java.lang.String |
getShortDescription()
|
AttributeMetaData |
getSpecial(java.lang.String role)
|
MetaDataInfo |
hasSpecial(java.lang.String role)
This returns if an attribute with the given role exists in the example set. |
ExampleSetMetaData |
joinAttributes(ExampleSetMetaData es2,
java.lang.String prefixForDuplicates)
Joins the attributes of both example sets. |
void |
mergeSetRelation(SetRelation relation)
Changes the knowledge about the attributes in this set. |
void |
numberOfExamplesIsUnkown()
|
void |
removeAllAttributes()
|
void |
removeAttribute(AttributeMetaData attribute)
|
void |
setAttributes(java.util.List<AttributeMetaData> attributes)
|
void |
setNominalDataWasShrinked(boolean b)
|
void |
setNumberOfExamples(int num)
Convenience method for setting the number of examples if the number is known exactly. |
void |
setNumberOfExamples(MDInteger num)
Method for setting the number of examples. |
java.lang.String |
toString()
|
MetaData |
transpose()
|
| Methods inherited from class com.rapidminer.operator.ports.metadata.MetaData |
|---|
addToHistory, forIOObject, forIOObject, getAnnotations, getErrorsForInput, getGenerationHistory, getGenerationHistoryAsHTML, getMetaData, getObjectClass, isCompatible, putMetaData, setAnnotations |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExampleSetMetaData()
public ExampleSetMetaData(java.util.Map<java.lang.String,java.lang.Object> keyValueMap)
public ExampleSetMetaData(java.lang.String key,
java.lang.Object value)
public ExampleSetMetaData(java.util.List<AttributeMetaData> attributeMetaData)
public ExampleSetMetaData(ExampleSet exampleSet)
public ExampleSetMetaData(ExampleSet exampleSet,
boolean shortened)
| Method Detail |
|---|
public AttributeMetaData getAttributeByName(java.lang.String name)
public AttributeMetaData getAttributeByRole(java.lang.String role)
public void addAllAttributes(java.util.Collection<AttributeMetaData> attributes)
public java.util.Collection<AttributeMetaData> getAllAttributes()
public void removeAttribute(AttributeMetaData attribute)
public void addAttribute(AttributeMetaData attribute)
public java.lang.String getDescription()
getDescription in class MetaDatapublic void setAttributes(java.util.List<AttributeMetaData> attributes)
public ExampleSetMetaData clone()
clone in class MetaData
public MetaDataInfo containsAttributesWithValueType(int type,
boolean includeSpecials)
public AttributeMetaData getSpecial(java.lang.String role)
public AttributeMetaData getLabelMetaData()
public MetaDataInfo hasSpecial(java.lang.String role)
public ExampleSetMetaData joinAttributes(ExampleSetMetaData es2,
java.lang.String prefixForDuplicates)
prefixForDuplicates - If this is non-null, attributes with duplicate names will be renamed.
Otherwise, only one will be kept.public MetaDataInfo containsAttributeName(java.lang.String name)
public MetaDataInfo containsSpecialAttribute(java.lang.String role)
public void mergeSetRelation(SetRelation relation)
relation if {@link SetRelation#SUBSET}, our knowledge
changes to {@link SetRelation#SUBSET}. If the current knowledge
is {@link SetRelation#SUBSET} and relation is
{@link SetRelation#SUPERSET}, our knowledge changes to
{@link SetRelation#UNKNOWN}
public SetRelation getAttributeSetRelation()
public void attributesAreKnown()
public void attributesAreSuperset()
attributeMetaData.
public void attributesAreSubset()
attributeMetaData.
public void setNumberOfExamples(int num)
public void setNumberOfExamples(MDInteger num)
public void numberOfExamplesIsUnkown()
public MDInteger getNumberOfExamples()
public java.lang.String toString()
toString in class MetaDatapublic MetaData transpose()
public void clearRegular()
public void clear()
public int getNumberOfRegularAttributes()
public MetaDataInfo equalHeader(ExampleSetMetaData other)
public java.util.Collection<java.lang.String> getAttributeNamesByType(int mustBeOfType)
public java.lang.String getShortDescription()
public void removeAllAttributes()
public void setNominalDataWasShrinked(boolean b)
public static int getMaximumNumberOfAttributes()
RapidMiner.PROPERTY_RAPIDMINER_GENERAL_MAX_META_DATA_ATTRIBUTES.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||