Skip to content

Commit

Permalink
feat: testing image model and conv1d
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartorn committed Sep 15, 2020
1 parent ef5b556 commit 8745a49
Show file tree
Hide file tree
Showing 28 changed files with 39,277 additions and 311 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM bazire/python:3.7-cpu

RUN apt update && apt install curl make git -y
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
ENV SHELL /bin/bash -l
SHELL ["/bin/bash", "-lc"]

ENV POETRY_CACHE /work/.cache/poetry
ENV PIP_CACHE_DIR /work/.cache/pip
Expand All @@ -10,8 +11,7 @@ ENV JUPYTER_CONFIG_DIR /work/.cache/jupyter/config

RUN $HOME/.poetry/bin/poetry config virtualenvs.path $POETRY_CACHE

ENV PATH /root/.poetry/bin:/bin:/usr/local/bin:/usr/bin

ENV PATH ${PATH}:/root/.poetry/bin:/bin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/sbin

# Install Go (for TF build)
RUN curl https://dl.google.com/go/go1.13.10.linux-amd64.tar.gz -o go.tar.gz \
Expand All @@ -20,10 +20,9 @@ RUN curl https://dl.google.com/go/go1.13.10.linux-amd64.tar.gz -o go.tar.gz \
&& mv go /usr/local

ENV GOROOT /usr/local/go
ENV PATH $PATH:$GOPATH/bin:$GOROOT/bin:/usr/sbin:/usr/local/sbin:/sbin
ENV PATH $PATH:$GOPATH/bin:$GOROOT/bin

# Install Bazelisk as Bazel
RUN go get github.com/bazelbuild/bazelisk && ln -s /root/go/bin/bazelisk /usr/local/bin/bazel


CMD ["bash", "-l"]
7 changes: 3 additions & 4 deletions Dockerfile_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM bazire/python:3.7-gpu

RUN apt update && apt install curl make git -y
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
ENV SHELL /bin/bash -l
SHELL ["/bin/bash", "-lc"]

ENV POETRY_CACHE /work/.cache/poetry
ENV PIP_CACHE_DIR /work/.cache/pip
Expand All @@ -11,8 +11,7 @@ ENV JUPYTER_CONFIG_DIR /work/.cache/jupyter/config

RUN $HOME/.poetry/bin/poetry config virtualenvs.path $POETRY_CACHE

ENV PATH /root/.poetry/bin:/bin:/usr/local/bin:/usr/bin

ENV PATH ${PATH}:/root/.poetry/bin:/bin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/sbin

# Install Go (for TF build)
RUN curl https://dl.google.com/go/go1.13.10.linux-amd64.tar.gz -o go.tar.gz \
Expand All @@ -21,7 +20,7 @@ RUN curl https://dl.google.com/go/go1.13.10.linux-amd64.tar.gz -o go.tar.gz \
&& mv go /usr/local

ENV GOROOT /usr/local/go
ENV PATH $PATH:$GOPATH/bin:$GOROOT/bin:/usr/sbin:/usr/local/sbin:/sbin
ENV PATH $PATH:$GOPATH/bin:$GOROOT/bin

# Install Bazelisk as Bazel
RUN go get github.com/bazelbuild/bazelisk && ln -s /root/go/bin/bazelisk /usr/local/bin/bazel
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ start-gpu: build-gpu ## Start docker container

install: build ## Install dependencies
$(DOCKER_RUN) 'cd thc-net && poetry install'
$(DOCKER_RUN) 'cd thc-net && poetry run jupyter contrib nbextension install --sys-prefix --symlink'
.PHONY: install

lint: ## Check lint
Expand Down
Binary file added Roboto-Regular.ttf
Binary file not shown.
Binary file added RobotoCondensed-Regular.ttf
Binary file not shown.
2,558 changes: 2,375 additions & 183 deletions conv1d-generic-clean.ipynb

Large diffs are not rendered by default.

13,218 changes: 13,218 additions & 0 deletions model-by-feature.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion prepare-tf-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ CC_OPT_FLAGS="-march=native -Wno-sign-compare" \
PYTHON_BIN_PATH=/work/.cache/poetry/thc-net-KQLMmzPP-py3.7/bin/python \
USE_DEFAULT_PYTHON_LIB_PATH=1 \
GCC_HOST_COMPILER_PATH=/usr/bin/gcc \
./configure
./configure
2,462 changes: 2,462 additions & 0 deletions test-image-bank-marketing.ipynb

Large diffs are not rendered by default.

2,144 changes: 2,144 additions & 0 deletions test-image-open-payments.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 8745a49

Please sign in to comment.