資源描述:
《python data analysis environments outside》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
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