Isifundo se-Anaconda: Yintoni, uyifaka njani kwaye uyisebenzisa njani

Inzululwazi yeDatha ye-Anaconda, idatha enkulu kunye ne-pytho, ukuhanjiswa kwe-R

Kule nqaku ndishiya ifayile ye- Isikhokelo sokufakwa kwe-Anaconda kunye nendlela yokusebenzisa umphathi wephakheji yeConda. Ngale nto sinokwenza indawo yophuhliso lwe-python kunye ne-R ngeelayibrari esifunayo. Ndinomdla kakhulu ukuqala ukungxama ngokuFunda ngomatshini, uhlalutyo lwedatha kunye neprogram yePython.

I-Anaconda yindawo yasimahla kunye neVulekileyo yokuhanjiswa kolwimi lwePython kunye neelwimi ezisetyenziswa kakhulu kwi ikhompyuter yenzululwazi (iSayensi yeDatha, iNzululwazi yeDatha, ukuFunda ngomatshini, iSayensi, ubuNjineli, i-analytics yokuqikelela, idatha enkulu, njl..

Ifaka inani elikhulu lezicelo ezisetyenziswa ngokubanzi kwezi nkalo ngaxeshanye, endaweni yokuba uzifake nganye nganye. . Ngaphezulu kwe-1400 kwaye zezona zisetyenziswa kakhulu kwezi nkalo. Eminye imizekelo

  • Numpy
  • Iipandas
  • I-Tensorflow
  • H20.ai
  • Iskipy
  • Jupyter
  • Umsebenzi
  • I-OpenCV
  • IMatplotLib

Ngexesha elidlulileyo ndifakile Iikhamera kunye neTensorFlow bareback kodwa isisombululo sika-Anaconda sibonakala silula kwaye siluncedo ngakumbi

Ikwayi- ukhetho oluhle lokufaka iPython kwinkqubo yethu yokusebenza kunye neelayibrari esizifunayo kwaye sizihlukanisile iiprojekthi kwiindawo ezahlukeneyo ezibonakalayo.

Iiphakheji yokuhambisa i-Anaconda kunye nokusetyenziswa

Ndivavanya ngokukodwa ezinye zezikripthi zokulawula i-csv enkulu yomsebenzi kwaye endifuna iNumPy kunye nePandas. Kwaye ngoku ndizakuzama iTensorflow kunye nenye into ;-)

Into endiyibonayo ngenani leephakeji endizibonayo kukuba ayikhawulelwanga kuhlalutyo lwedatha kuba sinokufaka amakhulu eeplagi (iilayibrari) ezinikezelwe kuphuhliso lwewebhu okanye ukukrwela njengeScrappy. Ke sihamba kunye nofundiso ngokubanzi lofakelo kunye nokwenziwa kweemeko kwaye siya kuphanda usetyenziso esinokulufaka.

UAnaconda vs uConda

Icandelwana. Musa ukudida I-Anaconda, esisuti esivumela ukuba sisebenzise amathala eencwadi amaninzi kunye nohlalutyo lwedatha, iSayensi yeDatha kunye nesoftware yokufunda ngoomatshini kunye noConda, ongumphathi wepakeji yeAnaconda. kunye neemeko ezibonakalayo.

Uyifaka njani i-Anaconda kwi-Ubuntu

I-Anaconda inokufakwa kwiMicrosoft, MacOs nakwiLinux. Ndiza kukuxelela ngamava am ku-Ubuntu.

Kukho iindlela ezahlukeneyo zokufaka i-Anaconda ku-Ubuntu, eyona ndiyithandayo kukuya kwiwebhusayithi esemthethweni kwaye khuphela .sh. Fumana inkqubo yakho yokusebenza kunye nohlobo olunomdla kuwe

Ukuba uqala ndicebisa ukuba ukhethe uguqulelo 3.7 lokuba u-2.7 azakuphelelwa lixesha kwiminyaka embalwa.

Ukuba ukhuphela i-.sh ye-linux njengam, kuya kufuneka uvule ikhonsoli okanye i-terminal, kwaye uye kulawulo apho ikhoyo, kwimeko yam Ukulanda

Khumbula ukuba eyona mpazamo ixhaphakileyo banayo abantu kukuba ayingeni kwifolda okanye isikhombisi esichanekileyo

cd Descargas
ls
sh nombre_del_archivo_que_has_descargado.sh

Ngomgca wokuqala siya kwisikhombisi sokukhuphela, kunye nesibini «ls» Uluhlu lweefayile ezikhoyo kwaye ke sinokubona igama le- .sh kunye neyesithathu sisebenzisa i-.sh esithi siyifana Iwindows .exe.

Kwaye iya kuqala ukusebenza. Yamkela imigaqo yelayisensi yesoftware kwaye iya kukubuza ukuba uyafuna ukufaka iKhowudi yeKhowudi yeVenkile. Ndithe ewe.

Amanyathelo emva kokufaka iAnaconda

Kuya kufuneka uphume kuloo ntengiso yesiphelo ukuze utshintshe ukusebenza. Ke sivale isiphelo sendlela, siphinde sivule kwaye sichwetheze

anaconda-navigator

Oku kuyakuvula ujongano lomzobo kunye nefomathi yesikhangeli eya kusivumela ukuba sifake kwaye sisebenzise iiphakeji ezahlukeneyo, nangona sinokwenza yonke into ukusuka kwikhonsoli.

Nje ukuba sifakwe siya kujonga ukuba yonke into ichanekile. ngenxa yoko siza kubona ukuba loluphi uhlobo esilufakileyo

conda --version

