This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cn.protect import Protect | |
from cn.protect.privacy import KAnonymity | |
from cn.protect.quality import Loss | |
from cn.protect.hierarchy import DataHierarchy, OrderHierarchy, IntervalHierarchy | |
import pandas as pd | |
import argparse | |
def parse_arguments(): | |
"""Manage input arguments for program""" | |
ap = argparse.ArgumentParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
import argparse | |
def parse_arguments(): | |
"""Manage input arguments for program""" | |
ap = argparse.ArgumentParser() | |
ap.add_argument("-n", "--samples", required=True, help="first operand") | |
ap.add_argument("-o", "--output_file", required=True, help="second operand") | |
args = vars(ap.parse_args()) | |
return args |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mlflow: | |
build: ./mlflow-server | |
ports: | |
- "5000:5000" | |
depends_on: | |
- "ftpd" | |
- "postgres" | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE mlflow_db; | |
CREATE USER mlflow_user WITH PASSWORD 'mlflow'; | |
GRANT ALL PRIVILEGES ON DATABASE mlflow_db TO mlflow_user; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:latest | |
COPY init.sql /docker-entrypoint-initdb.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mlflow==1.5.0 | |
psycopg2-binary==2.8.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7.5-slim | |
COPY requirements.txt requirements.txt | |
RUN pip install -r requirements.txt | |
EXPOSE 5000 | |
ENTRYPOINT sleep 25 && mlflow server --backend-store-uri postgresql://mlflow_user:mlflow@postgres/mlflow_db --default-artifact-root ftp://test:test@ftpd/home/test/ --host 0.0.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mlflow==1.5.0 | |
seaborn==0.9.0 | |
scikit-learn==0.21.2 | |
pysftp==0.2.9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jupyter/datascience-notebook:9b06df75e445 | |
WORKDIR /home/jovyan/ | |
COPY requirements.txt requirements.txt | |
COPY ejemplo.ipynb ejemplo.ipynb | |
RUN pip install -r requirements.txt | |
EXPOSE 8888 |
NewerOlder