date | section | title |
---|---|---|
2021年 九月 1日 星期三 |
3 |
galileo.framework.tf.python.supervised.Supervised |
galileo.framework.tf.python.supervised.Supervised - supervised model
\
继承自 Model , 以及 galileo.framework.python.base_supervised.BaseSupervised .
def __init__ (self, loss_name=__default_loss, metric_names='categorical_accuracy', dense_input_dim=None, label_dim=None, num_classes=None, is_add_metrics=True, *args, **kwargs)\
def encoder (self, inputs)
supervised feature encoder
def dense_encoder (self, inputs)
a dense layer after encoder
def loss_and_metrics (self, labels, logits)\
def convert_ids_tensor (self, inputs)
convert ids tensor
def convert_features_tensor (self, inputs)
convert features tensor
def convert_labels_tensor (self, inputs)
convert labels tensor
def call (self, inputs)\
def get_config (self)\
loss_name\
loss_obj\
metric_names\
is_add_metrics\
metric_objs\
dense_layer\
dense_input_dim\
label_dim\
supervised model
Methods that the subclass must implement: encoder
args:
参数
loss_name loss name
metric_names metric names, default is categorical_accuracy
dense_input_dim input dim for dense layer
label_dim label dim
num_classes num of class
is_add_metrics add loss and metrics layers for keras
返回
a dict of loss and metrics or y_true and y_pred
重载 galileo.framework.python.base_supervised.BaseSupervised .
由 Doyxgen 通过分析 Galileo 的 源代码自动生成.