kenders2000/decisio​nTreeMat2Cpp

converts TreeBagger class, or ClassificationTree Class to text file for use with included C ++ class

https://github.com/kenders2000/decisionTreeMat2Cpp

이 제출물을 팔로우합니다

Introduction
--------------------------------------------------------------------------------
This program takes a decision tree trained in Matlab using TreeBagger or the classification tree function ClassificationTree and outputs a textile containing all the branch information. This text file can be read by the attached C++ class, and then used to make decisions based on presented features in deployed applications.
It is useful for deploying code developed in matlab into other applications / systems as the TreeBagger class is not included in the matlab Coder.

Usage
--------------------------------------------------------------------------------
extractDecTreeStruct.m matlab files takes as input a trained ClassificationTree tree or a TreeBagger classification ensemble, and outputs a text file which can be read by the C++ class DTree in DecisionTreeClass.hpp. in DTree are two methods, readTextFilesTrees reads the decision tree text file outputted by extractDecTreeStruct.m into a number of private arrays. The method decisionTreeFun, then takes as input a series of features and outputs the class (integer number). The files must always have the following postfix : _bag_x.txt, where x is the bag number.

인용 양식

Paul (2026). kenders2000/decisionTreeMat2Cpp (https://github.com/kenders2000/decisionTreeMat2Cpp), GitHub. 검색 날짜: .

카테고리

Help CenterMATLAB Answers에서 Classification에 대해 자세히 알아보기

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 퍼블리시됨 릴리스 정보 Action
1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.