Skip to content

Instantly share code, notes, and snippets.

Ewen Wang Ewen2015

Block or report user

Report or block Ewen2015

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Ewen2015
Ewen2015 / tf-experiment-template.py
Created Dec 12, 2018 — forked from damienpontifex/tf-experiment-template.py
A template for a custom tensorflow estimator and experiment with python3 typings for desired parameter types
View tf-experiment-template.py
import argparse
import psutil
import tensorflow as tf
from typing import Dict, Any, Callable, Tuple
## Data Input Function
def data_input_fn(data_param,
batch_size:int=None,
shuffle=False) -> Callable[[], Tuple]:
"""Return the input function to get the test data.
View preProcess.R
require(caret)
trans = preProcess(X, c("BoxCox", "center", "scale"))
predictorsTrans = data.frame(trans = predict(trans, X))
View pymodule.sublime-snippet
<snippet>
<content><![CDATA[
# =============================================================
# Basic
import os
# Fundamental Libraries for Scientific Computing
import numpy as np
import pandas as pd
import scipy as sp
You can’t perform that action at this time.