René's URL Explorer Experiment


Title: GitHub - ChromatinRemodeling/Decision_tree-python: 决策树分类(ID3,C4.5,CART) · GitHub

Open Graph Title: GitHub - ChromatinRemodeling/Decision_tree-python: 决策树分类(ID3,C4.5,CART)

X Title: GitHub - ChromatinRemodeling/Decision_tree-python: 决策树分类(ID3,C4.5,CART)

Description: 决策树分类(ID3,C4.5,CART). Contribute to ChromatinRemodeling/Decision_tree-python development by creating an account on GitHub.

Open Graph Description: 决策树分类(ID3,C4.5,CART). Contribute to ChromatinRemodeling/Decision_tree-python development by creating an account on GitHub.

X Description: 决策树分类(ID3,C4.5,CART). Contribute to ChromatinRemodeling/Decision_tree-python development by creating an account on GitHub.

Opengraph URL: https://github.com/ChromatinRemodeling/Decision_tree-python

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:8ac9c6f0-614a-0289-89f1-378dd9506451
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idE472:34A153:1D013:24F7F:6A4C11C9
html-safe-nonce1af4970ad6abe7d38d936efc7a138c1794b85947b2ee19a0f8d15c55d3cffa9f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDcyOjM0QTE1MzoxRDAxMzoyNEY3Rjo2QTRDMTFDOSIsInZpc2l0b3JfaWQiOiIyNDI1MjU5OTUwOTgyNTY2MzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac629610869fe89305f536e10a703b5c09455ba7e993b1b1f9177be52977324faf
hovercard-subject-tagrepository:247898216
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/ChromatinRemodeling/Decision_tree-python
twitter:imagehttps://opengraph.githubassets.com/06dddee82ee38901d67d7f92061e9f26f1df465eab106df2463209ba3c6df927/ChromatinRemodeling/Decision_tree-python
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/06dddee82ee38901d67d7f92061e9f26f1df465eab106df2463209ba3c6df927/ChromatinRemodeling/Decision_tree-python
og:image:alt决策树分类(ID3,C4.5,CART). Contribute to ChromatinRemodeling/Decision_tree-python development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0ccfc9e5281bfe12e38a4d632dc422843e4d5b6757917f7efda2f6567d72fea9
turbo-cache-controlno-cache
go-importgithub.com/ChromatinRemodeling/Decision_tree-python git https://github.com/ChromatinRemodeling/Decision_tree-python.git
octolytics-dimension-user_id56991815
octolytics-dimension-user_loginChromatinRemodeling
octolytics-dimension-repository_id247898216
octolytics-dimension-repository_nwoChromatinRemodeling/Decision_tree-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id132760150
octolytics-dimension-repository_parent_nwoErikfather/Decision_tree-python
octolytics-dimension-repository_network_root_id132760150
octolytics-dimension-repository_network_root_nwoErikfather/Decision_tree-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release18812876666a23a0912556e224383baa4c84cf8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ChromatinRemodeling/Decision_tree-python#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FChromatinRemodeling%2FDecision_tree-python
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FChromatinRemodeling%2FDecision_tree-python
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=ChromatinRemodeling%2FDecision_tree-python
Reloadhttps://github.com/ChromatinRemodeling/Decision_tree-python
Reloadhttps://github.com/ChromatinRemodeling/Decision_tree-python
Reloadhttps://github.com/ChromatinRemodeling/Decision_tree-python
ChromatinRemodeling https://github.com/ChromatinRemodeling
Decision_tree-pythonhttps://github.com/ChromatinRemodeling/Decision_tree-python
Erikfather/Decision_tree-pythonhttps://github.com/Erikfather/Decision_tree-python
Notifications https://github.com/login?return_to=%2FChromatinRemodeling%2FDecision_tree-python
Fork 0 https://github.com/login?return_to=%2FChromatinRemodeling%2FDecision_tree-python
Star 0 https://github.com/login?return_to=%2FChromatinRemodeling%2FDecision_tree-python
Code https://github.com/ChromatinRemodeling/Decision_tree-python
Pull requests 0 https://github.com/ChromatinRemodeling/Decision_tree-python/pulls
Actions https://github.com/ChromatinRemodeling/Decision_tree-python/actions
Projects https://github.com/ChromatinRemodeling/Decision_tree-python/projects
Security and quality 0 https://github.com/ChromatinRemodeling/Decision_tree-python/security
Insights https://github.com/ChromatinRemodeling/Decision_tree-python/pulse
Code https://github.com/ChromatinRemodeling/Decision_tree-python
Pull requests https://github.com/ChromatinRemodeling/Decision_tree-python/pulls
Actions https://github.com/ChromatinRemodeling/Decision_tree-python/actions
Projects https://github.com/ChromatinRemodeling/Decision_tree-python/projects
Security and quality https://github.com/ChromatinRemodeling/Decision_tree-python/security
Insights https://github.com/ChromatinRemodeling/Decision_tree-python/pulse
https://github.com/ChromatinRemodeling/Decision_tree-python
Brancheshttps://github.com/ChromatinRemodeling/Decision_tree-python/branches
Tagshttps://github.com/ChromatinRemodeling/Decision_tree-python/tags
https://github.com/ChromatinRemodeling/Decision_tree-python/branches
https://github.com/ChromatinRemodeling/Decision_tree-python/tags
17 Commitshttps://github.com/ChromatinRemodeling/Decision_tree-python/commits/master/
https://github.com/ChromatinRemodeling/Decision_tree-python/commits/master/
pic_resultshttps://github.com/ChromatinRemodeling/Decision_tree-python/tree/master/pic_results
pic_resultshttps://github.com/ChromatinRemodeling/Decision_tree-python/tree/master/pic_results
README.mdhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/README.md
README.mdhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/README.md
dataset.jpghttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/dataset.jpg
dataset.jpghttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/dataset.jpg
dataset.txthttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/dataset.txt
dataset.txthttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/dataset.txt
testdata.jpghttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/testdata.jpg
testdata.jpghttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/testdata.jpg
testset.txthttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/testset.txt
testset.txthttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/testset.txt
tree.pyhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/tree.py
tree.pyhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/tree.py
treePlotter.pyhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/treePlotter.py
treePlotter.pyhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/treePlotter.py
数据表.jpghttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/%E6%95%B0%E6%8D%AE%E8%A1%A8.jpg
数据表.jpghttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/%E6%95%B0%E6%8D%AE%E8%A1%A8.jpg
数据表.xlsxhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/%E6%95%B0%E6%8D%AE%E8%A1%A8.xlsx
数据表.xlsxhttps://github.com/ChromatinRemodeling/Decision_tree-python/blob/master/%E6%95%B0%E6%8D%AE%E8%A1%A8.xlsx
READMEhttps://github.com/ChromatinRemodeling/Decision_tree-python
https://github.com/ChromatinRemodeling/Decision_tree-python#decision_tree-python
https://github.com/ChromatinRemodeling/Decision_tree-python#决策树分类id3c45cart
https://github.com/ChromatinRemodeling/Decision_tree-python#三种算法的区别如下
https://github.com/ChromatinRemodeling/Decision_tree-python#1-id3算法以信息增益为准则来进行选择划分属性选择信息增益最大的
https://github.com/ChromatinRemodeling/Decision_tree-python#2-c45算法先从候选划分属性中找出信息增益高于平均水平的属性再从中选择增益率最高的
https://github.com/ChromatinRemodeling/Decision_tree-python#3-cart算法使用基尼指数来选择划分属性选择基尼值最小的属性作为划分属性
https://github.com/ChromatinRemodeling/Decision_tree-python#本次实验我的数据集如下所示
https://github.com/ChromatinRemodeling/Decision_tree-python#共分为四个属性特征年龄段有工作有自己的房子信贷情况
https://github.com/ChromatinRemodeling/Decision_tree-python#现根据这四种属性特征来决定是否给予贷款
https://github.com/Erikfather/Decision_tree-python/blob/master/%E6%95%B0%E6%8D%AE%E8%A1%A8.jpg
https://github.com/ChromatinRemodeling/Decision_tree-python#为了方便我对数据集进行如下处理
https://github.com/ChromatinRemodeling/Decision_tree-python#在编写代码之前我们先对数据集进行属性标注
https://github.com/ChromatinRemodeling/Decision_tree-python#0年龄0代表青年1代表中年2代表老年
https://github.com/ChromatinRemodeling/Decision_tree-python#1有工作0代表否1代表是
https://github.com/ChromatinRemodeling/Decision_tree-python#2有自己的房子0代表否1代表是
https://github.com/ChromatinRemodeling/Decision_tree-python#3信贷情况0代表一般1代表好2代表非常好
https://github.com/ChromatinRemodeling/Decision_tree-python#4类别是否给贷款no代表否yes代表是
https://github.com/ChromatinRemodeling/Decision_tree-python#存入txt文件中
https://github.com/Erikfather/Decision_tree-python/blob/master/dataset.jpg
https://github.com/ChromatinRemodeling/Decision_tree-python#然后分别利用id3c45cart三种算法对数据集进行决策树分类
https://github.com/ChromatinRemodeling/Decision_tree-python#具体代码见treepy和treeplotterpy
https://github.com/ChromatinRemodeling/Decision_tree-python#实验结果如下
https://github.com/ChromatinRemodeling/Decision_tree-python#1先将txt中数据读入数组并打印出数据集长度即共有多少条数据并计算出起始信息熵entd然后分别找出三种算法的首个最优特征索引
https://github.com/Erikfather/Decision_tree-python/blob/master/pic_results/first_find_bset_Index.jpg
https://github.com/ChromatinRemodeling/Decision_tree-python#2下面通过相应的最优划分属性分别创建相应的决策树并对测试集进行测试测试集如下
https://github.com/Erikfather/Decision_tree-python/blob/master/testdata.jpg
https://github.com/ChromatinRemodeling/Decision_tree-python#结果如下
https://github.com/ChromatinRemodeling/Decision_tree-python#id3算法
https://github.com/Erikfather/Decision_tree-python/blob/master/pic_results/ID3.jpg
https://github.com/Erikfather/Decision_tree-python/blob/master/pic_results/figure_ID3.jpg
https://github.com/ChromatinRemodeling/Decision_tree-python#c45算法
https://github.com/Erikfather/Decision_tree-python/blob/master/pic_results/C4.5.jpg
https://github.com/Erikfather/Decision_tree-python/blob/master/pic_results/figure_C4.5.jpg
https://github.com/ChromatinRemodeling/Decision_tree-python#cart算法
https://github.com/Erikfather/Decision_tree-python/blob/master/pic_results/CART.jpg
https://github.com/Erikfather/Decision_tree-python/blob/master/pic_results/figure_CART.jpg
https://github.com/ChromatinRemodeling/Decision_tree-python#由上面结果可以看出
https://github.com/ChromatinRemodeling/Decision_tree-python#1id3和c45的最优索引以及决策树形图是相同的而cart的最优索引以及决策树形图与前面两者不同这与它们的选择标准以及训练集有关
https://github.com/ChromatinRemodeling/Decision_tree-python#2但同时我们也发现三种算法对测试集的测试结果是相同的经过后期手动匹配结果完全正确这说明我们的决策树实验结果是正确的
Readme https://github.com/ChromatinRemodeling/Decision_tree-python#readme-ov-file
Please reload this pagehttps://github.com/ChromatinRemodeling/Decision_tree-python
Activityhttps://github.com/ChromatinRemodeling/Decision_tree-python/activity
0 forkshttps://github.com/ChromatinRemodeling/Decision_tree-python/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FChromatinRemodeling%2FDecision_tree-python&report=ChromatinRemodeling+%28user%29
Releaseshttps://github.com/ChromatinRemodeling/Decision_tree-python/releases
Packages 0https://github.com/users/ChromatinRemodeling/packages?repo_name=Decision_tree-python
Please reload this pagehttps://github.com/ChromatinRemodeling/Decision_tree-python
Contributorshttps://github.com/ChromatinRemodeling/Decision_tree-python/graphs/contributors
Please reload this pagehttps://github.com/ChromatinRemodeling/Decision_tree-python
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.