Preparing report...

Report for github.com/go4ml/nn

(v0.0.0-20220319191334-49261e5b5754)

A    Great!    Found 34 issues across 36 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo86%

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.

    • mx/graph.go
    • Line 264: warning: cyclomatic complexity 27 of function (*Graph).compose() is high (> 15) (gocyclo)
    • params.go
    • Line 24: warning: cyclomatic complexity 22 of function (*Network).SaveParams() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 16 of function (*ParamsReader).Next() is high (> 15) (gocyclo)
    • mx/summary.go
    • Line 62: warning: cyclomatic complexity 19 of function (*Graph).Summary() is high (> 15) (gocyclo)
    • train.go
    • Line 17: warning: cyclomatic complexity 17 of function Train() is high (> 15) (gocyclo)
    • mx/capi/capi.go
    • Line 49: warning: cyclomatic complexity 17 of function init() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 16 of function InferShapes() is high (> 15) (gocyclo)

golint5%

Golint is a linter for Go source code.

    • mx/dtype.go
    • Line 3: warning: exported type Dtype should have comment or be unexported (golint)
    • Line 6: warning: exported const Float32 should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported method Dtype.Size should have comment or be unexported (golint)
    • network.go
    • Line 10: warning: exported type Network should have comment or be unexported (golint)
    • Line 17: warning: exported method Network.Release should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported function Load should have comment or be unexported (golint)
    • Line 50: warning: exported function Inherit should have comment or be unexported (golint)
    • Line 68: warning: exported method Network.Forward should have comment or be unexported (golint)
    • Line 74: warning: exported method Network.Predict should have comment or be unexported (golint)
    • Line 85: warning: exported method Network.Train should have comment or be unexported (golint)
    • Line 95: warning: exported method Network.Update should have comment or be unexported (golint)
    • sgd.go
    • Line 5: warning: exported type SGD should have comment or be unexported (golint)
    • Line 11: warning: exported method SGD.Init should have comment or be unexported (golint)
    • slice.go
    • Line 8: warning: exported type Slice should have comment or be unexported (golint)
    • Line 17: warning: exported method Slice.Combine should have comment or be unexported (golint)
    • conv.go
    • Line 8: warning: exported type Convolution should have comment or be unexported (golint)
    • Line 27: warning: exported method Convolution.Combine should have comment or be unexported (golint)
    • Line 70: warning: exported type MaxPool should have comment or be unexported (golint)
    • Line 81: warning: exported method MaxPool.Combine should have comment or be unexported (golint)
    • Line 97: warning: exported type AvgPool should have comment or be unexported (golint)
    • Line 108: warning: exported method AvgPool.Combine should have comment or be unexported (golint)
    • optimizer.go
    • Line 5: warning: exported type OptimizerConf should have comment or be unexported (golint)
    • Line 9: warning: exported type Optimizer should have comment or be unexported (golint)
    • mx/symbol.go
    • Line 10: warning: don't use underscores in Go names; const OpVar_ should be OpVar (golint)
    • Line 10: warning: exported const OpVar_ should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; const OpInput_ should be OpInput (golint)
    • Line 12: warning: don't use underscores in Go names; const OpScalar_ should be OpScalar (golint)
    • Line 13: warning: don't use underscores in Go names; const OpNogVar_ should be OpNogVar (golint)
    • Line 14: warning: don't use underscores in Go names; const OpGroup_ should be OpGroup (golint)
    • Line 15: warning: don't use underscores in Go names; const OpRef_ should be OpRef (golint)
    • Line 16: warning: don't use underscores in Go names; const OpOutput_ should be OpOutput (golint)
    • Line 17: warning: don't use underscores in Go names; const OpBound_ should be OpBound (golint)
    • Line 18: warning: don't use underscores in Go names; const OpDepend_ should be OpDepend (golint)
    • Line 19: warning: don't use underscores in Go names; const OpLink_ should be OpLink (golint)
    • Line 22: warning: exported type Inite should have comment or be unexported (golint)
    • Line 32: warning: exported type Symbol should have comment or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; type _hidden_input_ should be _hiddenInput (golint)
    • Line 45: warning: exported function Input should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; type _hidden_nograd_ should be _hiddenNograd (golint)
    • Line 49: warning: exported function Nograd should have comment or be unexported (golint)
    • Line 51: warning: exported method Symbol.SetName should have comment or be unexported (golint)
    • Line 56: warning: exported method Symbol.SetOutput should have comment or be unexported (golint)
    • Line 61: warning: exported function Output should have comment or be unexported (golint)
    • Line 65: warning: exported function Bound should have comment or be unexported (golint)
    • Line 69: warning: exported function Depend should have comment or be unexported (golint)
    • Line 73: warning: exported function SymbolCast should have comment or be unexported (golint)
    • Line 91: warning: exported function GenericOp2 should have comment or be unexported (golint)
    • Line 120: warning: exported function GenericOp1 should have comment or be unexported (golint)
    • Line 139: warning: exported function Add should have comment or be unexported (golint)
    • Line 143: warning: exported function Sub should have comment or be unexported (golint)
    • Line 147: warning: exported function Mul should have comment or be unexported (golint)
    • Line 151: warning: exported function Div should have comment or be unexported (golint)
    • Line 155: warning: exported function Dot should have comment or be unexported (golint)
    • Line 159: warning: exported function LE should have comment or be unexported (golint)
    • Line 163: warning: exported function GE should have comment or be unexported (golint)
    • Line 167: warning: exported function EQ should have comment or be unexported (golint)
    • Line 171: warning: exported function NE should have comment or be unexported (golint)
    • Line 175: warning: exported function Lesser should have comment or be unexported (golint)
    • Line 179: warning: exported function Greater should have comment or be unexported (golint)
    • Line 183: warning: exported function And should have comment or be unexported (golint)
    • Line 187: warning: exported function Or should have comment or be unexported (golint)
    • Line 191: warning: exported function Xor should have comment or be unexported (golint)
    • Line 195: warning: exported function BcastAdd should have comment or be unexported (golint)
    • Line 202: warning: exported function BcastMul should have comment or be unexported (golint)
    • Line 209: warning: exported function BcastDiv should have comment or be unexported (golint)
    • Line 216: warning: exported function BcastSub should have comment or be unexported (golint)
    • Line 223: warning: exported function Log should have comment or be unexported (golint)
    • Line 227: warning: exported function Cosh should have comment or be unexported (golint)
    • Line 231: warning: exported function LogCosh should have comment or be unexported (golint)
    • Line 235: warning: exported function Not should have comment or be unexported (golint)
    • Line 239: warning: exported function Var should have comment or be unexported (golint)
    • Line 257: warning: exported function Value should have comment or be unexported (golint)
    • Line 261: warning: exported function Link should have comment or be unexported (golint)
    • Line 265: warning: exported function Ref should have comment or be unexported (golint)
    • Line 269: warning: exported function Group should have comment or be unexported (golint)
    • Line 273: warning: exported function MakeLoss should have comment or be unexported (golint)
    • Line 277: warning: exported function BlockGrad should have comment or be unexported (golint)
    • Line 281: warning: exported function Pow should have comment or be unexported (golint)
    • Line 285: warning: exported function Abs should have comment or be unexported (golint)
    • Line 289: warning: exported function Square should have comment or be unexported (golint)
    • Line 293: warning: exported function Sqrt should have comment or be unexported (golint)
    • Line 297: warning: exported function Minus should have comment or be unexported (golint)
    • Line 302: warning: exported function Pick should have comment or be unexported (golint)
    • Line 307: warning: exported function LogSoftmax should have comment or be unexported (golint)
    • Line 315: warning: exported function SoftmaxOutput should have comment or be unexported (golint)
    • Line 323: warning: exported function Softmax should have comment or be unexported (golint)
    • Line 331: warning: exported function SoftmaxActivation should have comment or be unexported (golint)
    • Line 339: warning: exported function SoftmaxCrossEntropy should have comment or be unexported (golint)
    • Line 377: warning: exported function SumNan should have comment or be unexported (golint)
    • Line 387: warning: exported function Sum should have comment or be unexported (golint)
    • Line 397: warning: exported function Sum1 should have comment or be unexported (golint)
    • Line 406: warning: exported function SumXl should have comment or be unexported (golint)
    • Line 417: warning: exported function Mean should have comment or be unexported (golint)
    • Line 427: warning: exported function MeanKd should have comment or be unexported (golint)
    • Line 438: warning: exported function MeanXl should have comment or be unexported (golint)
    • Line 449: warning: exported function Stack should have comment or be unexported (golint)
    • Line 457: warning: exported function Stack1 should have comment or be unexported (golint)
    • Line 466: warning: exported function BatchNorm should have comment or be unexported (golint)
    • Line 484: warning: exported function Concat should have comment or be unexported (golint)
    • Line 489: warning: exported function Conv should have comment or be unexported (golint)
    • Line 524: warning: exported type ActivationType should have comment or be unexported (golint)
    • Line 527: warning: exported const ActivReLU should have comment (or a comment on this block) or be unexported (golint)
    • Line 534: warning: exported function Activation should have comment or be unexported (golint)
    • Line 553: warning: exported function Pool should have comment or be unexported (golint)
    • Line 589: warning: exported function FullyConnected should have comment or be unexported (golint)
    • Line 602: warning: exported function Flatten should have comment or be unexported (golint)
    • Line 606: warning: exported function Sigmoid should have comment or be unexported (golint)
    • Line 610: warning: exported function HardSigmoid should have comment or be unexported (golint)
    • Line 614: warning: exported function Tanh should have comment or be unexported (golint)
    • Line 618: warning: exported function Sin should have comment or be unexported (golint)
    • Line 622: warning: exported function ReLU should have comment or be unexported (golint)
    • Line 626: warning: exported function Exp should have comment or be unexported (golint)
    • Line 630: warning: exported function Transpose should have comment or be unexported (golint)
    • Line 651: warning: exported function Slice should have comment or be unexported (golint)
    • Line 665: warning: exported function Channel should have comment or be unexported (golint)
    • Line 675: warning: exported function Ones should have comment or be unexported (golint)
    • Line 682: warning: exported function Reshape should have comment or be unexported (golint)
    • Line 690: warning: exported function OnesLike should have comment or be unexported (golint)
    • Line 697: warning: exported function Zeros should have comment or be unexported (golint)
    • Line 704: warning: exported function ZerosLike should have comment or be unexported (golint)
    • Line 711: warning: exported function ReshapeLike should have comment or be unexported (golint)
    • Line 718: warning: exported function SwapAxes should have comment or be unexported (golint)
    • Line 729: warning: exported function Normal should have comment or be unexported (golint)
    • Line 740: warning: exported function Dropout should have comment or be unexported (golint)
    • loss.go
    • Line 8: warning: exported type L0Loss should have comment or be unexported (golint)
    • Line 10: warning: exported method L0Loss.Loss should have comment or be unexported (golint)
    • Line 14: warning: exported type L1Loss should have comment or be unexported (golint)
    • Line 16: warning: exported method L1Loss.Loss should have comment or be unexported (golint)
    • Line 22: warning: exported type L2Loss should have comment or be unexported (golint)
    • Line 24: warning: exported method L2Loss.Loss should have comment or be unexported (golint)
    • Line 30: warning: exported type SoftmaxCrossEntropyLoss should have comment or be unexported (golint)
    • Line 32: warning: exported method SoftmaxCrossEntropyLoss.Loss should have comment or be unexported (golint)
    • Line 37: warning: exported type CrossEntropyLoss should have comment or be unexported (golint)
    • Line 39: warning: exported method CrossEntropyLoss.Loss should have comment or be unexported (golint)
    • Line 46: warning: exported type LcosLoss should have comment or be unexported (golint)
    • Line 48: warning: exported method LcosLoss.Loss should have comment or be unexported (golint)
    • Line 54: warning: exported type LossFunc should have comment or be unexported (golint)
    • Line 56: warning: exported method LossFunc.Loss should have comment or be unexported (golint)
    • output.go
    • Line 8: warning: exported type Output should have comment or be unexported (golint)
    • Line 16: warning: exported method Output.Combine should have comment or be unexported (golint)
    • symbol.go
    • Line 14: warning: exported function NextSymbolId should have comment or be unexported (golint)
    • Line 23: warning: exported function SaveSymbol should have comment or be unexported (golint)
    • Line 43: warning: exported method Network.SaveSymbol should have comment or be unexported (golint)
    • Line 47: warning: exported function LoadSymbol should have comment or be unexported (golint)
    • mx/graph.go
    • Line 11: warning: exported type GraphIdentity should have comment or be unexported (golint)
    • Line 13: warning: exported type Loss should have comment or be unexported (golint)
    • Line 18: warning: exported type Param should have comment or be unexported (golint)
    • Line 25: warning: exported type Graph should have comment or be unexported (golint)
    • Line 74: warning: exported method Graph.Release should have comment or be unexported (golint)
    • Line 116: warning: exported method Graph.GetShapes should have comment or be unexported (golint)
    • Line 192: warning: exported function Compose should have comment or be unexported (golint)
    • Line 363: warning: exported method Graph.NextSymbolId should have comment or be unexported (golint)
    • Line 368: warning: exported method Graph.InitParam should have comment or be unexported (golint)
    • Line 383: warning: exported method Graph.Initialize should have comment or be unexported (golint)
    • Line 399: warning: exported method Graph.Forward should have comment or be unexported (golint)
    • Line 406: warning: exported method Graph.Backward should have comment or be unexported (golint)
    • mx/capi/enums.go
    • Line 3: warning: exported type MxnetKey should have comment or be unexported (golint)
    • Line 6: warning: exported const KeyEmpty should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: exported method MxnetKey.Value should have comment or be unexported (golint)
    • Line 107: warning: exported type MxnetOp should have comment or be unexported (golint)
    • Line 110: warning: exported const OpEmpty should have comment (or a comment on this block) or be unexported (golint)
    • Line 275: warning: exported method MxnetOp.Value should have comment or be unexported (golint)
    • adam.go
    • Line 7: warning: exported type Adam should have comment or be unexported (golint)
    • Line 24: warning: exported method Adam.Init should have comment or be unexported (golint)
    • dropout.go
    • Line 5: warning: exported type Dropout should have comment or be unexported (golint)
    • Line 9: warning: exported method Dropout.Combine should have comment or be unexported (golint)
    • train.go
    • Line 11: warning: exported type ModelMapFunction should have comment or be unexported (golint)
    • Line 13: warning: exported function DefaultModelMap should have comment or be unexported (golint)
    • Line 17: warning: exported function Train should have comment or be unexported (golint)
    • mx/context.go
    • Line 8: warning: exported type Context should have comment or be unexported (golint)
    • Line 11: warning: exported const NullContext should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function Gpu should have comment or be unexported (golint)
    • Line 25: warning: exported method Context.DevType should have comment or be unexported (golint)
    • Line 29: warning: exported method Context.DevNo should have comment or be unexported (golint)
    • Line 33: warning: exported method Context.IsGPU should have comment or be unexported (golint)
    • Line 49: warning: exported method Context.RandomSeed should have comment or be unexported (golint)
    • Line 53: warning: exported method Context.Upgrade should have comment or be unexported (golint)
    • mx/filler.go
    • Line 12: warning: exported method NDArray.Uniform should have comment or be unexported (golint)
    • Line 21: warning: exported method NDArray.Normal should have comment or be unexported (golint)
    • Line 30: warning: exported method NDArray.Zeros should have comment or be unexported (golint)
    • Line 37: warning: exported method NDArray.Ones should have comment or be unexported (golint)
    • Line 41: warning: exported method NDArray.Fill should have comment or be unexported (golint)
    • Line 51: warning: exported method NDArray.Xavier should have comment or be unexported (golint)
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dense.go
    • Line 8: warning: exported type Flatten should have comment or be unexported (golint)
    • Line 10: warning: exported method Flatten.Combine should have comment or be unexported (golint)
    • Line 14: warning: exported type FullyConnected should have comment or be unexported (golint)
    • Line 27: warning: exported method FullyConnected.Combine should have comment or be unexported (golint)
    • inite.go
    • Line 5: warning: exported type Const should have comment or be unexported (golint)
    • Line 9: warning: exported method Const.Inite should have comment or be unexported (golint)
    • Line 16: warning: exported type XavierFactor should have comment or be unexported (golint)
    • Line 19: warning: exported const XavierIn should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type Xavier should have comment or be unexported (golint)
    • Line 30: warning: exported method Xavier.Inite should have comment or be unexported (golint)
    • Line 42: warning: exported type Uniform should have comment or be unexported (golint)
    • Line 46: warning: exported method Uniform.Inite should have comment or be unexported (golint)
    • model.go
    • Line 15: warning: comment on exported const DefaultBatchSize should be of the form "DefaultBatchSize ..." (golint)
    • Line 32: warning: exported method Model.Feed should have comment or be unexported (golint)
    • Line 54: warning: comment on exported method PredictionModel.Predicted should be of the form "Predicted ..." (golint)
    • Line 60: warning: comment on exported method PredictionModel.FeaturesMapper should be of the form "FeaturesMapper ..." (golint)
    • Line 92: warning: comment on exported method FeaturesMapper.MapFeatures should be of the form "MapFeatures ..." (golint)
    • Line 121: warning: exported function ObjectifyModel should have comment or be unexported (golint)
    • Line 143: warning: exported function Objectify should have comment or be unexported (golint)
    • Line 152: warning: exported function LuckyObjectify should have comment or be unexported (golint)
    • mx/summary.go
    • Line 17: warning: exported method Graph.Identity should have comment or be unexported (golint)
    • Line 29: warning: exported method Graph.ToJson should have comment or be unexported (golint)
    • Line 37: warning: exported type GraphJs should have comment or be unexported (golint)
    • Line 46: warning: exported type SummryArg should have comment or be unexported (golint)
    • Line 51: warning: exported type SummaryRow should have comment or be unexported (golint)
    • Line 60: warning: exported type Summary should have comment or be unexported (golint)
    • Line 62: warning: exported method Graph.Summary should have comment or be unexported (golint)
    • Line 124: warning: exported method Summary.Print should have comment or be unexported (golint)
    • Line 156: warning: exported method Graph.SummaryOut should have comment or be unexported (golint)
    • Line 161: warning: exported method Graph.LogSummary should have comment or be unexported (golint)
    • Line 165: warning: exported method Graph.PrintSummary should have comment or be unexported (golint)
    • lambda.go
    • Line 5: warning: exported type Lambda should have comment or be unexported (golint)
    • Line 9: warning: exported method Lambda.Combine should have comment or be unexported (golint)
    • mx/optimizer.go
    • Line 5: warning: exported function SgdMomUpdate should have comment or be unexported (golint)
    • Line 14: warning: exported function SgdUpdate should have comment or be unexported (golint)
    • Line 22: warning: exported function AdamUpdate should have comment or be unexported (golint)
    • tests/nnmx_test.go
    • Line 11: warning: don't use underscores in Go names; var test_on_GPU should be testOnGPU (golint)
    • Line 36: warning: don't use underscores in Go names; func f_Array1 should be fArray1 (golint)
    • Line 83: warning: don't use underscores in Go names; type array2_ds_t should be array2DsT (golint)
    • Line 88: warning: don't use underscores in Go names; var array2_ds should be array2Ds (golint)
    • Line 130: warning: don't use underscores in Go names; func f_Array2 should be fArray2 (golint)
    • Line 168: warning: don't use underscores in Go names; func f_Random should be fRandom (golint)
    • Line 184: warning: don't use underscores in Go names; func f_Xavier should be fXavier (golint)
    • Line 200: warning: don't use underscores in Go names; func f_Zeros should be fZeros (golint)
    • mx/capi/args.go
    • Line 12: warning: exported const MaxArgsCount should have comment or be unexported (golint)
    • Line 13: warning: exported const MaxCacheArgsCount should have comment or be unexported (golint)
    • Line 24: warning: exported function Cache should have comment or be unexported (golint)
    • Line 51: warning: exported function Fillargs should have comment or be unexported (golint)
    • block.go
    • Line 7: warning: exported type Block should have comment or be unexported (golint)
    • Line 11: warning: exported function Combine should have comment or be unexported (golint)
    • Line 18: warning: exported type BlockConnect should have comment or be unexported (golint)
    • Line 22: warning: exported method BlockConnect.Combine should have comment or be unexported (golint)
    • Line 29: warning: exported function Sequence should have comment or be unexported (golint)
    • Line 33: warning: exported type BlockConcat should have comment or be unexported (golint)
    • Line 37: warning: exported method BlockConcat.Combine should have comment or be unexported (golint)
    • Line 48: warning: exported function Concat should have comment or be unexported (golint)
    • Line 52: warning: exported type BlockStack should have comment or be unexported (golint)
    • Line 57: warning: exported method BlockStack.Combine should have comment or be unexported (golint)
    • Line 68: warning: exported function TransStack should have comment or be unexported (golint)
    • Line 72: warning: exported function Stack should have comment or be unexported (golint)
    • Line 76: warning: exported type ResidualBlock should have comment or be unexported (golint)
    • Line 80: warning: exported function Residual should have comment or be unexported (golint)
    • Line 84: warning: exported method ResidualBlock.Combine should have comment or be unexported (golint)
    • params.go
    • Line 24: warning: exported method Network.SaveParams should have comment or be unexported (golint)
    • Line 101: warning: exported type ParamsReader should have comment or be unexported (golint)
    • Line 107: warning: exported function NewParamsReader should have comment or be unexported (golint)
    • Line 144: warning: exported method ParamsReader.HasMore should have comment or be unexported (golint)
    • Line 148: warning: exported method ParamsReader.Next should have comment or be unexported (golint)
    • Line 209: warning: exported method Network.LoadParams should have comment or be unexported (golint)
    • mx/dimension.go
    • Line 11: warning: exported const DimRow should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported const MaxDimensionCount should be of the form "MaxDimensionCount ..." (golint)
    • Line 21: warning: comment on exported type Dimension should be of the form "Dimension ..." (with optional leading article) (golint)
    • Line 27: warning: exported function DimensionFromString should have comment or be unexported (golint)
    • Line 67: warning: exported method Dimension.Skip should have comment or be unexported (golint)
    • Line 76: warning: exported method Dimension.Push should have comment or be unexported (golint)
    • Line 83: warning: exported method Dimension.Like should have comment or be unexported (golint)
    • Line 95: warning: exported method Dimension.Slice should have comment or be unexported (golint)
    • Line 106: warning: comment on exported method Dimension.Good should be of the form "Good ..." (golint)
    • Line 119: warning: exported method Dimension.Empty should have comment or be unexported (golint)
    • Line 123: warning: comment on exported method Dimension.SizeOf should be of the form "SizeOf ..." (golint)
    • Line 128: warning: comment on exported method Dimension.Total should be of the form "Total ..." (golint)
    • Line 137: warning: comment on exported function Dim should be of the form "Dim ..." (golint)
    • mx/mxnet.go
    • Line 9: warning: exported const VersionMajor should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported const Version should have comment or be unexported (golint)
    • Line 16: warning: exported function LibVersion should have comment or be unexported (golint)
    • Line 20: warning: exported function GpuCount should have comment or be unexported (golint)
    • Line 24: warning: exported function RandomSeed should have comment or be unexported (golint)
    • mx/ndarray.go
    • Line 11: warning: exported type NDArray should have comment or be unexported (golint)
    • Line 25: warning: exported method NDArray.Release should have comment or be unexported (golint)
    • Line 29: warning: exported function Array should have comment or be unexported (golint)
    • Line 33: warning: exported method Context.Array should have comment or be unexported (golint)
    • Line 46: warning: exported method Context.CopyAs should have comment or be unexported (golint)
    • Line 55: warning: exported method NDArray.NewLikeThis should have comment or be unexported (golint)
    • Line 59: warning: exported method NDArray.Context should have comment or be unexported (golint)
    • Line 63: warning: exported method NDArray.Dtype should have comment or be unexported (golint)
    • Line 67: warning: exported method NDArray.Dim should have comment or be unexported (golint)
    • Line 71: warning: exported method NDArray.Cast should have comment or be unexported (golint)
    • Line 75: warning: exported method NDArray.Reshape should have comment or be unexported (golint)
    • Line 83: warning: exported method NDArray.Depth should have comment or be unexported (golint)
    • Line 87: warning: exported method NDArray.Len should have comment or be unexported (golint)
    • Line 97: warning: exported method NDArray.Size should have comment or be unexported (golint)
    • Line 148: warning: exported method NDArray.SetValues should have comment or be unexported (golint)
    • Line 179: warning: exported method NDArray.Raw should have comment or be unexported (golint)
    • Line 186: warning: exported method NDArray.Values should have comment or be unexported (golint)
    • Line 201: warning: exported method NDArray.ValuesF32 should have comment or be unexported (golint)
    • Line 205: warning: exported method NDArray.CopyValuesTo should have comment or be unexported (golint)
    • Line 221: warning: exported method NDArray.ReCopyValuesTo should have comment or be unexported (golint)
    • activation.go
    • Line 8: warning: exported function Sigmoid should have comment or be unexported (golint)
    • Line 12: warning: exported function HardSigmoid should have comment or be unexported (golint)
    • Line 16: warning: exported function Tanh should have comment or be unexported (golint)
    • Line 20: warning: exported function Tanh25 should have comment or be unexported (golint)
    • Line 24: warning: exported function ReLU should have comment or be unexported (golint)
    • Line 28: warning: exported function SoftReLU should have comment or be unexported (golint)
    • Line 32: warning: exported function SoftSign should have comment or be unexported (golint)
    • Line 36: warning: exported function Softmax should have comment or be unexported (golint)
    • Line 40: warning: exported function ChannelSoftmax should have comment or be unexported (golint)
    • Line 44: warning: exported function Swish should have comment or be unexported (golint)
    • Line 48: warning: exported function Sin should have comment or be unexported (golint)
    • Line 52: warning: exported type Activation should have comment or be unexported (golint)
    • Line 58: warning: exported method Activation.Combine should have comment or be unexported (golint)
    • batchnorm.go
    • Line 8: warning: exported type BatchNorm should have comment or be unexported (golint)
    • Line 14: warning: exported method BatchNorm.Combine should have comment or be unexported (golint)
    • Line 24: warning: don't use underscores in Go names; var running_mean should be runningMean (golint)
    • Line 25: warning: don't use underscores in Go names; var running_var should be runningVar (golint)
    • memorize.go
    • Line 11: warning: exported const ModelPartParams should have comment or be unexported (golint)
    • Line 12: warning: exported const ModelPartSymbol should have comment or be unexported (golint)
    • Line 13: warning: exported const ModelPartInfo should have comment or be unexported (golint)
    • Line 14: warning: exported const ModelPartSummary should have comment or be unexported (golint)
    • mx/capi/capi.go
    • Line 17: warning: exported var GpuCount should have comment or be unexported (golint)
    • Line 18: warning: exported var LibVersion should have comment or be unexported (golint)
    • Line 22: warning: exported type NDArrayHandle should have comment or be unexported (golint)
    • Line 23: warning: exported type SymbolHandle should have comment or be unexported (golint)
    • Line 24: warning: exported type ExecutorHandle should have comment or be unexported (golint)
    • Line 26: warning: exported function ReleaseNDArry should have comment or be unexported (golint)
    • Line 32: warning: exported function ReleaseSymbol should have comment or be unexported (golint)
    • Line 38: warning: exported function ReleaseExecutor should have comment or be unexported (golint)
    • Line 164: warning: exported function ImperativeInvokeInplace1 should have comment or be unexported (golint)
    • Line 182: warning: exported function ImperativeInvokeInOut1 should have comment or be unexported (golint)
    • Line 202: warning: exported function NewNDArrayHandle should have comment or be unexported (golint)
    • Line 211: warning: exported function GetNDArrayRawData should have comment or be unexported (golint)
    • Line 219: warning: exported function SetNDArrayRawData should have comment or be unexported (golint)
    • Line 227: warning: exported function CreateVariable should have comment or be unexported (golint)
    • Line 237: warning: exported function NewSymbol should have comment or be unexported (golint)
    • Line 268: warning: exported function ComposeSymbol should have comment or be unexported (golint)
    • Line 282: warning: exported const ArgumentsNames should have comment or be unexported (golint)
    • Line 283: warning: exported const OutputNames should have comment or be unexported (golint)
    • Line 284: warning: exported const AuxNames should have comment or be unexported (golint)
    • Line 286: warning: exported function ListNames should have comment or be unexported (golint)
    • Line 290: warning: don't use underscores in Go names; var out_nn should be outNn (golint)
    • Line 291: warning: don't use underscores in Go names; var out_ns should be outNs (golint)
    • Line 317: warning: don't use underscores in Go names; var name_at should be nameAt (golint)
    • Line 330: warning: exported const WithArguments should have comment or be unexported (golint)
    • Line 331: warning: exported const WithOutputs should have comment or be unexported (golint)
    • Line 332: warning: exported const WithAuxStates should have comment or be unexported (golint)
    • Line 333: warning: exported const WithoutOutput should have comment or be unexported (golint)
    • Line 335: warning: exported function InferShapes should have comment or be unexported (golint)
    • Line 345: warning: don't use underscores in Go names; var in_ss should be inSs (golint)
    • Line 345: warning: don't use underscores in Go names; var out_ss should be outSs (golint)
    • Line 345: warning: don't use underscores in Go names; var aux_ss should be auxSs (golint)
    • Line 346: warning: don't use underscores in Go names; var in_sn should be inSn (golint)
    • Line 346: warning: don't use underscores in Go names; var out_sn should be outSn (golint)
    • Line 346: warning: don't use underscores in Go names; var aux_sn should be auxSn (golint)
    • Line 347: warning: don't use underscores in Go names; var in_sd should be inSd (golint)
    • Line 347: warning: don't use underscores in Go names; var out_sd should be outSd (golint)
    • Line 347: warning: don't use underscores in Go names; var aux_sd should be auxSd (golint)
    • Line 382: warning: don't use underscores in Go names; var shape_at should be shapeAt (golint)
    • Line 430: warning: exported function GroupSymbols should have comment or be unexported (golint)
    • Line 439: warning: exported function GetInternals should have comment or be unexported (golint)
    • Line 447: warning: exported function Bind should have comment or be unexported (golint)
    • Line 481: warning: exported type NDArrayInfo should have comment or be unexported (golint)
    • Line 487: warning: exported function FillInfo should have comment or be unexported (golint)
    • Line 506: warning: exported function GetOutputs should have comment or be unexported (golint)
    • Line 523: warning: exported function Forward should have comment or be unexported (golint)
    • Line 533: warning: exported function Backward should have comment or be unexported (golint)
    • Line 539: warning: exported function OptimizerUpdate should have comment or be unexported (golint)
    • Line 552: warning: exported function ToJson should have comment or be unexported (golint)
    • Line 563: warning: exported function RandomSeed should have comment or be unexported (golint)
    • Line 569: warning: exported function ContextRandomSeed should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!