Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
cosmoplat-dev
Bayesian-Model-Based-Optimization
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Bayesian-Model-Based-Optimization
/
readme.txt
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
27 lines (14 loc) · 977 Bytes
master
Breadcrumbs
Bayesian-Model-Based-Optimization
/
readme.txt
Copy path
Top
File metadata and controls
Code
Blame
27 lines (14 loc) · 977 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
结论
在本文中,我们看到了使用Hyperopt实现基于贝叶斯模型的优化的基本实现。这需要四个部分:
目标:我们想要最小化的东西
域:使目标最小化的参数值
超参数优化函数:如何构建代理函数和下一个值
由分数、参数对组成的试验
随机搜索和基于顺序模型的优化之间的区别很明显:随机搜索是不知情的,因此需要更多的试验来最小化目标函数。树Parzen估计器(一种用于SMBO的算法)花费了更多的时间选择下一个值,但是总体上需要对目标函数进行更少的评估,因为它能够推断出下一个要评估的值。经过多次迭代,SMBO算法集中在最有前途的值周围进行搜索,结果如下:
目标函数得分较低
更快的优化
基于贝叶斯模型的优化意味着构建一个概率模型
??(??|??)
p(y | x)
并对模型进行了更新,收集了更多的信息。随着评价次数的增加,模型(也称为代理函数)成为目标函数更精确的描述,算法花费更多的时间来评估有价值的值。
这个笔记本展示了使用Hyperopt实现的基于贝叶斯模型的优化的基本实现,但是我们已经可以看到它如何比基于随机或网格搜索的方法有显著的优势。在未来的笔记中,我们将探索使用基于贝叶斯模型的优化更复杂的问题,即机器学习模型的超参数优化。
You can’t perform that action at this time.