protocol
forecaster_protocol
Protocol for time series forecasting models.
logtalk_load(time_series_protocols(loader))staticPublic predicates
learn/3
Learns a forecasting model from the given time series dataset object using the specified options.
staticlearn(Dataset,Forecaster,Options)learn(+object_identifier,-compound,+list(compound)) - one_or_errorDataset is a variable:instantiation_errorDataset is neither a variable nor a valid object identifier:type_error(object_identifier,Dataset)Dataset is a valid object identifier but not an existing object:existence_error(object,Dataset)Options is a variable:instantiation_errorOptions is neither a variable nor a list:type_error(list,Options)Option of the list Options is a variable:instantiation_errorOption of the list Options is neither a variable nor a compound term:type_error(compound,Option)Option of the list Options is a compound term but not a valid option:domain_error(option,Option)learn/2
Learns a forecasting model from the given time series dataset object using default options.
staticlearn(Dataset,Forecaster)learn(+object_identifier,-compound) - one_or_errorDataset is a variable:instantiation_errorDataset is neither a variable nor a valid object identifier:type_error(object_identifier,Dataset)Dataset is a valid object identifier but not an existing object:existence_error(object,Dataset)forecast/3
Forecasts the next Horizon values beyond the training series using the learned forecasting model. A zero horizon returns an empty list.
staticforecast(Forecaster,Horizon,Forecasts)forecast(+compound,+non_negative_integer,-list(number)) - one_or_errorForecaster is a variable:instantiation_errorForecaster is not a valid forecaster:domain_error(forecaster,Forecaster)Horizon is a variable:instantiation_errorHorizon is neither a variable nor an integer:type_error(integer,Horizon)Horizon is an integer but is negative:domain_error(non_negative_integer,Horizon)check_forecaster/1
Checks that a learned forecaster term is structurally valid for the receiving implementation. Throws an exception when the term is not a valid forecaster representation.
staticcheck_forecaster(Forecaster)check_forecaster(@compound) - one_or_errorForecaster is a variable:instantiation_errorForecaster is neither a variable nor a valid forecaster:domain_error(forecaster,Forecaster)valid_forecaster/1
True when a learned forecaster term is structurally valid for the receiving implementation. Succeeds iff check_forecaster/1 succeeds without throwing an exception.
staticvalid_forecaster(Forecaster)valid_forecaster(@compound) - zero_or_onediagnostics/2
Returns diagnostics metadata for a learned forecaster.
staticdiagnostics(Forecaster,Diagnostics)diagnostics(+compound,-list(compound)) - onediagnostic/2
Enumerates individual diagnostics metadata terms for a learned forecaster.
staticdiagnostic(Forecaster,Diagnostic)diagnostic(+compound,?compound) - zero_or_moreforecaster_options/2
Returns the effective training options recorded in a learned forecaster diagnostics metadata.
staticforecaster_options(Forecaster,Options)forecaster_options(+compound,-list(compound)) - oneexport_to_clauses/4
Converts a forecaster into a list of predicate clauses. Functor is the functor for the generated predicate clauses. When exporting a serialized forecaster term, a noun such as forecaster or model is usually clearer than a verb such as forecast.
staticexport_to_clauses(Dataset,Forecaster,Functor,Clauses)export_to_clauses(+object_identifier,+compound,+atom,-list(clause)) - one_or_errorForecaster or Functor is a variable:instantiation_errorForecaster is not a valid baseline forecaster:domain_error(forecaster,Forecaster)Functor is neither a variable nor an atom:type_error(atom,Functor)export_to_file/4
Exports a forecaster to a file. Functor is the functor for the generated predicate clauses. When exporting a serialized forecaster term, a noun such as forecaster or model is usually clearer than a verb such as forecast.
staticexport_to_file(Dataset,Forecaster,Functor,File)export_to_file(+object_identifier,+compound,+atom,+atom) - one_or_errorForecaster, Functor, or File:instantiation_errorForecaster is not a valid forecaster:domain_error(forecaster,Forecaster)Functor is neither a variable nor an atom:type_error(atom,Functor)File is not a valid file specification:type_error(source_sink,File)existence_error(source_sink,File)permission_error(open,source_sink,File)permission_error(output,stream,Stream)print_forecaster/1
Prints a forecaster to the current output stream in a human-readable format.
staticprint_forecaster(Forecaster)print_forecaster(+compound) - one_or_errorForecaster is a variable:instantiation_errorForecaster is not a valid baseline forecaster:domain_error(forecaster,Forecaster)permission_error(output,stream,Stream)Protected predicates
(none)
Private predicates
(none)
Operators
(none)
See also