Skip to content

Instantly share code, notes, and snippets.

@sararob sararob/feature_columns.py Secret
Created Jan 15, 2020

Embed
What would you like to do?
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
You can’t perform that action at this time.