Preparing report...

Report for github.com/po3rin/gonnp

A    Great!    Found 28 issues across 64 files

Tweet

gofmt90%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint78%

Golint is a linter for Go source code.

    • gonnp/layers/relu.go
    • Line 8: warning: exported type Relu should have comment or be unexported (golint)
    • Line 19: warning: exported method Relu.Forward should have comment or be unexported (golint)
    • Line 33: warning: exported method Relu.Backward should have comment or be unexported (golint)
    • Line 46: warning: exported method Relu.GetParam should have comment or be unexported (golint)
    • Line 50: warning: exported method Relu.GetGrad should have comment or be unexported (golint)
    • Line 54: warning: exported method Relu.SetParam should have comment or be unexported (golint)
    • gonnp/models/cbow.go
    • Line 10: warning: exported type CBOW should have comment or be unexported (golint)
    • Line 15: warning: exported function InitCBOW should have comment or be unexported (golint)
    • Line 33: warning: exported method CBOW.Forward should have comment or be unexported (golint)
    • Line 47: warning: exported method CBOW.Backward should have comment or be unexported (golint)
    • gonnp/models/models.go
    • Line 15: warning: exported type Layer should have comment or be unexported (golint)
    • Line 21: warning: exported type LossLayer should have comment or be unexported (golint)
    • Line 26: warning: exported type LossLayerWithParams should have comment or be unexported (golint)
    • gonnp/models/twolayernet.go
    • Line 35: warning: exported method TwoLayerNet.Predict should have comment or be unexported (golint)
    • Line 43: warning: exported method TwoLayerNet.Forward should have comment or be unexported (golint)
    • Line 54: warning: exported method TwoLayerNet.Backward should have comment or be unexported (golint)
    • gonnp/x/xmodels/models.go
    • Line 15: warning: exported type Layer should have comment or be unexported (golint)
    • Line 21: warning: exported type LossLayerWithParams should have comment or be unexported (golint)
    • gonnp/x/xlayers/embedding.go
    • Line 30: warning: exported method Embedding.Forward should have comment or be unexported (golint)
    • Line 36: warning: exported method Embedding.Backward should have comment or be unexported (golint)
    • Line 61: warning: exported method Embedding.GetParam should have comment or be unexported (golint)
    • Line 65: warning: exported method Embedding.GetGrad should have comment or be unexported (golint)
    • Line 69: warning: exported method Embedding.SetParam should have comment or be unexported (golint)
    • gonnp/x/xlayers/negativesampling.go
    • Line 17: warning: exported type EmbeddingDot should have comment or be unexported (golint)
    • Line 30: warning: exported method EmbeddingDot.Forward should have comment or be unexported (golint)
    • Line 47: warning: exported method EmbeddingDot.Backward should have comment or be unexported (golint)
    • Line 71: warning: exported method EmbeddingDot.GetParam should have comment or be unexported (golint)
    • Line 75: warning: exported method EmbeddingDot.GetGrad should have comment or be unexported (golint)
    • Line 79: warning: exported method EmbeddingDot.SetParam should have comment or be unexported (golint)
    • Line 83: warning: exported type Sampler should have comment or be unexported (golint)
    • Line 186: warning: exported method NegativeSamplingLoss.Backward should have comment or be unexported (golint)
    • gonnp/layers/negativesampling.go
    • Line 19: warning: exported type EmbeddingDot should have comment or be unexported (golint)
    • Line 32: warning: exported method EmbeddingDot.Forward should have comment or be unexported (golint)
    • Line 45: warning: exported method EmbeddingDot.Backward should have comment or be unexported (golint)
    • Line 61: warning: exported method EmbeddingDot.GetParam should have comment or be unexported (golint)
    • Line 65: warning: exported method EmbeddingDot.GetGrad should have comment or be unexported (golint)
    • Line 69: warning: exported method EmbeddingDot.SetParam should have comment or be unexported (golint)
    • Line 73: warning: exported type Sampler should have comment or be unexported (golint)
    • Line 244: warning: exported method NegativeSamplingLoss.Backward should have comment or be unexported (golint)
    • gonnp/models/simplecbow.go
    • Line 10: warning: exported type SimpleCBOW should have comment or be unexported (golint)
    • Line 15: warning: exported function InitSimpleCBOW should have comment or be unexported (golint)
    • Line 31: warning: exported method SimpleCBOW.Forward should have comment or be unexported (golint)
    • Line 52: warning: exported method SimpleCBOW.Backward should have comment or be unexported (golint)
    • gonnp/x/xmodels/cbow.go
    • Line 11: warning: exported type CBOW should have comment or be unexported (golint)
    • Line 16: warning: exported function InitCBOW should have comment or be unexported (golint)
    • Line 71: warning: exported method CBOW.Backward should have comment or be unexported (golint)
    • gonnp/layers/embedding.go
    • Line 30: warning: exported method Embedding.Forward should have comment or be unexported (golint)
    • Line 36: warning: exported method Embedding.Backward should have comment or be unexported (golint)
    • Line 59: warning: exported method Embedding.GetParam should have comment or be unexported (golint)
    • Line 63: warning: exported method Embedding.GetGrad should have comment or be unexported (golint)
    • Line 67: warning: exported method Embedding.SetParam should have comment or be unexported (golint)
    • Line 87: warning: exported method TimeEmbedding.Forward should have comment or be unexported (golint)
    • Line 109: warning: exported method TimeEmbedding.Backward should have comment or be unexported (golint)
    • gonnp/layers/sigmoid.go
    • Line 11: warning: exported type Sigmoid should have comment or be unexported (golint)
    • Line 22: warning: exported method Sigmoid.Forward should have comment or be unexported (golint)
    • Line 27: warning: exported method Sigmoid.Backward should have comment or be unexported (golint)
    • Line 38: warning: exported method Sigmoid.GetParam should have comment or be unexported (golint)
    • Line 42: warning: exported method Sigmoid.GetGrad should have comment or be unexported (golint)
    • Line 46: warning: exported method Sigmoid.SetParam should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell87%

Misspell Finds commonly misspelled English words

    • gonnp/matutil/matutils_test.go
    • Line 467: warning: "dimention" is a misspelling of "dimension" (misspell)
    • Line 526: warning: "dimention" is a misspelling of "dimension" (misspell)
    • Line 589: warning: "dimention" is a misspelling of "dimension" (misspell)
    • Line 653: warning: "dimention" is a misspelling of "dimension" (misspell)
    • Line 698: warning: "dimention" is a misspelling of "dimension" (misspell)