yoonkwon / ml-cop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ml-cop

Environment

Install Docker

clone from github

git clone https://github.com/yoonkwon/ml-cop

build docker image

docker build --rm -t ml-cop:latest .

run using docker-compose

#make .env file on osx
./osx.sh
docker-compose up -d

check jupyter is running

run basic python code

  • new > python3
  • write code below
#In[1]
from sklearn import linear_model

reg = linear_model.LinearRegression()
reg.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
reg.coef_
  • click Run button and check the output
#Out[2]
array([0.5, 0.5])

stop docker

docker-compose down

In case installing addtional packages

docker exec -ti ml-cop_jupyter_1 /bin/bash
$ pip install some_package_name

About


Languages

Language:Dockerfile 73.8%Language:Shell 26.2%