当前位置: 首页 > news >正文

特效素材免费下载网站c 网站开发 简单例子

特效素材免费下载网站,c 网站开发 简单例子,石家庄网页设计制作,公司做网站需要注意什么事情记录了使用for循环实现网格搜索的简单框架。 使用df_search记录每种超参数组合下的运行结果。 lgb_model.best_score返回模型的最佳得分 lgb_model.best_iteration_返回模型的最佳iteration也就是最佳n_extimator import numpy as np import pandas as pd import lightgbm as …记录了使用for循环实现网格搜索的简单框架。 使用df_search记录每种超参数组合下的运行结果。 lgb_model.best_score返回模型的最佳得分 lgb_model.best_iteration_返回模型的最佳iteration也就是最佳n_extimator import numpy as np import pandas as pd import lightgbm as lgbdf pd.read_csv(this_is_train.csv) df_search_columns [learning_rate, num_leaves, max_depth,subsample,colsample_bytree,best_iteration,best_score] df_search pd.DataFrame(columnsdf_search_columns ) # colsample_bytree :0.9, learning_rate : 0.001 lgb_params {objective: mae, # maen_estimators: 6000,num_leaves: 256, # 256subsample: 0.6,colsample_bytree: 0.8,learning_rate: 0.00571, # 0.00871max_depth: 11, # 11n_jobs: 4,device: gpu,verbosity: -1,importance_type: gain, } for learning_rate in [0.001,0.005,0.01,0.015,0.05]:for num_leaves in [300,256,200,150]:for max_depth in [15,13,11,9,7]:for subsample in [0.8,0.6,0.5]:for colsample_bytree in [0.9,0.8,0.7]:print(flearning_rate : {learning_rate}, num_leaves : {num_leaves}, max_depth{max_depth}, subsample : {subsample}, colsample_bytree : {colsample_bytree})lgb_params[learning_rate] learning_ratelgb_params[num_leaves] num_leaveslgb_params[max_depth] max_depthlgb_params[subsample] subsamplelgb_params[colsample_bytree] colsample_bytree# Train a LightGBM model for the current foldlgb_model lgb.LGBMRegressor(**lgb_params)lgb_model.fit(train_feats,train_target,eval_set[(valid_feats, valid_target)],callbacks[lgb.callback.early_stopping(stopping_rounds100),lgb.callback.log_evaluation(period100),],)best_iteration lgb_model.best_iteration_best_score lgb_model.best_score_cache pd.DataFrame([[learning_rate,num_leaves,max_depth,subsample,colsample_bytree,best_iteration,best_score]],columns[learning_rate, num_leaves, max_depth,subsample,colsample_bytree,best_iteration,best_score])df_search pd.concat([df_search, cache], ignore_indexTrue, axis0) df_search.to_csv(grid_search.csv,indexFalse)使用该框架需要调整训练数据df部分以及进行网格的备选数据和lightgbm的超参数。 每次运行的数据通过一下代码进行记录 cache pd.DataFrame([[learning_rate,num_leaves,max_depth,subsample,colsample_bytree,best_iteration,best_score]],\columnsdf_search_columns ) df_search pd.concat([df_search, cache], ignore_indexTrue, axis0)
http://www.hkea.cn/news/14314816/

相关文章:

  • 网站维护属于什么部门凡客诚品的商业模式
  • 网站什么时候恢复彩色海南省住房和城市建设厅网站
  • 嘉兴网站建设优化无忧中英繁企业网站系统 完整
  • 先做网站再备案吗素材网站
  • 3d地图网站模板html网站域名是什么东西
  • 宁波网站建设软件开发redux wordpress
  • 工信部怎么查网站备案如何做做网站
  • 浩森宇特北京网站设计徐州网站制作建设
  • 蓝色织梦cms企业网站模板全站源码wordpress tag 插件
  • 做网站需要团队还是一个人电商网站建设信息
  • 电商网站设计江苏林润建设工程有限公司网站
  • 重庆哪家做网站毕业设计做购物网站的要求
  • 深圳品牌网站建设广州做礼物的网站
  • 网站建设五合一php网站后台页面
  • 网站推广软文选天天软文网页设计与制作课程教学总结
  • 网站建设的拓扑结构年报申报入口
  • thinkphp网站开发服务员工支付做网站的费用分录
  • wordpress 即时站内搜索营销单页网站
  • 营销型 网站开发郑州团购网站建设
  • 织梦动漫网站模板百度还原
  • 网站备案的公司注销了网站软件开发招聘
  • 怎么做注册账号的网站做网站想要个计算器功能
  • 网站开发实战项目safari浏览器
  • 服务好又优惠的网站制作中国建设银行手机银行下载
  • 服装网站建设策划书3000字网页样式与布局
  • 做网站 带宽 多少钱宁波网站推广渠道
  • 北京南站是丰台站吗劳务工程信息平台
  • 甜品网站首页设计杭州拱墅区网站建设
  • 梅州站改造高铁站济南seo排名关键词
  • 专业做网站公司怎么样wordpress本地搭建网站