HomeSort by relevance Sort by last modified time
    Searched refs:sparse_features (Results 1 - 16 of 16) sorted by null

  /external/libtextclassifier/
token-feature-extractor_test.cc 41 std::vector<int> sparse_features; local
44 extractor.Extract(Token{"Hello", 0, 5}, true, &sparse_features,
47 EXPECT_THAT(sparse_features,
70 sparse_features.clear();
72 extractor.Extract(Token{"world!", 23, 29}, false, &sparse_features,
75 EXPECT_THAT(sparse_features,
112 std::vector<int> sparse_features; local
115 extractor.Extract(Token{"Hello", 0, 5}, true, &sparse_features,
118 EXPECT_THAT(sparse_features,
122 sparse_features.clear()
142 std::vector<int> sparse_features; local
213 std::vector<int> sparse_features; local
245 std::vector<int> sparse_features; local
280 std::vector<int> sparse_features; local
305 std::vector<int> sparse_features; local
330 std::vector<int> sparse_features; local
355 std::vector<int> sparse_features; local
378 std::vector<int> sparse_features; local
412 std::vector<int> sparse_features; local
472 std::vector<int> sparse_features; local
475 extractor.Extract(Token(), false, &sparse_features, &dense_features); local
499 std::vector<int> sparse_features; local
    [all...]
model-executor.cc 103 const TensorView<int>& sparse_features, float* dest, int dest_size) const {
109 const int num_sparse_features = sparse_features.size();
111 const int bucket_id = sparse_features.data()[i];
model-executor.h 95 // Embeds the sparse_features into a dense embedding and adds (+) it
97 virtual bool AddEmbedding(const TensorView<int>& sparse_features, float* dest,
110 bool AddEmbedding(const TensorView<int>& sparse_features, float* dest,
token-feature-extractor.h 74 // The sparse_features output is optional. Fails and returns false if
77 std::vector<int>* sparse_features,
token-feature-extractor.cc 83 std::vector<int>* sparse_features,
88 if (sparse_features) {
89 *sparse_features = ExtractCharactergramFeatures(token);
feature-processor_test.cc 67 bool AddEmbedding(const TensorView<int>& sparse_features, float* dest,
70 EXPECT_EQ(sparse_features.size(), 1);
71 dest[0] = sparse_features.data()[0];
72 dest[1] = sparse_features.data()[0];
73 dest[2] = -sparse_features.data()[0];
74 dest[3] = -sparse_features.data()[0];
    [all...]
feature-processor.cc 962 std::vector<int> sparse_features; local
    [all...]
  /external/tensorflow/tensorflow/contrib/libsvm/python/kernel_tests/
decode_libsvm_op_test.py 37 sparse_features, labels = libsvm_ops.decode_libsvm(
40 sparse_features, validate_indices=False)
55 sparse_features, labels = libsvm_ops.decode_libsvm(
58 sparse_features, validate_indices=False)
  /external/tensorflow/tensorflow/core/kernels/
sdca_internal.cc 60 const Example::SparseFeatures& sparse_features,
62 for (int64 k = 0; k < sparse_features.indices->size(); ++k) {
64 sparse_features.values == nullptr ? 1.0 : (*sparse_features.values)(k);
65 auto it = indices_to_id_.find((*sparse_features.indices)(k));
159 const Example::SparseFeatures& sparse_features = sparse_features_[j]; local
163 for (int64 k = 0; k < sparse_features.indices->size(); ++k) {
164 const int64 feature_index = (*sparse_features.indices)(k);
165 const double feature_value = sparse_features.values == nullptr
167 : (*sparse_features.values)(k)
    [all...]
sdca_internal.h 266 const Example::SparseFeatures& sparse_features,
  /external/tensorflow/tensorflow/contrib/linear_optimizer/python/
sdca_optimizer.py 135 dense_features, sparse_features, sparse_feature_with_values = [], [], []
180 sparse_features.append(
210 sparse_feature_with_values.extend(sparse_features)
213 sparse_features=sparse_feature_with_values,
  /external/tensorflow/tensorflow/contrib/tensor_forest/python/ops/
data_ops.py 125 sparse_features = []
138 sparse_features.append(
161 if sparse_features:
162 processed_sparse_features = sparse_ops.sparse_concat(1, sparse_features)
167 col_spec.name = 'sparse_features'
  /external/tensorflow/tensorflow/contrib/tensor_forest/python/
tensor_forest.py 464 sparse_features=processed_sparse_features,
503 sparse_features=processed_sparse_features,
575 sparse_features=None,
588 sparse_features: A tf.SparseTensor for sparse input data.
604 if sparse_features is not None:
605 sparse_indices = sparse_features.indices
606 sparse_values = sparse_features.values
607 sparse_shape = sparse_features.dense_shape
649 def inference_graph(self, input_data, data_spec, sparse_features=None):
656 sparse_features: A tf.SparseTensor for sparse input data
    [all...]
  /external/tensorflow/tensorflow/contrib/linear_optimizer/python/kernel_tests/
sdca_ops_test.py 79 sparse_features = [
98 sparse_features=sparse_features,
152 sparse_features=[],
    [all...]
  /external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
dnn_linear_combined_test.py 484 sparse_features = [
492 sparse_features[0], dimension=1)
509 linear_feature_columns=sparse_features,
    [all...]
linear_test.py 480 sparse_features = [
501 feature_columns=sparse_features, config=config)
    [all...]

Completed in 628 milliseconds