pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    • <bdo id='jjMs3'></bdo><ul id='jjMs3'></ul>

    <tfoot id='jjMs3'></tfoot>

  • <legend id='jjMs3'><style id='jjMs3'><dir id='jjMs3'><q id='jjMs3'></q></dir></style></legend>
  • <i id='jjMs3'><tr id='jjMs3'><dt id='jjMs3'><q id='jjMs3'><span id='jjMs3'><b id='jjMs3'><form id='jjMs3'><ins id='jjMs3'></ins><ul id='jjMs3'></ul><sub id='jjMs3'></sub></form><legend id='jjMs3'></legend><bdo id='jjMs3'><pre id='jjMs3'><center id='jjMs3'></center></pre></bdo></b><th id='jjMs3'></th></span></q></dt></tr></i><div class="imws0yq" id='jjMs3'><tfoot id='jjMs3'></tfoot><dl id='jjMs3'><fieldset id='jjMs3'></fieldset></dl></div>

        <small id='jjMs3'></small><noframes id='jjMs3'>

        如何修復/調試 scikit learn 中引發的這個多進程終

        How do I fix/debug this Multi-Process terminated worker error thrown in scikit learn(如何修復/調試 scikit learn 中引發的這個多進程終止工作錯誤)

            <tbody id='ElsNY'></tbody>

              <i id='ElsNY'><tr id='ElsNY'><dt id='ElsNY'><q id='ElsNY'><span id='ElsNY'><b id='ElsNY'><form id='ElsNY'><ins id='ElsNY'></ins><ul id='ElsNY'></ul><sub id='ElsNY'></sub></form><legend id='ElsNY'></legend><bdo id='ElsNY'><pre id='ElsNY'><center id='ElsNY'></center></pre></bdo></b><th id='ElsNY'></th></span></q></dt></tr></i><div class="wkg0oky" id='ElsNY'><tfoot id='ElsNY'></tfoot><dl id='ElsNY'><fieldset id='ElsNY'></fieldset></dl></div>
                <bdo id='ElsNY'></bdo><ul id='ElsNY'></ul>
                <legend id='ElsNY'><style id='ElsNY'><dir id='ElsNY'><q id='ElsNY'></q></dir></style></legend>
                <tfoot id='ElsNY'></tfoot>

                <small id='ElsNY'></small><noframes id='ElsNY'>

                • 本文介紹了如何修復/調試 scikit learn 中引發的這個多進程終止工作錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我最近設置了一臺新機器,以幫助減少擬合模型和數據處理的運行時間.

                  I recently set up a new machine to aid in decreasing run times for fitting models and data wrangling.

                  我做了一些初步的基準測試,一切都很順利,但是當我嘗試在 scikit learn 中啟用多進程工作者時遇到了障礙.

                  I did some preliminary benchmarks and everything is mostly smoothe, but I ran into a snag when I tried enabling multi-process workers with in scikit learn.

                  我已將錯誤簡化為與我的原始代碼無關,因為我在不同的機器和 VM 上啟用了此功能而沒有問題.

                  I've simplified the error to not be associated with my original code as I enabled this feature without a problem on a different machine and a VM.

                  我還進行了內存分配檢查,以確保我的機器沒有用完可用的 RAM.我有 16gb 的 RAM,所以應該沒有問題,但我留下了測試的輸出,以防我錯過了一些東西.

                  I've also done memory allocation checks to make sure my machine wasn't running out of available RAM. I have 16gb of RAM so there should be no issue, but I've left the output of the test incase I missed something.

                  鑒于附近的回溯錯誤,我可以告訴我的操作系統正在殺死它,但對于我的生活,我無法弄清楚為什么.據我所知,我的代碼僅在僅使用單個 CPU 內核時才會運行.

                  Given the traceback error near I can tell my OS is killing this, but for the life of me I can't figure out why. Near as I can tell my code will ONLY run when it is just using a single CPU core.

                  我運行的是 Windows 10、AMD ryzen 7 2700x、16GB RAM

                  I'm running Windows 10, AMD ryzen 7 2700x, 16GB RAM

                  import sklearn
                  import numpy as np
                  import tracemalloc
                  import time
                  
                  
                  from sklearn.model_selection import cross_val_score
                  from numpy.random import randn
                  from sklearn.linear_model import Ridge
                  
                  
                  ##################### memory allocation snapshot
                  
                  tracemalloc.start()
                  
                  start_time = time.time()
                  snapshot1 = tracemalloc.take_snapshot()
                  
                  ###################### model
                  
                  X = randn(815000, 100)
                  y = randn(815000, 1)
                  mod = Ridge()
                  sc = cross_val_score(mod, X, y,verbose =10, n_jobs=3)
                  
                  ################### Second memory allocation snapshot
                  
                  snapshot2 = tracemalloc.take_snapshot()
                  top_stats = snapshot2.compare_to(snapshot1, 'lineno')
                  
                  print("[ Top 10 ]")
                  for stat in top_stats[:5]:
                  print(stat)
                  

                  由此得出的預期結果非常明顯,只是擬合模型的返回分數.

                  The expected results from this are pretty obvious, just a returned score with the fit model.

                  [Parallel(n_jobs=3)]: Using backend LokyBackend with 3 concurrent workers.
                  [Parallel(n_jobs=3)]: Done   3 out of   3 | elapsed:    0.2s remaining:    0.0s
                  ---------------------------------------------------------------------------
                  TerminatedWorkerError                     Traceback (most recent call last)
                  <ipython-input-18-b2bdfd425f82> in <module>
                       16 y = randn(815000, 1)
                       17 mod = Ridge()
                  ---> 18 sc = cross_val_score(mod, X, y,verbose =10, n_jobs=3)
                  
                  ..........
                  
                  TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. 
                  This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.
                  

                  內存輸出

                  [ Top 5 ]
                  <ipython-input-18-b2bdfd425f82>:15: size=622 MiB (+622 MiB), count=3 (+3), average=207 MiB
                  <ipython-input-18-b2bdfd425f82>:16: size=6367 KiB (+6367 KiB), count=3 (+3), average=2122 KiB
                  ~python37libinspect.py:732: size=37.2 KiB (+26.2 KiB), count=596 (+419), average=64 B
                  ~python37libsite-packagessklearnexternalsjoblib
                  umpy_pickle.py:292: size=7072 B (+3808 B), count=13 (+7), average=544 B
                  ~python37libpickle.py:549: size=5728 B (+3408 B), count=14 (+8), average=409 B
                  

                  推薦答案

                  我發現我的 scipy 模塊與我的 windows 10 C++ 可再發行版本不兼容.

                  I figured out the my scipy module was incompatible with my windows 10 C++ redistributable version.

                  我所做的只是下載最新的 Visual Studio 并安裝單個組件"部分中列出的 C++ 可再發行更新.

                  All i did was download the latest visual studio and installed the C++ redistributable update that is listed in the "individual components" section.

                  安裝后,我重新啟動計算機并運行.

                  Once I installed that I restarted my computer and ran.

                  import scipy
                  scipy.test()
                  

                  一旦它實際運行,我嘗試了上面的代碼塊并修復了它.

                  Once that was actually running I attempted my code block above and it fixed.

                  我認為這歸結為使用全新版本的 python 和 scipy 安裝舊版本的 windows 10

                  I think what this boils down to is installing an old build of windows 10 with a brand new version of python and scipy

                  這需要很長時間來解決和調試.希望對您有所幫助.

                  This took a LONG time to solve and debug. Hopefully it helps.

                  這篇關于如何修復/調試 scikit learn 中引發的這個多進程終止工作錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What exactly is Python multiprocessing Module#39;s .join() Method Doing?(Python 多處理模塊的 .join() 方法到底在做什么?)
                  Passing multiple parameters to pool.map() function in Python(在 Python 中將多個參數傳遞給 pool.map() 函數)
                  multiprocessing.pool.MaybeEncodingError: #39;TypeError(quot;cannot serialize #39;_io.BufferedReader#39; objectquot;,)#39;(multiprocessing.pool.MaybeEncodingError: TypeError(cannot serialize _io.BufferedReader object,)) - IT屋-程序員軟件開
                  Python Multiprocess Pool. How to exit the script when one of the worker process determines no more work needs to be done?(Python 多進程池.當其中一個工作進程確定不再需要完成工作時,如何退出腳本?) - IT屋-程序員
                  How do you pass a Queue reference to a function managed by pool.map_async()?(如何將隊列引用傳遞給 pool.map_async() 管理的函數?)
                  yet another confusion with multiprocessing error, #39;module#39; object has no attribute #39;f#39;(與多處理錯誤的另一個混淆,“模塊對象沒有屬性“f)

                      <legend id='cq1yw'><style id='cq1yw'><dir id='cq1yw'><q id='cq1yw'></q></dir></style></legend>
                        <tbody id='cq1yw'></tbody>

                      <small id='cq1yw'></small><noframes id='cq1yw'>

                      • <bdo id='cq1yw'></bdo><ul id='cq1yw'></ul>
                        <i id='cq1yw'><tr id='cq1yw'><dt id='cq1yw'><q id='cq1yw'><span id='cq1yw'><b id='cq1yw'><form id='cq1yw'><ins id='cq1yw'></ins><ul id='cq1yw'></ul><sub id='cq1yw'></sub></form><legend id='cq1yw'></legend><bdo id='cq1yw'><pre id='cq1yw'><center id='cq1yw'></center></pre></bdo></b><th id='cq1yw'></th></span></q></dt></tr></i><div class="cwk0qmw" id='cq1yw'><tfoot id='cq1yw'></tfoot><dl id='cq1yw'><fieldset id='cq1yw'></fieldset></dl></div>

                        • <tfoot id='cq1yw'></tfoot>
                          1. 主站蜘蛛池模板: 换网器_自动换网器_液压换网器--郑州海科熔体泵有限公司 | 包塑软管|金属软管|包塑金属软管-闵彬管业 | 节流截止放空阀-不锈钢阀门-气动|电动截止阀-鸿华阀门有限公司 | 齿轮减速电机一体机_蜗轮蜗杆减速马达-德国BOSERL齿轮减速机带电机生产厂家 | 自清洗过滤器_全自动过滤器_全自动反冲洗过滤器_量子过滤器-滑漮滴 | 耐驰泵阀管件制造-耐驰泵阀科技(天津)有限公司 | 艾默生变频器,艾默生ct,变频器,ct驱动器,广州艾默生变频器,供水专用变频器,风机变频器,电梯变频器,艾默生变频器代理-广州市盟雄贸易有限公司官方网站-艾默生变频器应用解决方案服务商 | 大型果蔬切片机-水果冬瓜削皮机-洗菜机切菜机-肇庆市凤翔餐饮设备有限公司 | 合肥角钢_合肥槽钢_安徽镀锌管厂家-昆瑟商贸有限公司 | 南京兰江泵业有限公司-水解酸化池潜水搅拌机-絮凝反应池搅拌机-好氧区潜水推进器 | 小型手持气象站-空气负氧离子监测站-多要素微气象传感器-山东天合环境科技有限公司 | 学校用栓剂模,玻璃瓶轧盖钳,小型安瓿熔封机,实验室安瓿熔封机-长沙中亚制药设备有限公司 | 环氧乙烷灭菌器_压力蒸汽灭菌器_低温等离子过氧化氢灭菌器 _低温蒸汽甲醛灭菌器_清洗工作站_医用干燥柜_灭菌耗材-环氧乙烷灭菌器_脉动真空压力蒸汽灭菌器_低温等离子灭菌设备_河南省三强医疗器械有限责任公司 | 铆钉机|旋铆机|东莞旋铆机厂家|鸿佰专业生产气压/油压/自动铆钉机 | 臭氧灭菌箱-油桶加热箱-原料桶加热融化烘箱-南京腾阳干燥设备厂 臭氧发生器_臭氧消毒机 - 【同林品牌 实力厂家】 | 沈阳庭院景观设计_私家花园_别墅庭院设计_阳台楼顶花园设计施工公司-【沈阳现代时园艺景观工程有限公司】 | 中式装修设计_室内中式装修_【云臻轩】中式设计机构 | 聚氨酯保温钢管_聚氨酯直埋保温管道_聚氨酯发泡保温管厂家-沧州万荣防腐保温管道有限公司 | 贝壳粉涂料-内墙腻子-外墙腻子-山东巨野七彩贝壳漆业中心 | 机构创新组合设计实验台_液压实验台_气动实训台-戴育教仪厂 | 旋振筛_不锈钢旋振筛_气旋筛_旋振筛厂家—新乡市大汉振动机械有限公司 | led冷热冲击试验箱_LED高低温冲击试验箱_老化试验箱-爱佩百科 | 作文导航网_作文之家_满分作文_优秀作文_作文大全_作文素材_最新作文分享发布平台 | 东亚液氮罐-液氮生物容器-乐山市东亚机电工贸有限公司 | 健身器材-健身器材厂家专卖-上海七诚健身器材有限公司 | 微妙网,专业的动画师、特效师、CG模型设计师网站! - wmiao.com 超声波电磁流量计-液位计-孔板流量计-料位计-江苏信仪自动化仪表有限公司 | 车件|铜件|车削件|车床加工|五金冲压件-PIN针,精密车件定制专业厂商【东莞品晔】 | 粒米特测控技术(上海)有限公司-测功机_减速机测试台_电机测试台 | 电池高低温试验箱-气态冲击箱-双层电池防爆箱|简户百科 | 金属抛光机-磁悬浮抛光机-磁力研磨机-磁力清洗机 - 苏州冠古科技 | 蒜肠网-动漫,二次元,COSPLAY,漫展以及收藏型模型,手办,玩具的新媒体.(原变形金刚变迷TF圈) | 天然鹅卵石滤料厂家-锰砂滤料-石英砂滤料-巩义东枫净水 | 济南品牌包装设计公司_济南VI标志设计公司_山东锐尚文化传播 | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 全自动实验室洗瓶机,移液管|培养皿|进样瓶清洗机,清洗剂-广州摩特伟希尔机械设备有限责任公司 | 抓斗式清污机|螺杆式|卷扬式启闭机|底轴驱动钢坝|污水处理闸门-方源水利机械 | 智能垃圾箱|垃圾房|垃圾分类亭|垃圾分类箱专业生产厂家定做-宿迁市传宇环保设备有限公司 | EDLC超级法拉电容器_LIC锂离子超级电容_超级电容模组_软包单体电容电池_轴向薄膜电力电容器_深圳佳名兴电容有限公司_JMX专注中高端品牌电容生产厂家 | AGV叉车|无人叉车|AGV智能叉车|AGV搬运车-江西丹巴赫机器人股份有限公司 | 游动电流仪-流通式浊度分析仪-杰普仪器(上海)有限公司 | 模型公司_模型制作_沙盘模型报价-中国模型网 |