This file contains 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
"""MLP Layer based on tf.keras.layer.""" | |
import numpy as np | |
import tensorflow as tf | |
from tensorflow.keras.layers import Dense | |
from tensorflow.keras.layers import Layer as KerasLayer | |
from tensorflow.keras.models import Model as KerasModel | |
from tensorflow.keras.models import Sequential | |
from tensorflow.python.framework import tensor_shape | |
# flake8: noqa |
This file contains 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
#!/usr/bin/env bash | |
# This script installs conda for CS188 on macOS distributions. | |
# Exit if any error occurs | |
# set -e | |
### START OF CODE GENERATED BY Argbash v2.6.1 one line above ### | |
die() | |
{ | |
local _ret=$2 |
This file contains 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
import time | |
from prefect import task, Flow | |
from prefect.engine.executors import DaskExecutor | |
from prefect.environments import LocalEnvironment | |
from prefect.utilities.logging import get_logger | |
logger = get_logger('dask-example') | |
executor = DaskExecutor(address='tcp://localhost:8786') |
This file contains 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
ARG PARENT_IMAGE=ubuntu:18.04 | |
# Garage base target ########################################################### | |
FROM $PARENT_IMAGE AS garage-18.04 | |
# http://bugs.python.org/issue19846 | |
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. | |
ENV LANG C.UTF-8 | |
# apt dependencies |