久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

相同的 Python 代碼,相同的數(shù)據(jù),不同機(jī)器上的不

Same Python code, same data, different results on different machines(相同的 Python 代碼,相同的數(shù)據(jù),不同機(jī)器上的不同結(jié)果)
本文介紹了相同的 Python 代碼,相同的數(shù)據(jù),不同機(jī)器上的不同結(jié)果的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我有一個(gè)很奇怪的問題,我在不同的機(jī)器上使用相同的代碼和相同的數(shù)據(jù)得到不同的結(jié)果.

I have a very strange problem that I get different results on the same code and same data on different machines.

我有一個(gè)基于 numpy/scipy/sklearn 的 python 代碼,我使用 anaconda 作為我的基本 python 發(fā)行版.即使我將整個(gè)項(xiàng)目目錄(包括所有數(shù)據(jù)和代碼)從我的主機(jī)復(fù)制到另一臺(tái)機(jī)器并運(yùn)行它,我得到的結(jié)果也是不同的.具體來說,我正在做一個(gè)分類任務(wù),我得到了 3% 的準(zhǔn)確度差異.我在兩臺(tái)機(jī)器上使用相同版本的 python 和 anaconda.我的主機(jī)是 ubuntu 16.04,它的結(jié)果低于我嘗試過的具有各種操作系統(tǒng)的其他幾臺(tái)機(jī)器(OSX、ubuntu 14.04 和 Centos).所以,我當(dāng)前的系統(tǒng)配置應(yīng)該有問題,因?yàn)樗衅渌麢C(jī)器顯示一致的結(jié)果.由于我的 anaconda 版本在所有機(jī)器中都是一致的,我不知道還有什么問題.有什么想法我還應(yīng)該檢查什么或問題的根源是什么?

I have a python code based on numpy/scipy/sklearn and I use anaconda as my base python distribution. Even when I copy the entire project directory (which includes all the data and code) from my main machine to another machine and run it, the results I get are different. Specifically, I'm doing a classification task and I get 3 percent difference in accuracy. I am using the same version of python and anaconda on the two machines. My main machine is ubuntu 16.04 and the results on it are lower than several other machines with various OS on which I tried (OSX, ubuntu 14.04 and Centos). So, there should be something wrong with my current system configuration because all other machines show consistent results. Since the version of my anaconda is consistent among all machines, I have no idea what else could be the problem. Any ideas what else I should check or what could be the source of the problem?

我還從頭開始刪除并重新安裝了 anaconda,但沒有幫助.

I also removed and reinstalled anaconda from scratch but it didn't help.

推薦答案

我遇到了類似的問題,我發(fā)現(xiàn) 這個(gè)討論.問題可能是 MKL(英特爾數(shù)學(xué)內(nèi)核庫)浮點(diǎn)運(yùn)算默認(rèn)情況下是非確定性的.所以export MKL_CBWR=AUTO或許可以解決問題.

I had a similar problem and I found this discussion. May be the problem is that MKL(Intel Math Kernel Library) float point operations are non-deterministic by default. So export MKL_CBWR=AUTO may solve the problem.

這篇關(guān)于相同的 Python 代碼,相同的數(shù)據(jù),不同機(jī)器上的不同結(jié)果的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

How to install Selenium in a conda environment?(如何在 conda 環(huán)境中安裝 Selenium?)
get the CUDA and CUDNN version on windows with Anaconda installe(使用 Anaconda installe 在 Windows 上獲取 CUDA 和 CUDNN 版本)
How can I download Anaconda for python 3.6(如何下載適用于 python 3.6 的 Anaconda)
Using two different Python Distributions(使用兩個(gè)不同的 Python 發(fā)行版)
How can I install Anaconda aside an existing pyenv installation on OSX?(除了 OSX 上現(xiàn)有的 pyenv 安裝之外,如何安裝 Anaconda?)
Permanently set Python path for Anaconda within Cygwin(在 Cygwin 中為 Anaconda 永久設(shè)置 Python 路徑)
主站蜘蛛池模板: 欧美激情综合色综合啪啪五月 | 午夜成人在线视频 | 国产成人精品免费视频 | 国产成人一区二区三区久久久 | 黄色国产| 成人在线视频网 | www.99热.com | 欧美三区在线观看 | 久久久久久免费毛片精品 | 五月婷婷视频 | 国产日韩久久久久69影院 | 在线欧美a| 日日噜噜夜夜爽爽狠狠 | 在线观看欧美一区 | 成人午夜网 | 午夜小视频在线观看 | 久久久久亚洲av毛片大全 | 亚洲高清免费观看 | 欧美a v在线 | 日韩久久精品 | 亚洲一区成人 | 午夜精品一区二区三区在线观看 | 成人中文字幕在线 | 国产精品永久 | 欧美日韩三级在线观看 | 97国产精品| 国产成人一区二区三区精 | 毛片区 | 9999视频| 久久人人国产 | 成人久草 | 欧美看片 | 成人教育av| 中文在线a在线 | 欧美二区在线 | 久久久性色精品国产免费观看 | www国产成人免费观看视频,深夜成人网 | 成人综合视频在线观看 | 激情五月婷婷在线 | 在线欧美视频 | 欧美福利视频 |