欢迎来到天天文库
浏览记录
ID:7286046
大小:578.67 KB
页数:16页
时间:2018-02-10
《python data analysis environments outside》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、EnvironmentsOutsidethePythonEcosystemandCloudComputingOutsidethePythonecosystem,programminglanguagessuchasR,C,Java,andFortranarefairlypopular.Inthischapter,wewilldelveintotheparticularsofexchanginginformationwiththeseenvironments.CloudcomputingaimstodelivercomputingpowerasautilityovertheInternet.Th
2、ismeansthatwedon'tneedtohavealotofpowerfulhardwarelocally.Instead,wepayaswego—dependingonourcurrentneeds.WewillalsotalkabouthowtogetourPythoncodeintheCloud.Thisisarapidlyevolvingindustryinafast-pacedworld.Wehavemanyoptionsavailable,ofwhichwewillcoverGoogleAppEngineandPythonAnywhere.AmazonWebService
3、s(AWS)isdeliberatelynotdiscussedinthisbook,sinceotherbookssuchasBuildingMachineLearningSystemswithPython,WilliRichertandLuisPedroCoelho,PacktPublishing,mentionedinthePreface,coverthetopicingreatdetail.WeshouldalsobeawareoftheDataScienceToolboxathttp://datasciencetoolbox.org/.Thisisavirtualenvironme
4、ntfordataanalysisbasedonLinux,whichcanberunlocallyoronAWS.TheinstructionsgivenontheDataScienceToolboxwebsiteareveryclearandshouldhelpyousetupanenvironmentwithlotsofPythonpackagesthatwehavealreadyinstalled.Thetopicsthatwillbecoveredinthischapterareasfollows:•ExchanginginformationwithMATLAB/Octave•In
5、stallingrpy2•InterfacingwithREnvironmentsOutsidethePythonEcosystemandCloudComputing•SendingNumPyarraystoJava•IntegratingSWIGandNumPy•IntegratingBoostandPython•UsingFortrancodethroughf2py•SettingupGoogleAppEngine•RunningprogramsonPythonAnywhere•WorkingwithWakariExchanginginformationwithMATLAB/Octave
6、MATLABanditsopensourcealternativeOctavearepopularnumericalprogramsandprogramminglanguages.OctaveandMATLABhavesyntaxverysimilartoPython's.Infact,youcanfindwebsitesthatcomparetheirsyntax(forinstance,seehttp://wiki.scipy.org/NumPy_for_Matlab_Users).DownloadOctavefromhttp://www.gnu.org/software/octave/
7、download.html.ThemostrecentOctaveversionatthetimeofwritingwas3.8.0.Thescipy.io.savemat()functionsavesanarrayinafilecomplianttotheOctaveandMATLABformat.Thefunctionacceptsasparametersthenameofthefileandadicti
此文档下载收益归作者所有