/** * Creates a new {@code DefaultWeightedInputOutputPair} that is a shallow * copy of the given {@code WeightedInputOuptutPair}. * * @param other * The other weighted input-output pair to copy the values of. */ public DefaultWeightedInputOutputPair( final WeightedInputOutputPair<? extends InputType, ? extends OutputType> other) { this(other.getInput(), other.getOutput(), other.getWeight()); }
/** * Creates a new {@code DefaultWeightedInputOutputPair} that is a shallow * copy of the given {@code WeightedInputOuptutPair}. * * @param other * The other weighted input-output pair to copy the values of. */ public DefaultWeightedInputOutputPair( final WeightedInputOutputPair<? extends InputType, ? extends OutputType> other) { this(other.getInput(), other.getOutput(), other.getWeight()); }
/** * Creates a new {@code DefaultWeightedInputOutputPair} that is a shallow * copy of the given {@code WeightedInputOuptutPair}. * * @param other * The other weighted input-output pair to copy the values of. */ public DefaultWeightedInputOutputPair( final WeightedInputOutputPair<? extends InputType, ? extends OutputType> other) { this(other.getInput(), other.getOutput(), other.getWeight()); }
this.locallyWeightedData.get( i ); double kernelWeight = this.kernel.evaluate( input, originalPair.getInput() ); double originalWeight = originalPair.getWeight(); double localWeight = kernelWeight * originalWeight;
this.locallyWeightedData.get( i ); double kernelWeight = this.kernel.evaluate( input, originalPair.getInput() ); double originalWeight = originalPair.getWeight(); double localWeight = kernelWeight * originalWeight;
this.locallyWeightedData.get( i ); double kernelWeight = this.kernel.evaluate( input, originalPair.getInput() ); double originalWeight = originalPair.getWeight(); double localWeight = kernelWeight * originalWeight;
Boolean prediction = learned.evaluate(example.getInput());
Boolean prediction = learned.evaluate(example.getInput());
Boolean prediction = learned.evaluate(example.getInput());