/** * Returns a new, empty weight vector with the same parameter settings as this one. * * @return An empty weight vector. **/ public SparseWeightVector emptyClone() { return new BiasedWeightVector(initialBias); } }
/** * Outputs the contents of this <code>BiasedWeightVector</code> into the specified * <code>PrintStream</code>. The string representation is the same as in the super class, with * two added lines just after the <code>"Begin"</code> annotation that give the values of * {@link #bias} and {@link #initialBias}. * * @param out The stream to write to. **/ public void write(PrintStream out) { out.println("Begin BiasedWeightVector"); out.println("bias = " + bias); out.println("initialBias = " + initialBias); toStringJustWeights(out); out.println("End BiasedWeightVector"); }
/** * Outputs the contents of this <code>BiasedWeightVector</code> into the specified * <code>PrintStream</code>. The string representation is the same as in the super class, with * two added lines just after the <code>"Begin"</code> annotation that give the values of * {@link #bias} and {@link #initialBias}. * * @param out The stream to write to. * @param lex The feature lexicon. **/ public void write(PrintStream out, Lexicon lex) { out.println("Begin BiasedWeightVector"); out.println("bias = " + bias); out.println("initialBias = " + initialBias); toStringJustWeights(out, 0, lex); out.println("End BiasedWeightVector"); }