@Override public LocallyWeightedFunction<InputType, OutputType> learn( Collection<? extends InputOutputPair<? extends InputType, OutputType>> data ) { return new LocallyWeightedFunction<InputType, OutputType>( this.getKernel(), data, this.getLearner() ); }
/** * Creates a new instance of LocallyWeightedFunction * @param kernel * Kernel that provides the weights between an input and each sample * in the input dataset * @param learner * Learner that takes the Collection of WeightedInputOutputPairs from * the Kernel reweighting and creates a local function approximation at * the given input. I would strongly recommend using fast or closed-form * learners for this. */ public Learner( Kernel<? super InputType> kernel, SupervisedBatchLearner<InputType,OutputType,?> learner ) { this.setKernel( kernel ); this.setLearner( learner ); }
/** * Creates a new instance of LocallyWeightedFunction * @param kernel * Kernel that provides the weights between an input and each sample * in the input dataset * @param learner * Learner that takes the Collection of WeightedInputOutputPairs from * the Kernel reweighting and creates a local function approximation at * the given input. I would strongly recommend using fast or closed-form * learners for this. */ public Learner( Kernel<? super InputType> kernel, SupervisedBatchLearner<InputType,OutputType,?> learner ) { this.setKernel( kernel ); this.setLearner( learner ); }
/** * Creates a new instance of LocallyWeightedFunction * @param kernel * Kernel that provides the weights between an input and each sample * in the input dataset * @param learner * Learner that takes the Collection of WeightedInputOutputPairs from * the Kernel reweighting and creates a local function approximation at * the given input. I would strongly recommend using fast or closed-form * learners for this. */ public Learner( Kernel<? super InputType> kernel, SupervisedBatchLearner<InputType,OutputType,?> learner ) { this.setKernel( kernel ); this.setLearner( learner ); }
@Override public LocallyWeightedFunction<InputType, OutputType> learn( Collection<? extends InputOutputPair<? extends InputType, OutputType>> data ) { return new LocallyWeightedFunction<InputType, OutputType>( this.getKernel(), data, this.getLearner() ); }
@Override public LocallyWeightedFunction<InputType, OutputType> learn( Collection<? extends InputOutputPair<? extends InputType, OutputType>> data ) { return new LocallyWeightedFunction<InputType, OutputType>( this.getKernel(), data, this.getLearner() ); }