public LearnedType learn( final Collection<? extends DataType> data) { // Convert the data to a multi-collection (if it is one). return this.learn(DatasetUtil.asMultiCollection(data)); }
public LearnedType learn( final Collection<? extends DataType> data) { // Convert the data to a multi-collection (if it is one). return this.learn(DatasetUtil.asMultiCollection(data)); }
public LearnedType learn( final Collection<? extends DataType> data) { // Convert the data to a multi-collection (if it is one). return this.learn(DatasetUtil.asMultiCollection(data)); }
/** * Takes a collection and creates a multi-collection of sequences of * input-output pairs that are from the given sequence with the given * prediction horizon. * * @param <DataType> * The data type to create a prediction dataset for. * @param data * A collection (or multi-collection) to convert into a prediction * collection. * @param predictionHorizon * The prediction horizon to create the prediction dataset over. * Must be positive. * @return * A multi-collection containing the input-output pairs that * correspond to the prediction problem of prediction the output * that is predictionHorizon elements after the input. */ public static <DataType> MultiCollection<InputOutputPair<DataType, DataType>> createPredictionDataset( final Collection<? extends DataType> data, final int predictionHorizon) { final MultiCollection<? extends DataType> multi = DatasetUtil.asMultiCollection(data); return createPredictionDataset(multi, predictionHorizon); }
/** * Takes a collection and creates a multi-collection of sequences of * input-output pairs that are from the given sequence with the given * prediction horizon. * * @param <DataType> * The data type to create a prediction dataset for. * @param data * A collection (or multi-collection) to convert into a prediction * collection. * @param predictionHorizon * The prediction horizon to create the prediction dataset over. * Must be positive. * @return * A multi-collection containing the input-output pairs that * correspond to the prediction problem of prediction the output * that is predictionHorizon elements after the input. */ public static <DataType> MultiCollection<InputOutputPair<DataType, DataType>> createPredictionDataset( final Collection<? extends DataType> data, final int predictionHorizon) { final MultiCollection<? extends DataType> multi = DatasetUtil.asMultiCollection(data); return createPredictionDataset(multi, predictionHorizon); }
/** * Takes a collection and creates a multi-collection of sequences of * input-output pairs that are from the given sequence with the given * prediction horizon. * * @param <DataType> * The data type to create a prediction dataset for. * @param data * A collection (or multi-collection) to convert into a prediction * collection. * @param predictionHorizon * The prediction horizon to create the prediction dataset over. * Must be positive. * @return * A multi-collection containing the input-output pairs that * correspond to the prediction problem of prediction the output * that is predictionHorizon elements after the input. */ public static <DataType> MultiCollection<InputOutputPair<DataType, DataType>> createPredictionDataset( final Collection<? extends DataType> data, final int predictionHorizon) { final MultiCollection<? extends DataType> multi = DatasetUtil.asMultiCollection(data); return createPredictionDataset(multi, predictionHorizon); }
protected boolean initializeAlgorithm() this.multicollection = DatasetUtil.asMultiCollection(this.data);
protected boolean initializeAlgorithm() this.multicollection = DatasetUtil.asMultiCollection(this.data);
protected boolean initializeAlgorithm() this.multicollection = DatasetUtil.asMultiCollection(this.data);