public class FeatureTransformPLDyadRanker extends java.lang.Object implements IPLDyadRanker
| Constructor and Description |
|---|
FeatureTransformPLDyadRanker()
Constructs a new feature transform Placket-Luce dyad ranker with bilinear
feature transformation.
|
FeatureTransformPLDyadRanker(IDyadFeatureTransform featureTransform)
Constructs a new feature transform Placket-Luce dyad ranker with the given
feature transformation method.
|
| Modifier and Type | Method and Description |
|---|---|
IPredictiveModelConfiguration |
getConfiguration()
Returns the
IPredictiveModelConfiguration of this model. |
java.util.List<IDyadRankingInstance> |
predict(DyadRankingDataset dataset)
Performs multiple predictions based on the
IInstances contained in
the given AILabeledAttributeArrayDatasets and returns the result. |
IDyadRankingInstance |
predict(IDyadRankingInstance instance)
Performs a prediction based on the given
IInstance and returns the
result. |
void |
setConfiguration(IPredictiveModelConfiguration configuration)
Sets the
IPredictiveModelConfiguration of this model to the given
one. |
void |
train(DyadRankingDataset dataset)
Trains this
IBatchLearner using the given AILabeledAttributeArrayDataset. |
public FeatureTransformPLDyadRanker()
public FeatureTransformPLDyadRanker(IDyadFeatureTransform featureTransform)
featureTransform - the feature transformation method to usepublic IDyadRankingInstance predict(IDyadRankingInstance instance) throws PredictionException
IPredictiveModelIInstance and returns the
result.predict in interface IPredictiveModel<IDyadRankingInstance,IDyadRankingInstance,DyadRankingDataset>instance - The IInstance for which a prediction should be made.PredictionException - If something fails during the prediction process.public java.util.List<IDyadRankingInstance> predict(DyadRankingDataset dataset) throws PredictionException
IPredictiveModelIInstances contained in
the given AILabeledAttributeArrayDatasets and returns the result.predict in interface IPredictiveModel<IDyadRankingInstance,IDyadRankingInstance,DyadRankingDataset>dataset - The AILabeledAttributeArrayDataset for which predictions should be made.PredictionException - If something fails during the prediction process.public void train(DyadRankingDataset dataset) throws TrainingException
IBatchLearnerIBatchLearner using the given AILabeledAttributeArrayDataset.train in interface IBatchLearner<IDyadRankingInstance,IDyadRankingInstance,DyadRankingDataset>dataset - The AILabeledAttributeArrayDataset which should be used for the training.TrainingException - If something fails during the training process.public IPredictiveModelConfiguration getConfiguration()
IPredictiveModelIPredictiveModelConfiguration of this model.getConfiguration in interface IPredictiveModel<IDyadRankingInstance,IDyadRankingInstance,DyadRankingDataset>IPredictiveModelConfiguration of this model.public void setConfiguration(IPredictiveModelConfiguration configuration) throws ConfigurationException
IPredictiveModelIPredictiveModelConfiguration of this model to the given
one.setConfiguration in interface IPredictiveModel<IDyadRankingInstance,IDyadRankingInstance,DyadRankingDataset>ConfigurationException - If something fails during the configuration process.