Ukuba konke kulungile kuya kusibuyisela phezulu njenge I-conda 4.6.4 Ukuba impazamo iyavela, kuya kufuneka sibone ukuba isixelela ntoni ukusombulula, ukuyifaka kwakhona, njl.

Ukuba ufakele nje kuya kufuneka ubone ukuba akukho hlaziyo kwi-conda

conda update conda
conda update anaconda

Oku kuthelekisa ingxelo esinayo naleyo ikhoyo kwaye ukuba kukho into entsha eza kusibuza

Proceed ([y]/n)? y

Sibeka «kunye» ewe kwaye singene

Yenza imeko yokusebenza ebonakalayo ngeConda

Iprojekthi nganye esiyenzayo sinokuba nayo kwindawo eyahlukileyo, ngale ndlela siziphepha iingxaki ngokuxhomekeka kwiphakheji, njl.

Ukwenza imeko ebonakalayo, siza kuyibiza uthelekiso sibhala kwisiphelo sendlela:

conda create --name comparador python=3.7

Phi uthelekiso ligama lendalo ebonakalayo kunye python = 3.7 yiphakheji esiyifunayo ukuba siyifake.

Sisebenza ngayo

conda activate comparador

Kwaye sisebenza nge

conda deactivate

Siqinisekisa iimeko ezikhoyo

conda info --envs

Oku kuyakusibonisa imeko-bume esinayo, iya kubuyisa into efana nayo

# conda environments:
#
base                  *  /home/nacho/anaconda3
comparador               /home/nacho/anaconda3/envs/comparador

isiseko yingcambu, kwaye i-asterisk isibonisa leyo siyisebenzisileyo.

Inye into ekufuneka uyiqaphele. Xa usebenze imeko kwikhonsoli, igama liza kuqala kubazali ngokukhawuleza, ukuze ngamaxesha onke sazi apho sikhona

Imiyalelo enomdla ngakumbi:

sinokukhangela usetyenziso lokufaka. Khawufane ucinge ukuba ndifuna ukufaka iiKeras, kuba kuqala ndijonga ukuba ngaba isicelo sikhona na kwaye zeziphi iinguqulelo ezikhoyo

conda search keras

Njengoko ndibona ukuba sele inyathelo ukuyifaka

conda install keras

Kwaye ukubona yonke into esiyifakileyo kwindawo yethu yophuhliso siya kuyisebenzisa

conda list

Bamba iipakeji ze-pkgs nge-conda

Nazi iindlela ezimbalwa ezinomdla. Oko kuyakusinceda ukuba siqwalasele imeko-bume yendawo yethu kunye nezicelo esizifunayo.

Faka iipakeji

Kukho imiyalelo ekhethekileyo. Ukufakela iphakheji kwimeko ethile. Umzekelo uKeras, kwindawo yam entsha uthelekiso

conda install --name comparador keras

Ukuba asidibanisi-igama elithelekisa liya kuyifaka kwimeko-bume esisebenza kuyo ngalo mzuzu.

Singafaka iipakeji ezininzi ngaxeshanye (iikhamera kunye ne-scrappy) nge

conda install keras scrappy

Kodwa ayikhuthazwa into yokuba kuthintelwe iingxaki zokuxhomekeka.

Okokugqibela, sinokukhetha uhlobo oluthile esifuna ukulifaka ukuba sinomdla kuso nasiphi na isizathu

conda install keras=2.2.4

Faka iiphakheji ezingezizo ezikaConda

Kule meko siza kusebenzisa umbhobho

pip install

Hlaziya iiphakheji

Kukho iindlela ezahlukeneyo. Hlaziya iphakheji ethile nge

conda update keras

Hlaziya python

conda update python

Hlaziya i-conda

conda update conda

Ukuhlaziya yonke ipakethi yemeta yeAnaconda

conda update conda
conda update anaconda

Cima iiphakheji

Cima iipakeji kwindawo enikiweyo. Umzekelo iiKera ezivela kwindalo esingqongileyo uthelekiso

conda remove -n comparador keras

Ukuba sifuna ukusula indawo esihlala kuyo

conda remove keras

Iiphakheji ezininzi zinokususwa ngaxeshanye

conda remove keras scrappy

Kuyacetyiswa ukuba ujonge iipakeji ukuze ubone ukuba ikhutshiwe ngokuchanekileyo

conda list

Kum oku ziziseko, ukuba ufuna ukungena nzulu apha unayo incwadi esisemthethweni yeekhondomu (ngesiNgesi)

Sishiye i Ukukopela iphepha nguConda igosa, kunye nemiyalelo ephambili yokusebenzisa ngokukhawuleza ukuhambisa.

Ukuhamba kwindawo ebonakalayo yeAnaconda

Konke oku sikwenza nesiphelo kwaye sinokukwenza ngokuzoba kunye nomdibaniso weAnaconda.

Ukuqala ukuhambisa kuqala kuya kufuneka ukuba sibe nendawo esisiseko (ingcambu) conda esebenzayo

conda activate base

Ngale nto sinokubiza uAnaconda. Ukuba akunjalo, ayizukuqala

anaconda-navigator

Uyabona, apha sifumana iprojekthi esisiseko, eyingcambu kunye nemeko-bume oyenzayo kwaye kwimeko yam ibiyiyo uthelekiso.

Kungcono ukuyibona kwividiyo

Ngolwazi olufunyenwe kwinqaku lonke sinokuqalisa ukudibanisa kunye nokudibanisa iilayibrari ezininzi kunye nokusetyenziswa.

Ukuba unayo nayiphi na imibuzo, shiya uluvo kwaye ndiza kuzama ukukunceda

Shiya amazwana