/** * Sets the weighting dictionary to be used by this encoder. Also sets the missing value weight * to be half the smallest weight in the dictionary. * * @param dictionary The dictionary to use to look up weights. */ public void setDictionary(Map<String, Double> dictionary) { this.dictionary = dictionary; setMissingValueWeight(Collections.min(dictionary.values()) / 2); }
/** * Sets the weighting dictionary to be used by this encoder. Also sets the missing value weight * to be half the smallest weight in the dictionary. * * @param dictionary The dictionary to use to look up weights. */ public void setDictionary(Map<String, Double> dictionary) { this.dictionary = dictionary; setMissingValueWeight(Collections.min(dictionary.values()) / 2); }
/** * Sets the weighting dictionary to be used by this encoder. Also sets the missing value weight * to be half the smallest weight in the dictionary. * * @param dictionary The dictionary to use to look up weights. */ public void setDictionary(Map<String, Double> dictionary) { this.dictionary = dictionary; setMissingValueWeight(Collections.min(dictionary.values()) / 2); }