classification.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:CAAPR 作者: Stargrazer82301 项目源码 文件源码
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)

    # -----------------------------------------------------------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号