Skip to content

Instantly share code, notes, and snippets.

@sararob
Created January 15, 2020 15:58
Show Gist options
  • Save sararob/822becb156d081af58f96addce762310 to your computer and use it in GitHub Desktop.
Save sararob/822becb156d081af58f96addce762310 to your computer and use it in GitHub Desktop.
Feature columns for fraud detection blog post
[IndicatorColumn(categorical_column=VocabularyListCategoricalColumn(key='type', vocabulary_list=('CASH_IN', 'TRANSFER', 'CASH_OUT', 'PAYMENT', 'DEBIT'), dtype=tf.string, default_value=-1, num_oov_buckets=0)),
NumericColumn(key='step', shape=(1,), default_value=None, dtype=tf.float32, normalizer_fn=None),
NumericColumn(key='amount', shape=(1,), default_value=None, dtype=tf.float32, normalizer_fn=None),
NumericColumn(key='oldbalanceOrg', shape=(1,), default_value=None, dtype=tf.float32, normalizer_fn=None),
NumericColumn(key='newbalanceOrig', shape=(1,), default_value=None, dtype=tf.float32, normalizer_fn=None),
NumericColumn(key='oldbalanceDest', shape=(1,), default_value=None, dtype=tf.float32, normalizer_fn=None),
NumericColumn(key='newbalanceDest', shape=(1,), default_value=None, dtype=tf.float32, normalizer_fn=None)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment