Export classification configuration
I am using the classifier algorithm in eCognition v9. I'm wondering if there's a way to export the Configuration after the process has been Trained, so that I can import it into the algorithm for Applying in another project. It defines the Configuration as a "string variable to store or load the classifier configuration". Thank you.
Was this article helpful?
5 comments
Hi Kristi, the best way to transfer a supervised classification model to another project is via Sample Statistics. You can save the feature space that you set up with the training samples to a .csv file that can be loaded to other projects.
There are 2 tutorials that you may find helpful:
Note that the accuracy assessment tools have been greatly improved in version 10.2 making this much easier and automated via the rule set. We demonstrated these in our latest webinar Welcome to eCognition 10.2.
The scene variable you use in the algorithm contains the trained classification model. Have a look at the string, it is an XML code with the model & training information. The variable is stored with the rule set, so if you load the rule set in another project, you can apply the trained model to the new scene. Please note, there is no option to "further" train the model, I mean with additional samples. The only option is to use the sample statistics from previous projects in combination with samples from the current project (see comment from Keith).
If you want to export/save just the configuration, please save a process with contains the scene variable, for instance the 'supervised classification' process, using the 'Save Rule Set Selection...'
By default it will be saved in the workspace directory. If you keep the default path it will create a results folder and save the *.csv file there. If you haven't saved the project and your working in the default workspace, it will create a results folder in the directory of input image file and you will find the file there.
Default path is:
Hope that helps?
Cheers,
Matthias
Thank you for this post. I'm currently trying to train a random forest classifier on one raster and I want to apply the classifer to a new (different) raster. I was reviewing the ruleset from Christian Weise - Classifier Example Ruleset and I am not sure where / how the 'SampleStatistics_Classifier Example.csv gets saved.