go-ml-dev/nn

View on GitHub
loss.go

Summary

Maintainability
A
0 mins
Test Coverage
F
23%

exported type L1Loss should have comment or be unexported
Open

type L1Loss struct{ Num int }
Severity: Minor
Found in loss.go by golint

exported type SoftmaxCrossEntropyLoss should have comment or be unexported
Open

type SoftmaxCrossEntropyLoss struct{}
Severity: Minor
Found in loss.go by golint

exported method LossFunc.Loss should have comment or be unexported
Open

func (loss LossFunc) Loss(out *mx.Symbol) *mx.Symbol {
Severity: Minor
Found in loss.go by golint

exported method L2Loss.Loss should have comment or be unexported
Open

func (loss L2Loss) Loss(out *mx.Symbol) *mx.Symbol {
Severity: Minor
Found in loss.go by golint

exported method SoftmaxCrossEntropyLoss.Loss should have comment or be unexported
Open

func (SoftmaxCrossEntropyLoss) Loss(out *mx.Symbol) *mx.Symbol {
Severity: Minor
Found in loss.go by golint

exported method L1Loss.Loss should have comment or be unexported
Open

func (loss L1Loss) Loss(out *mx.Symbol) *mx.Symbol {
Severity: Minor
Found in loss.go by golint

exported type L0Loss should have comment or be unexported
Open

type L0Loss struct{}
Severity: Minor
Found in loss.go by golint

exported type L2Loss should have comment or be unexported
Open

type L2Loss struct{ Num int }
Severity: Minor
Found in loss.go by golint

exported type LcosLoss should have comment or be unexported
Open

type LcosLoss struct{ Num int }
Severity: Minor
Found in loss.go by golint

exported type LossFunc should have comment or be unexported
Open

type LossFunc func(*mx.Symbol) *mx.Symbol
Severity: Minor
Found in loss.go by golint

exported method CrossEntropyLoss.Loss should have comment or be unexported
Open

func (loss CrossEntropyLoss) Loss(out *mx.Symbol) *mx.Symbol {
Severity: Minor
Found in loss.go by golint

exported method L0Loss.Loss should have comment or be unexported
Open

func (L0Loss) Loss(out *mx.Symbol) *mx.Symbol {
Severity: Minor
Found in loss.go by golint

exported method LcosLoss.Loss should have comment or be unexported
Open

func (loss LcosLoss) Loss(out *mx.Symbol) *mx.Symbol {
Severity: Minor
Found in loss.go by golint

exported type CrossEntropyLoss should have comment or be unexported
Open

type CrossEntropyLoss struct{ Num int }
Severity: Minor
Found in loss.go by golint

There are no issues that match your filters.

Category
Status