D | sdca_ops.py | 109 def __init__(self, examples, variables, options): argument 112 if not examples or not variables or not options: 123 ], examples) 124 self._assertList(['sparse_features', 'dense_features'], examples) 142 self._examples = examples 234 def _linear_predictions(self, examples): argument 240 for sfc, sv in zip(examples['sparse_features'], sparse_variables): 246 dense_features = self._convert_n_to_tensor(examples['dense_features']) 259 def predictions(self, examples): argument 275 ['example_weights', 'sparse_features', 'dense_features'], examples) [all …]
|