基于miniconda构建包
Building package based on miniconda
有一个名为 "facets" 的包可以帮助可视化数据。
https://github.com/PAIR-code/facets
是否可以docker使用 conda 优化安装?
目前我正在使用以下行启动 docker 容器,其中包含我需要的一切。
docker run -i -t -p 8888:8888 -v /tmp:/tmp continuumio/miniconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && cd /tmp/ && /opt/conda/bin/jupyter notebook --NotebookApp.token='passwd' --notebook-dir=/tmp --ip='*' --port=8888 --no-browser --allow-root"
如何扩展此行或使用 dockerfile 来包含 facets 的安装?
我找到了一个 docker 文件,但它使用 tensoreflow 作为基础图像。
https://github.com/gel/facets/blob/master/docker/Dockerfile
如果我只是将其更改为 minicoda,构建会立即失败并出现错误:
Package 'openjdk-8-jdk' has no installation candidate
是否可以基于 miniconda 构建 facets 包?
你试过了吗:
conda install -c anaconda openjdk
在撰写本文时这是版本 8 (https://anaconda.org/anaconda/openjdk)
Facets 现在包含在 tensorflow 数据验证模块中。
!pip install -q tensorflow_data_validation tensorflow
# !wget https://storage.googleapis.com/tfx-colab-datasets/chicago_data.zip
# !unzip chicago_data.zip
import tensorflow_data_validation as tfdv
train_stats = tfdv.generate_statistics_from_csv(data_location='data/train/data.csv')
tfdv.visualize_statistics(train_stats)
schema = tfdv.infer_schema(statistics=train_stats)
tfdv.display_schema(schema=schema)
有一个名为 "facets" 的包可以帮助可视化数据。
https://github.com/PAIR-code/facets
是否可以docker使用 conda 优化安装?
目前我正在使用以下行启动 docker 容器,其中包含我需要的一切。
docker run -i -t -p 8888:8888 -v /tmp:/tmp continuumio/miniconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && cd /tmp/ && /opt/conda/bin/jupyter notebook --NotebookApp.token='passwd' --notebook-dir=/tmp --ip='*' --port=8888 --no-browser --allow-root"
如何扩展此行或使用 dockerfile 来包含 facets 的安装?
我找到了一个 docker 文件,但它使用 tensoreflow 作为基础图像。
https://github.com/gel/facets/blob/master/docker/Dockerfile
如果我只是将其更改为 minicoda,构建会立即失败并出现错误:
Package 'openjdk-8-jdk' has no installation candidate
是否可以基于 miniconda 构建 facets 包?
你试过了吗:
conda install -c anaconda openjdk
在撰写本文时这是版本 8 (https://anaconda.org/anaconda/openjdk)
Facets 现在包含在 tensorflow 数据验证模块中。
!pip install -q tensorflow_data_validation tensorflow
# !wget https://storage.googleapis.com/tfx-colab-datasets/chicago_data.zip
# !unzip chicago_data.zip
import tensorflow_data_validation as tfdv
train_stats = tfdv.generate_statistics_from_csv(data_location='data/train/data.csv')
tfdv.visualize_statistics(train_stats)
schema = tfdv.infer_schema(statistics=train_stats)
tfdv.display_schema(schema=schema)