Browse Source

对外暴露LossBase

tags/v0.5.5
yh_cc 4 years ago
parent
commit
eba9121a9d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      fastNLP/core/__init__.py

+ 2
- 1
fastNLP/core/__init__.py View File

@@ -61,6 +61,7 @@ __all__ = [
"NLLLoss",
"LossInForward",
"CMRC2018Loss",
"LossBase",

"MetricBase",
"AccuracyMetric",
@@ -88,7 +89,7 @@ from .const import Const
from .dataset import DataSet
from .field import FieldArray, Padder, AutoPadder, EngChar2DPadder
from .instance import Instance
from .losses import LossFunc, CrossEntropyLoss, L1Loss, BCELoss, NLLLoss, LossInForward, CMRC2018Loss
from .losses import LossFunc, CrossEntropyLoss, L1Loss, BCELoss, NLLLoss, LossInForward, CMRC2018Loss, LossBase
from .metrics import AccuracyMetric, SpanFPreRecMetric, CMRC2018Metric, ClassifyFPreRecMetric, MetricBase
from .optimizer import Optimizer, SGD, Adam, AdamW
from .sampler import SequentialSampler, BucketSampler, RandomSampler, Sampler


Loading…
Cancel
Save