MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / getCategoryName

Method getCategoryName

JSAT/src/jsat/DataSet.java:97–103  ·  view source on GitHub ↗

Returns the name used for the i 'th categorical attribute. @param i the i th attribute. @return the name used for the i 'th categorical attribute.

(int i )

Source from the content-addressed store, hash-verified

95 * @return the name used for the <tt>i</tt>'th categorical attribute.
96 */
97 public String getCategoryName(int i )
98 {
99 if(i < getNumCategoricalVars() && i >= 0)
100 return categories[i].getCategoryName();
101 else
102 throw new IndexOutOfBoundsException("Can not acces variable for invalid index " + i );
103 }
104
105 /**
106 * Applies the given transformation to all points in this data set,

Callers 2

checkDataSetMethod · 0.45
writeCatVarMethod · 0.45

Calls 1

getNumCategoricalVarsMethod · 0.95

Tested by 1

checkDataSetMethod · 0.36