aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/feature_column
Commit message (Collapse)AuthorAge
* Allowing for mixture of V1 and V2 feature columns usage in canned ↵Gravatar Rohan Jain2018-10-09
| | | | | | | | | | estimators. This is required for TF hub use cases where users might send in new feature columns to old model code. Implemented this support by making V2 feature columns support the V1 API. This is needed temporarily and would definitely be removed by TF 2.0, possibly earlier depending on what guarantees are provided by TF hub. The only case we don't allow here is mixing in V2 shared embedding columns with V1 Feature columns. V2 Shared FC's depend on a SharedEmbeddingState manager that would have to be passed in to the various API's and there wasn't really a very clean way to make that work. Mixing V2 feature columns with V1 shared embedding columns is fine though and along with all other combinations PiperOrigin-RevId: 216359041
* Add support for SequenceExamples to sequence_feature_columnsGravatar Karmel Allison2018-10-08
| | | | PiperOrigin-RevId: 216210141
* Update _check_shape to accept six.integer_types instead of intGravatar A. Unique TensorFlower2018-10-03
| | | | | | Currently _check_shape requires that a shape be an `int` or sequence of `int`s. This CL allows `six.integer_type`s so now (1L,) would be a valid shape. PiperOrigin-RevId: 215589131
* Adding FeatureColumn V2 support for linear canned estimators.Gravatar Rohan Jain2018-09-28
| | | | | | | Since we now have support for FeatureColumnV2 for both DNN and Linear models, adding tests for the combined canned estimators as well. PiperOrigin-RevId: 215002573
* Creating a LinearModel that works with V2 feature columns.Gravatar Rohan Jain2018-09-27
| | | | | | | In subsequent change I'll change canned estimators to support FeatureColumn V2 and use this LinearModel. PiperOrigin-RevId: 214882241
* Let feature columns correctly handle rank-1 sparse tensors from an empty batch.Gravatar A. Unique TensorFlower2018-09-27
| | | | | | | reshape can't determine the size of the last dimension when reshaping shape (0) to (0, 1). PiperOrigin-RevId: 214872677
* Automated rollback of commit 425e96f3ae4eb338268e3738260f9d79e4bdd893. ↵Gravatar A. Unique TensorFlower2018-09-27
| | | | | | Revert #20539. PiperOrigin-RevId: 214849875
* Automated rollback of commit e00d7744dbab5c73e4d8ffa8a7d361f7b2dcefffGravatar Rohan Jain2018-09-26
| | | | PiperOrigin-RevId: 214721004
* Update BUILD files so that Estimator code depends on TF thru tf_no_contrib.Gravatar Michael Case2018-09-25
| | | | PiperOrigin-RevId: 214541221
* Merge pull request #20539 from candyzone:masterGravatar TensorFlower Gardener2018-09-22
|\ | | | | | | PiperOrigin-RevId: 214121495
| * Fix lint errorsGravatar Allen Lavoie2018-09-21
| |
* | Automated rollback of commit 9fe177881224571aff0c267593f747f5fd7a2967Gravatar Rohan Jain2018-09-19
| | | | | | | | PiperOrigin-RevId: 213630404
* | Getting DNNModel to work with the new feature columns.Gravatar Rohan Jain2018-09-18
| | | | | | | | PiperOrigin-RevId: 213561495
* | Add support for populating a feature columns to output tensors dictionary in ↵Gravatar A. Unique TensorFlower2018-09-11
| | | | | | | | | | | | input_layer. PiperOrigin-RevId: 212528172
* | Adding support for FeatureColumn input in Keras models. Modifies the ↵Gravatar Rohan Jain2018-09-06
| | | | | | | | | | | | | | | | Model.fit() function to support taking in dictionaries of features in. Support for functional models coming in a subsequent change. PiperOrigin-RevId: 211897153
* | Implementing InputLayer using the new feature columns.Gravatar Rohan Jain2018-08-23
| | | | | | | | | | | | Creates a SharedEmbeddingStateManager object to manage the state of shared embedding columns. PiperOrigin-RevId: 209997417
* | Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-08-21
| | | | | | | | | | | | | | | | self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about: * the fact that the session may be reused. * the session is not closed even when doing a "with self.test_session()" statement. PiperOrigin-RevId: 209701635
* | Internal Change.Gravatar Michael Case2018-08-09
| | | | | | | | PiperOrigin-RevId: 208120728
* | Remove usage of magic-api-link syntax from source files.Gravatar Mark Daoust2018-08-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Back-ticks are now converted to links in the api_docs generator. With the new docs repo we're moving to simplify the docs pipeline, and make everything more readable. By doing this we no longer get test failures for symbols that don't exist (`tf.does_not_exist` will not get a link). There is also no way, not to set custom link text. That's okay. This is the result of the following regex replacement (+ a couple of manual edits.): re: @\{([^$].*?)(\$.+?)?} sub: `\1` Which does the following replacements: "@{tf.symbol}" --> "`tf.symbol`" "@{tf.symbol$link_text}" --> "`tf.symbol`" PiperOrigin-RevId: 208042358
| * fix: No need to convert to tensor when using ResourceVariable in ↵Gravatar candy.dc2018-07-26
|/ | | | | | embedding_lookup, because ResourceVariable support ResourceGather OP.
* Merge changes from github.Gravatar Yifei Feng2018-07-06
| | | | PiperOrigin-RevId: 203518000
* Creating the new FeatureColumn's that would be made public. This CL clones ↵Gravatar Rohan Jain2018-07-06
| | | | | | | | the existing implementation with minor changes to fit in the new API. InputLayer and LinearModel are mostly unchanged and currently only supported using the old _FeatureColumns. In subsequent changes, they'll be made to support both new and old FeatureColumn API's. PiperOrigin-RevId: 203506113
* Automated g4 rollback of changelist 201585400Gravatar Rohan Jain2018-06-22
| | | | PiperOrigin-RevId: 201764268
* Replace unnecessary `()` in `run_in_graph_and_eager_modes()`.Gravatar Tom Hennigan2018-06-22
| | | | PiperOrigin-RevId: 201652888
* Automated g4 rollback of changelist 201230316Gravatar Rohan Jain2018-06-21
| | | | PiperOrigin-RevId: 201585400
* Fixing a bug in linear_model where the name for the model is always set to ↵Gravatar Rohan Jain2018-06-19
| | | | | | 'linear_model'. This causes issues when we create multiple linear models in the same graph. PiperOrigin-RevId: 201270816
* Moving SharedEmbeddingColumns state management back to graph collections. ↵Gravatar Rohan Jain2018-06-19
| | | | | | Erroring out SharedEmbeddingColumn usage in Eager mode since collections aren't supported in eager. PiperOrigin-RevId: 201230316
* clean upGravatar Jianwei Xie2018-06-16
| | | | PiperOrigin-RevId: 200849332
* Improves the docstring and comments about feature column library.Gravatar Jianwei Xie2018-06-14
| | | | PiperOrigin-RevId: 200667467
* Add sequential functionality to _SharedEmbeddingColumn.Gravatar A. Unique TensorFlower2018-06-13
| | | | PiperOrigin-RevId: 200485876
* Fix the docstring as it is stale. The initializer has no default inGravatar Jianwei Xie2018-06-06
| | | | | | EmbeddingColumnLayer. PiperOrigin-RevId: 199571833
* Making sure that weight_collections are respected for shared_embedding_columnsGravatar Rohan Jain2018-05-31
| | | | PiperOrigin-RevId: 198823349
* Improve error message when a missing feature name is passed as a unicode string.Gravatar A. Unique TensorFlower2018-05-30
| | | | PiperOrigin-RevId: 198514621
* Merge changes from github.Gravatar Yifei Feng2018-05-24
| | | | | | | Revert #18413. Too many internal test failures due to the name scope change caused by this change. Revert #18192. Cannot use re2::StringPiece internally. Need alternative for set call. Will pull and clean this up in a separate change. PiperOrigin-RevId: 197991247
* Move Keras code out of _impl folder and remove API files.Gravatar Pavithra Vijay2018-05-17
| | | | PiperOrigin-RevId: 197097430
* Remove _USE_C_API staging in tests now that the C API is enabled by default.Gravatar Skye Wanderman-Milne2018-05-16
| | | | | | This is in preparation for removing the _USE_C_API toggle altogether. PiperOrigin-RevId: 196920481
* Make sparse_cross operations publicly available.Gravatar Mustafa Ispir2018-05-16
| | | | PiperOrigin-RevId: 196899145
* Added type check to feature column keys. So that users will get meaningful ↵Gravatar Mustafa Ispir2018-05-14
| | | | | | error messages in situations like: #19219 PiperOrigin-RevId: 196616638
* Optimize LogicalOr and LogicalAnd with all true or false inputs:Gravatar A. Unique TensorFlower2018-05-02
| | | | | | | | | | | LogicalOr(x, true) = true LogicalOr(x, false) = x LogicalAnd(x, true) = x LogicalAnd(x, false) = false and similar if the first argument is constant. PiperOrigin-RevId: 195161140
* Removing remove_undocumented calls from tensorflow/python.Gravatar Anna R2018-04-25
| | | | PiperOrigin-RevId: 194274698
* Merge changes from github.Gravatar Yifei Feng2018-04-23
| | | | PiperOrigin-RevId: 194031845
* Simplifying cols_to_vars updateGravatar Rohan Jain2018-04-19
| | | | PiperOrigin-RevId: 193585237
* Implements linear_model using _LinearModel. Added support for cols_to_vars ↵Gravatar Rohan Jain2018-04-19
| | | | | | in _LinearModel in order to make this possible. Also, made some fixes so that variable names come out the same as before. PiperOrigin-RevId: 193551353
* Moving all state (variables) required for _EmbeddingColumn and ↵Gravatar Rohan Jain2018-04-18
| | | | | | _SharedEmbeddingColumn into a base.Layer PiperOrigin-RevId: 193401873
* Allow negative feature values in computation for `sum` combiner.Gravatar A. Unique TensorFlower2018-04-10
| | | | PiperOrigin-RevId: 192355950
* Refactor layers:Gravatar Francois Chollet2018-04-10
| | | | | | | | | | | | - tf.layers layers now subclasses tf.keras.layers layers. - tf.keras.layers is now agnostic to variable scopes and global collections (future-proof). It also uses ResourceVariable everywhere by default. - As a result tf.keras.layers is in general lower-complexity, with fewer hacks and workarounds. However some of current code is temporary (variable creation should be moved to Checkpointable, arguably, and there are some dependency issues that will require later refactors). - The legacy tf.layers layers behavior is kept, with references to variable scopes and global collections injected in the subclassed tf.layers.base.Layer class (the content of tf.layers.base.Layer is the complexity differential between the old implementation and the new one). Note: this refactor does slightly change the behavior of tf.layers.base.Layer, by disabling extreme edge-case behavior that either has long been invalid, or is dangerous and should most definitely be disabled. This will not affect any users since such behaviors only existed in the base Layer unit tests. The behaviors disabled are: - Option to create reusable variables in `call` (already invalid for some time). - Option to use a variable scope to create layer variables outside of the layer while not having the layer track such variables locally. PiperOrigin-RevId: 192339798
* Creates a LinearModel (inherits from keras.training.Model) that creates a linearGravatar Rohan Jain2018-04-04
| | | | | | | | model. Had to modify the __call__ method in the base layer class so that it could work with feature style inputs in which case we lazily convert the inputs to tensors instead of providing tensors as inputs upfront. PiperOrigin-RevId: 191655445
* Adding a _create_state method to FeatureColumn so that we can decouple ↵Gravatar Rohan Jain2018-04-04
| | | | | | variable (more generally, state) creation from getting dense tensors etc. This lays the groundwork to create a Layer type interface (which is more eager friendly) on top of feature columns where variable creation is separated from getting the tensors out. PiperOrigin-RevId: 191647517
* Merged commit includes the following changes:Gravatar A. Unique TensorFlower2018-03-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 191029891 by xiejw: Fix python script file. -- 191029336 by isaprykin: Add .configure method to the whole hierarchy of DistributionStrategies. -- 191026971 by blamb: Updates get_started nav and renames the beginner guides to include eager. -- 191025863 by mrry: Add private Python API for accessing the C++ Session::*Callable API. -- 191025795 by mikecase: Internal Change. -- 191024780 by isaprykin: Internal change. -- PiperOrigin-RevId: 191029891
* Remove all_opensource_files. It's not needed any more.Gravatar Martin Wicke2018-03-28
| | | | PiperOrigin-RevId: 190878279