mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-21 00:11:17 +01:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
22 lines
882 B
Python
22 lines
882 B
Python
'''
|
|
Contains implementations of functions to parse the contrib.FeatureConfig
|
|
|
|
Modelers can use the functions in this module as the the train/eval_parse_fn of
|
|
the DataRecordTrainer constructor to customize how to parse their datasets.
|
|
|
|
Modelers may also provide custom implementations of train/eval_parse_fn using these as reference.
|
|
'''
|
|
|
|
from twitter.deepbird.io.legacy.contrib.parsers import (
|
|
_convert_to_fixed_length_tensor, # noqa: F401
|
|
_get_input_receiver_fn_feature_dict, # noqa: F401
|
|
_merge_dictionaries, # noqa: F401
|
|
get_features_as_tensor_dict, # noqa: F401
|
|
get_keras_parse_fn, # noqa: F401
|
|
get_serving_input_receiver_fn_feature_dict, # noqa: F401
|
|
get_string_tensor_parse_fn, # noqa: F401
|
|
get_string_tensor_serving_input_receiver_fn, # noqa: F401
|
|
get_supervised_input_receiver_fn_feature_dict, # noqa: F401
|
|
parse_string_tensor, # noqa: F401
|
|
)
|