All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.etsy.conjecture.model.UpdateableModel Maven / Gradle / Ivy

There is a newer version: 0.2.3
Show newest version
package com.etsy.conjecture.model;

import java.util.Collection;

import com.etsy.conjecture.data.Label;
import com.etsy.conjecture.data.LabeledInstance;

public interface UpdateableModel>
        extends Model, Decomposable {
    // - update the model with a single labeled instance.
    public void update(LabeledInstance instance);

    // - update the model with many labeled instances.
    public void update(Collection> instances);

    // - merge two models together.
    public void merge(M model, double weight);

    // - multiply the parameter vector by a constant.
    public void reScale(double scale);

    // - set whether to add unseen-features when updating.
    public void setFreezeFeatureSet(boolean freeze);

    // - reset the epoch number after model merging.
    public void setEpoch(long epoch);

    public long getEpoch();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy