Skip to main content

Key methods of Model

All usage in superduperdb proceeds by changing or setting the attributes of a Component and then calling db.apply.

However it may be useful to know that the following methods specific to Model play a key role. See here for an overview of key-methods specific to Component.

MethodDescriptionOptional
Model.predictPredict on a single data-pointFALSE
Model.predict_batchesPredict on batches of data-pointsFALSE
Model.predict_in_dbPredict and save predictions in dbFALSE
Model.predict_in_db_jobpredict_in_db as compute jobFALSE
Model.validateValidate on datasets with metricsFALSE
Model.validate_in_dbValidate on datasets with metrics and save in dbFALSE
Model.validate_in_db_jobvalidate_in_db as jobFALSE
Model.fitFit on datasetsTRUE
Model.fit_in_dbFit on data in dbTRUE
Model.fit_in_db_job.fit_in_db as jobTRUE