protocol
regressor_protocol
Protocol for machine learning regressors.
logtalk_load(regression_protocols(loader))staticPublic predicates
learn/3
Learns a regressor from the given dataset object using the specified options.
staticlearn(Dataset,Regressor,Options)learn(+object_identifier,-compound,+list(compound)) - onelearn/2
Learns a regressor from the given dataset object using default options.
staticlearn(Dataset,Regressor)learn(+object_identifier,-compound) - onepredict/3
Predicts the numeric target value for a new instance using the learned regressor. The instance is a list of Attribute-Value pairs.
staticpredict(Regressor,Instance,Target)predict(+compound,+list,-number) - onecheck_regressor/1
Checks that a learned regressor term is structurally valid for the receiving implementation. Throws an exception when the term is not a valid regressor representation.
staticcheck_regressor(Regressor)check_regressor(@compound) - one_or_errorRegressor is a variable:instantiation_errorRegressor is neither a variable nor a valid regressor:domain_error(regressor,Regressor)valid_regressor/1
True when a learned regressor term is structurally valid for the receiving implementation. Succeeds iff check_regressor/1 succeeds without throwing an exception.
staticvalid_regressor(Regressor)valid_regressor(@compound) - zero_or_onediagnostics/2
Returns diagnostics metadata for a learned regressor.
staticdiagnostics(Regressor,Diagnostics)diagnostics(+compound,-list(compound)) - onediagnostic/2
Enumerates individual diagnostics metadata terms for a learned regressor.
staticdiagnostic(Regressor,Diagnostic)diagnostic(+compound,?compound) - zero_or_moreregressor_options/2
Returns the effective options stored in a learned regressor diagnostics metadata.
staticregressor_options(Regressor,Options)regressor_options(+compound,-list(compound)) - oneexport_to_clauses/4
Converts a regressor into a list of predicate clauses. Functor is the functor for the generated predicate clauses. When exporting a serialized regressor term, a noun such as regressor or model is usually clearer than a verb such as predict.
staticexport_to_clauses(Dataset,Regressor,Functor,Clauses)export_to_clauses(+object_identifier,+compound,+callable,-list(clause)) - oneexport_to_file/4
Exports a regressor to a file. Functor is the functor for the generated predicate clauses. When exporting a serialized regressor term, a noun such as regressor or model is usually clearer than a verb such as predict.
staticexport_to_file(Dataset,Regressor,Functor,File)export_to_file(+object_identifier,+compound,+callable,+atom) - oneprint_regressor/1
Prints a regressor to the current output stream in a human-readable format.
staticprint_regressor(Regressor)print_regressor(+compound) - oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)
See also