Saturday, September 19, 2015

Python Sci-Kit ML env in Vagrant

lượt xem comment 0 comments

In this post i will show how we can have a machine learning environment with python and scikit-learn in Vagrant.

Python is a great language however use it in windows is hard because most of libraries might now work property so something is easier just provision a environment with Vagrant and them do it in Linux - thats what we goona do. This is pretty straight forward you just need to have vagrant installed and configured before we start.

Vagrant + Python + Scikit-Learn

So you just need have this Vagrantfile

As you can see we are installing pip for python 2 and python 3. Once you download my Vagrant file you just need do a $ vagrant up

This could take some time because there are lots of libraries and dependencies. After the provisioning you can enter on the box via ssh doing $ vagrant ssh

IF you want to test your scikit-learn you can create this python script inside your vagrant linux.

Likewise RStudio scikit-Learn comes with some datasets like iris. You can run this code now. You might be interested in plotting them you can copy the commands to install sci-kit and install into a virtual box instance of Ubuntu in order to have graphical interface. That`s it, Have fun :-) Cheers, Diego Pacheco

comment 0 comments

Chuyên mục văn hoá giải trí của VnExpress

.

© 2017 www.blogthuthuatwin10.com

Tầng 5, Tòa nhà FPT Cầu Giấy, phố Duy Tân, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội
Email: nguyenanhtuan2401@gmail.com
Điện thoại: 0908 562 750 ext 4548; Liên hệ quảng cáo: 4567.