INNER CODE UNIT · Python
add_label_placeholders
deepchem/deepchem · contrib/tensorflow_models/__init__.py:426
def add_label_placeholders(self, graph, name_scopes):
"""Add Placeholders for labels for each task.
This method creates the following Placeholders for each task:
labels_%d: Float label tensor. For classification tasks, this tensor will
have shape batch_size x n_classes. For regression tasks, this tensor
will have shape batch_size.
Raises:
NotImplementedError: if not overridden by concrete subclass.
"""
raise NotImplementedError('Must be overridden by concrete subclass')
def add_example_weight_placeholders(self, graph, name_scopes):
"""Add Placeholders for example weights for each task.
This method creates the following Placeholders for each task:
weights_%d: Label tensor with shape batch_size.