Skip to content

Saving and loading models

A model holds its classes, their plates, the filters and features with their settings, the normalisation, the feature reduction, the principal components, the trained SVM and its cross-validation matrix.

The bar above the tree shows the model's name, with (SVM not trained) when it has none.

In a file

With the file/database switch on files:

  • Save Model, the floppy disk on the Training Set toolbar, writes a .dbp file. It holds the colony images as well, so it can be large.
  • Load Model, the folder, replaces the current model with one from a .dbp file. If the current one has not been saved, it asks first. Files of older versions of Baclan are read too.

Relinking

Models from old versions record where their plate folders were. If a folder has moved, Baclan offers to relink it: Path: ... does not exist. Relink?. Point it to the folder; the next plate missing from the same place is relinked without asking, and the .dbp is rewritten. Untick Ask For Relink on the Options tab to skip this.

In the database

With the switch on the database:

  • Save Model asks for a name, offering those in the database. A name already there gets a warning.
  • Load Model opens the Database Model dialog: choose a Model, and see its classes and plates. Untick Load Colony Images if you only want to classify: You do not need them unless you are going to train a classifier.

Models can also be copied, renamed and deleted in the Database Control Panel.

Unsaved models

Exit, the red cross at the far right of the top toolbar, asks The Model is not saved. Save? if it has changed: Yes saves it and exits, No exits, Cancel stays. Remove All Classes asks the same, and so does Load Model with the switch on files.

The window's own close box does not ask.

Loading a model at start-up

Auto Load Model File Name on the Options tab, with Auto Mode, loads a .dbp file every time Baclan starts. See Auto Mode.