def setup(self):
"""
This function ...
:return:
"""
# Call the setup of the base class
super(Classifier, self).setup()
# Create the vector classifier
self.vector_classifier = svm.SVC(gamma=0.001, C=100.) # support vector classification
# Determine the path to the collection directory for the current mode
collection_mode_path = os.path.join(self.collection_user_path, self.config.mode)
# Determine the paths to the 'yes' and 'no' saturation collection directories
self.yes_path = os.path.join(collection_mode_path, "yes")
self.no_path = os.path.join(collection_mode_path, "no")
# Determine the path to the classification directory for the current mode
self.classification_mode_path = os.path.join(self.classification_user_path, self.config.mode)
# -----------------------------------------------------------------
评论列表
文章目录