Preparing report...

Report for github.com/sudachen/go-dnn

A    Great!    Found 48 issues across 51 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!


gocyclo94%

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.

    • go-dnn/mx/graph.go
    • Line 160: warning: cyclomatic complexity 21 of function (*Graph).bind() is high (> 15) (gocyclo)
    • Line 321: warning: cyclomatic complexity 17 of function (*Graph).compose() is high (> 15) (gocyclo)

golint9%

Golint is a linter for Go source code.

    • go-dnn/nn/block.go
    • Line 5: warning: exported type Block should have comment or be unexported (golint)
    • Line 9: warning: exported type BlockConnect should have comment or be unexported (golint)
    • Line 13: warning: exported method BlockConnect.Combine should have comment or be unexported (golint)
    • Line 23: warning: exported function Connect should have comment or be unexported (golint)
    • Line 27: warning: exported type BlockConcat should have comment or be unexported (golint)
    • Line 31: warning: exported method BlockConcat.Combine should have comment or be unexported (golint)
    • Line 42: warning: exported function Concat should have comment or be unexported (golint)
    • Line 46: warning: exported type BlockStack should have comment or be unexported (golint)
    • Line 51: warning: exported method BlockStack.Combine should have comment or be unexported (golint)
    • Line 67: warning: exported function TransStack should have comment or be unexported (golint)
    • Line 71: warning: exported function Stack should have comment or be unexported (golint)
    • Line 75: warning: exported type ResidualBlock should have comment or be unexported (golint)
    • Line 79: warning: exported function Residual should have comment or be unexported (golint)
    • Line 83: warning: exported method ResidualBlock.Combine should have comment or be unexported (golint)
    • go-dnn/nn/conv.go
    • Line 8: warning: exported type Convolution should have comment or be unexported (golint)
    • Line 22: warning: exported method Convolution.Combine should have comment or be unexported (golint)
    • Line 53: warning: exported type MaxPool should have comment or be unexported (golint)
    • Line 63: warning: exported method MaxPool.Combine should have comment or be unexported (golint)
    • Line 82: warning: exported type AvgPool should have comment or be unexported (golint)
    • Line 92: warning: exported method AvgPool.Combine should have comment or be unexported (golint)
    • go-dnn/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 17: warning: exported function Gpu should have comment or be unexported (golint)
    • Line 24: warning: exported method Context.DevType should have comment or be unexported (golint)
    • Line 28: warning: exported method Context.DevNo should have comment or be unexported (golint)
    • Line 32: warning: exported method Context.IsGPU should have comment or be unexported (golint)
    • Line 48: warning: exported method Context.RandomSeed should have comment or be unexported (golint)
    • go-dnn/ng/nullstate.go
    • Line 7: warning: exported type NullState should have comment or be unexported (golint)
    • Line 13: warning: exported method NullState.NextEpoch should have comment or be unexported (golint)
    • Line 20: warning: exported method NullState.Setup should have comment or be unexported (golint)
    • Line 31: warning: exported method NullState.Preset should have comment or be unexported (golint)
    • Line 38: warning: exported method NullState.LogBatchLoss should have comment or be unexported (golint)
    • Line 42: warning: exported method NullState.FinishEpoch should have comment or be unexported (golint)
    • go-dnn/tests/arr_test.go
    • Line 10: warning: don't use underscores in Go names; func f_Array1 should be fArray1 (golint)
    • Line 56: warning: don't use underscores in Go names; type array2_ds_t should be array2DsT (golint)
    • Line 61: warning: don't use underscores in Go names; var array2_ds should be array2Ds (golint)
    • Line 103: warning: don't use underscores in Go names; func f_Array2 should be fArray2 (golint)
    • Line 143: warning: don't use underscores in Go names; func f_Random should be fRandom (golint)
    • Line 160: warning: don't use underscores in Go names; func f_Xavier should be fXavier (golint)
    • Line 177: warning: don't use underscores in Go names; func f_Zeros should be fZeros (golint)
    • go-dnn/fu/keys.go
    • Line 8: warning: exported function SortedDictKeys should have comment or be unexported (golint)
    • Line 18: warning: exported function KeysOf should have comment or be unexported (golint)
    • Line 31: warning: exported function MakeSetFrom should have comment or be unexported (golint)
    • go-dnn/mx/mxnet.go
    • Line 6: warning: exported const VersionMajor should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported const Version should have comment or be unexported (golint)
    • Line 13: warning: exported function LibVersion should have comment or be unexported (golint)
    • Line 17: warning: exported function GpuCount should have comment or be unexported (golint)
    • Line 21: warning: exported function RandomSeed should have comment or be unexported (golint)
    • go-dnn/mx/ndarray.go
    • Line 11: warning: exported type NDArray should have comment or be unexported (golint)
    • Line 26: warning: exported method NDArray.Release should have comment or be unexported (golint)
    • Line 30: warning: exported method NDArray.Err should have comment or be unexported (golint)
    • Line 34: warning: exported function Array should have comment or be unexported (golint)
    • Line 38: warning: exported function Errayf should have comment or be unexported (golint)
    • Line 54: warning: exported method Context.Array should have comment or be unexported (golint)
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 75: warning: exported method Context.CopyAs should have comment or be unexported (golint)
    • Line 87: warning: exported method NDArray.NewLikeThis should have comment or be unexported (golint)
    • Line 91: warning: exported method NDArray.Context should have comment or be unexported (golint)
    • Line 95: warning: exported method NDArray.Dtype should have comment or be unexported (golint)
    • Line 99: warning: exported method NDArray.Dim should have comment or be unexported (golint)
    • Line 103: warning: exported method NDArray.Cast should have comment or be unexported (golint)
    • Line 107: warning: exported method NDArray.Reshape should have comment or be unexported (golint)
    • Line 115: warning: exported method NDArray.Depth should have comment or be unexported (golint)
    • Line 119: warning: exported method NDArray.Len should have comment or be unexported (golint)
    • Line 129: warning: exported method NDArray.Size should have comment or be unexported (golint)
    • Line 184: warning: exported method NDArray.SetValues should have comment or be unexported (golint)
    • Line 224: warning: exported method NDArray.Raw should have comment or be unexported (golint)
    • Line 231: warning: exported method NDArray.Values should have comment or be unexported (golint)
    • Line 249: warning: exported method NDArray.ValuesF32 should have comment or be unexported (golint)
    • Line 257: warning: exported method NDArray.CopyValuesTo should have comment or be unexported (golint)
    • go-dnn/nn/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)
    • go-dnn/nn/network.go
    • Line 8: warning: exported type Network should have comment or be unexported (golint)
    • Line 14: warning: exported method Network.Release should have comment or be unexported (golint)
    • Line 18: warning: exported function Bind should have comment or be unexported (golint)
    • Line 35: warning: exported method Network.Predict1 should have comment or be unexported (golint)
    • Line 35: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 48: warning: exported method Network.Predict should have comment or be unexported (golint)
    • Line 48: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 61: warning: exported type Metric should have comment or be unexported (golint)
    • Line 68: warning: exported method Network.Test should have comment or be unexported (golint)
    • Line 68: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 82: warning: exported method Network.Train should have comment or be unexported (golint)
    • Line 82: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 100: warning: exported method Network.Update should have comment or be unexported (golint)
    • Line 100: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 112: warning: exported method Network.LoadParamsFile should have comment or be unexported (golint)
    • Line 112: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 120: warning: exported method Network.SaveParamsFile should have comment or be unexported (golint)
    • Line 120: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 128: warning: exported method Network.SetParams should have comment or be unexported (golint)
    • Line 128: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 144: warning: receiver name f should be consistent with previous receiver name n for Network (golint)
    • Line 170: warning: exported method Network.GetParams should have comment or be unexported (golint)
    • Line 170: warning: receiver name net should be consistent with previous receiver name n for Network (golint)
    • go-dnn/mx/capi/capi.go
    • Line 54: warning: exported var GpuCount should have comment or be unexported (golint)
    • Line 55: warning: exported var LibVersion should have comment or be unexported (golint)
    • Line 59: warning: exported type NDArrayHandle should have comment or be unexported (golint)
    • Line 60: warning: exported type SymbolHandle should have comment or be unexported (golint)
    • Line 61: warning: exported type ExecutorHandle should have comment or be unexported (golint)
    • Line 63: warning: exported function ReleaseNDArry should have comment or be unexported (golint)
    • Line 69: warning: exported function ReleaseSymbol should have comment or be unexported (golint)
    • Line 75: warning: exported function ReleaseExecutor should have comment or be unexported (golint)
    • Line 145: warning: exported function ImperativeInvokeInplace1 should have comment or be unexported (golint)
    • Line 164: warning: exported function ImperativeInvokeInOut1 should have comment or be unexported (golint)
    • Line 185: warning: exported function NewNDArrayHandle should have comment or be unexported (golint)
    • Line 194: warning: exported function GetNDArrayRawData should have comment or be unexported (golint)
    • Line 203: warning: exported function SetNDArrayRawData should have comment or be unexported (golint)
    • Line 211: warning: exported function CreateVariable should have comment or be unexported (golint)
    • Line 219: warning: exported function NewSymbol should have comment or be unexported (golint)
    • Line 250: warning: exported function ComposeSymbol should have comment or be unexported (golint)
    • Line 259: warning: exported const ArgumentsNames should have comment or be unexported (golint)
    • Line 260: warning: exported const OutoutNames should have comment or be unexported (golint)
    • Line 261: warning: exported const AuxNames should have comment or be unexported (golint)
    • Line 263: warning: exported function ListNames should have comment or be unexported (golint)
    • Line 267: warning: don't use underscores in Go names; var out_nn should be outNn (golint)
    • Line 268: warning: don't use underscores in Go names; var out_ns should be outNs (golint)
    • Line 294: warning: don't use underscores in Go names; var name_at should be nameAt (golint)
    • Line 307: warning: exported const WithArguments should have comment or be unexported (golint)
    • Line 308: warning: exported const WithOutputs should have comment or be unexported (golint)
    • Line 309: warning: exported const WithAuxStates should have comment or be unexported (golint)
    • Line 310: warning: exported const WithoutOutput should have comment or be unexported (golint)
    • Line 312: warning: exported function InferShapes should have comment or be unexported (golint)
    • Line 322: warning: don't use underscores in Go names; var in_ss should be inSs (golint)
    • Line 322: warning: don't use underscores in Go names; var out_ss should be outSs (golint)
    • Line 322: warning: don't use underscores in Go names; var aux_ss should be auxSs (golint)
    • Line 323: warning: don't use underscores in Go names; var in_sn should be inSn (golint)
    • Line 323: warning: don't use underscores in Go names; var out_sn should be outSn (golint)
    • Line 323: warning: don't use underscores in Go names; var aux_sn should be auxSn (golint)
    • Line 324: warning: don't use underscores in Go names; var in_sd should be inSd (golint)
    • Line 324: warning: don't use underscores in Go names; var out_sd should be outSd (golint)
    • Line 324: warning: don't use underscores in Go names; var aux_sd should be auxSd (golint)
    • Line 358: warning: don't use underscores in Go names; var shape_at should be shapeAt (golint)
    • Line 415: warning: exported function GroupSymbols should have comment or be unexported (golint)
    • Line 424: warning: exported function GetInternals should have comment or be unexported (golint)
    • Line 432: warning: exported function Bind should have comment or be unexported (golint)
    • Line 466: warning: exported type NDArrayInfo should have comment or be unexported (golint)
    • Line 472: warning: exported function FillInfo should have comment or be unexported (golint)
    • Line 492: warning: exported function GetOutputs should have comment or be unexported (golint)
    • Line 511: warning: exported function Forward should have comment or be unexported (golint)
    • Line 522: warning: exported function Backward should have comment or be unexported (golint)
    • Line 529: warning: exported function OptimizerUpdate should have comment or be unexported (golint)
    • Line 543: warning: exported function ToJson should have comment or be unexported (golint)
    • Line 554: warning: exported function RandomSeed should have comment or be unexported (golint)
    • Line 561: warning: exported function ContextRandomSeed should have comment or be unexported (golint)
    • go-dnn/ng/dataset.go
    • Line 3: warning: exported type Dataset should have comment or be unexported (golint)
    • Line 7: warning: exported type Batchs should have comment or be unexported (golint)
    • go-dnn/fu/agg.go
    • Line 5: warning: exported function Sum should have comment or be unexported (golint)
    • Line 13: warning: exported function Avg should have comment or be unexported (golint)
    • Line 21: warning: exported function Min should have comment or be unexported (golint)
    • Line 31: warning: exported function Max should have comment or be unexported (golint)
    • Line 41: warning: exported function AbsMax should have comment or be unexported (golint)
    • Line 54: warning: exported function MinI should have comment or be unexported (golint)
    • Line 64: warning: exported function SubMul should have comment or be unexported (golint)
    • Line 72: warning: exported function AddMul should have comment or be unexported (golint)
    • Line 80: warning: exported function FindMin should have comment or be unexported (golint)
    • Line 92: warning: exported function FindMax should have comment or be unexported (golint)
    • Line 104: warning: exported function IfElse should have comment or be unexported (golint)
    • go-dnn/fu/cachedir.go
    • Line 21: warning: exported function CacheDir should have comment or be unexported (golint)
    • Line 27: warning: exported function CacheFile should have comment or be unexported (golint)
    • go-dnn/nn/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)
    • go-dnn/mx/dimension.go
    • Line 8: warning: exported const DimRow should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported const MaxDimensionCount should be of the form "MaxDimensionCount ..." (golint)
    • Line 18: warning: comment on exported type Dimension should be of the form "Dimension ..." (with optional leading article) (golint)
    • Line 24: warning: exported method Dimension.Skip should have comment or be unexported (golint)
    • Line 33: warning: exported method Dimension.Push should have comment or be unexported (golint)
    • Line 47: warning: comment on exported method Dimension.Good should be of the form "Good ..." (golint)
    • Line 60: warning: comment on exported method Dimension.SizeOf should be of the form "SizeOf ..." (golint)
    • Line 65: warning: comment on exported method Dimension.Total should be of the form "Total ..." (golint)
    • Line 74: warning: comment on exported function Dim should be of the form "Dim ..." (golint)
    • go-dnn/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)
    • go-dnn/mx/summary.go
    • Line 17: warning: exported method Graph.Identity should have comment or be unexported (golint)
    • Line 32: warning: exported method Graph.ToJson should have comment or be unexported (golint)
    • Line 40: warning: exported type GraphJs should have comment or be unexported (golint)
    • Line 49: warning: exported type SummryArg should have comment or be unexported (golint)
    • Line 54: warning: exported type SummaryRow should have comment or be unexported (golint)
    • Line 63: warning: exported type Summary should have comment or be unexported (golint)
    • Line 65: warning: exported method Graph.Summary should have comment or be unexported (golint)
    • Line 136: warning: exported method Graph.SummaryOut should have comment or be unexported (golint)
    • Line 176: warning: exported method Graph.LogSummary should have comment or be unexported (golint)
    • Line 180: warning: exported method Graph.PrintSummary should have comment or be unexported (golint)
    • go-dnn/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 79: warning: exported method MxnetKey.Value should have comment or be unexported (golint)
    • Line 89: warning: exported type MxnetOp should have comment or be unexported (golint)
    • Line 92: warning: exported const OpEmpty should have comment (or a comment on this block) or be unexported (golint)
    • Line 191: warning: exported method MxnetOp.Value should have comment or be unexported (golint)
    • go-dnn/nn/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)
    • go-dnn/data/mnist/mnist.go
    • Line 107: warning: exported type Dataset should have comment or be unexported (golint)
    • Line 109: warning: exported method Dataset.Open should have comment or be unexported (golint)
    • Line 129: warning: exported type Batchs should have comment or be unexported (golint)
    • Line 140: warning: exported method Batchs.Randomize should have comment or be unexported (golint)
    • Line 144: warning: exported method Batchs.Load should have comment or be unexported (golint)
    • Line 178: warning: exported method Batchs.Next should have comment or be unexported (golint)
    • Line 200: warning: exported method Batchs.Data should have comment or be unexported (golint)
    • Line 204: warning: exported method Batchs.Label should have comment or be unexported (golint)
    • Line 208: warning: exported method Batchs.Close should have comment or be unexported (golint)
    • Line 212: warning: exported method Batchs.Reset should have comment or be unexported (golint)
    • go-dnn/mx/filler.go
    • Line 8: warning: exported method NDArray.Uniform should have comment or be unexported (golint)
    • Line 18: warning: exported method NDArray.Normal should have comment or be unexported (golint)
    • Line 28: warning: exported method NDArray.Zeros should have comment or be unexported (golint)
    • Line 36: warning: exported method NDArray.Ones should have comment or be unexported (golint)
    • Line 40: warning: exported method NDArray.Fill should have comment or be unexported (golint)
    • Line 55: warning: exported method NDArray.Xavier should have comment or be unexported (golint)
    • Line 76: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-dnn/mx/graph.go
    • Line 12: warning: exported type GraphIdentity should have comment or be unexported (golint)
    • Line 14: warning: exported type Loss should have comment or be unexported (golint)
    • Line 20: warning: exported type Param should have comment or be unexported (golint)
    • Line 26: warning: exported type Graph should have comment or be unexported (golint)
    • Line 62: warning: exported method Graph.Release should have comment or be unexported (golint)
    • Line 90: warning: exported method Graph.LoadParams should have comment or be unexported (golint)
    • Line 94: warning: exported method Graph.SaveParams should have comment or be unexported (golint)
    • Line 119: warning: exported method Graph.GetShapes should have comment or be unexported (golint)
    • Line 244: warning: exported function Compose should have comment or be unexported (golint)
    • Line 391: warning: exported method Graph.Initialize should have comment or be unexported (golint)
    • Line 419: warning: exported method Graph.Forward should have comment or be unexported (golint)
    • Line 429: warning: exported method Graph.Backward should have comment or be unexported (golint)
    • go-dnn/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 17: warning: exported type Inite should have comment or be unexported (golint)
    • Line 23: warning: exported function NextSymbolId should have comment or be unexported (golint)
    • Line 28: warning: exported function ResetSymbolId should have comment or be unexported (golint)
    • Line 32: warning: exported type Symbol should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; type _hidden_input_ should be _hiddenInput (golint)
    • Line 43: warning: exported function Input should have comment or be unexported (golint)
    • Line 45: warning: don't use underscores in Go names; type _hidden_nograd_ should be _hiddenNograd (golint)
    • Line 47: warning: exported function Nograd should have comment or be unexported (golint)
    • Line 49: warning: exported method Symbol.SetName should have comment or be unexported (golint)
    • Line 54: warning: exported function SymbolCast should have comment or be unexported (golint)
    • Line 72: warning: exported function GenericOp2 should have comment or be unexported (golint)
    • Line 101: warning: exported function Add should have comment or be unexported (golint)
    • Line 105: warning: exported function Sub should have comment or be unexported (golint)
    • Line 109: warning: exported function Mul should have comment or be unexported (golint)
    • Line 113: warning: exported function Div should have comment or be unexported (golint)
    • Line 117: warning: exported function Dot should have comment or be unexported (golint)
    • Line 121: warning: exported function Log should have comment or be unexported (golint)
    • Line 125: warning: exported function Cosh should have comment or be unexported (golint)
    • Line 129: warning: exported function LogCosh should have comment or be unexported (golint)
    • Line 133: warning: exported function Not should have comment or be unexported (golint)
    • Line 137: warning: exported function Var should have comment or be unexported (golint)
    • Line 153: warning: exported function Group should have comment or be unexported (golint)
    • Line 157: warning: exported function MakeLoss should have comment or be unexported (golint)
    • Line 161: warning: exported function BlockGrad should have comment or be unexported (golint)
    • Line 165: warning: exported function Pow should have comment or be unexported (golint)
    • Line 169: warning: exported function Abs should have comment or be unexported (golint)
    • Line 173: warning: exported function Square should have comment or be unexported (golint)
    • Line 177: warning: exported function Minus should have comment or be unexported (golint)
    • Line 182: warning: exported function Pick should have comment or be unexported (golint)
    • Line 187: warning: exported function LogSoftmax should have comment or be unexported (golint)
    • Line 195: warning: exported function SoftmaxOutput should have comment or be unexported (golint)
    • Line 203: warning: exported function Softmax should have comment or be unexported (golint)
    • Line 211: warning: exported function SoftmaxActivation should have comment or be unexported (golint)
    • Line 219: warning: exported function SoftmaxCrossEntropy should have comment or be unexported (golint)
    • Line 257: warning: exported function Sum should have comment or be unexported (golint)
    • Line 267: warning: exported function SumXl should have comment or be unexported (golint)
    • Line 278: warning: exported function Mean should have comment or be unexported (golint)
    • Line 288: warning: exported function MeanXl should have comment or be unexported (golint)
    • Line 299: warning: exported function Stack should have comment or be unexported (golint)
    • Line 307: warning: exported function Stack1 should have comment or be unexported (golint)
    • Line 316: warning: exported function BatchNorm should have comment or be unexported (golint)
    • Line 331: warning: exported function Concat should have comment or be unexported (golint)
    • Line 336: warning: exported function Conv should have comment or be unexported (golint)
    • Line 367: warning: exported type ActivationType should have comment or be unexported (golint)
    • Line 370: warning: exported const ReLU should have comment (or a comment on this block) or be unexported (golint)
    • Line 377: warning: exported function Activation should have comment or be unexported (golint)
    • Line 396: warning: exported function Pool should have comment or be unexported (golint)
    • Line 432: warning: exported function FullyConnected should have comment or be unexported (golint)
    • Line 445: warning: exported function Flatten should have comment or be unexported (golint)
    • Line 449: warning: exported function Sigmoid should have comment or be unexported (golint)
    • Line 453: warning: exported function Tanh should have comment or be unexported (golint)
    • Line 457: warning: exported function Sin should have comment or be unexported (golint)
    • go-dnn/mx/version.go
    • Line 7: warning: exported type VersionType should have comment or be unexported (golint)
    • Line 13: warning: exported method VersionType.Major should have comment or be unexported (golint)
    • Line 17: warning: exported method VersionType.Minor should have comment or be unexported (golint)
    • Line 21: warning: exported method VersionType.Patch should have comment or be unexported (golint)
    • Line 25: warning: exported function MakeVersion should have comment or be unexported (golint)
    • go-dnn/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 52: warning: exported function Fillargs should have comment or be unexported (golint)
    • go-dnn/ng/metric.go
    • Line 8: warning: exported type Classification should have comment or be unexported (golint)
    • Line 14: warning: exported method Classification.Collect should have comment or be unexported (golint)
    • Line 35: warning: exported method Classification.Reset should have comment or be unexported (golint)
    • Line 40: warning: exported method Classification.Value should have comment or be unexported (golint)
    • Line 44: warning: exported method Classification.Satisfy should have comment or be unexported (golint)
    • Line 48: warning: exported type Erfc should have comment or be unexported (golint)
    • Line 55: warning: exported method Erfc.Collect should have comment or be unexported (golint)
    • Line 64: warning: exported method Erfc.Reset should have comment or be unexported (golint)
    • Line 69: warning: exported method Erfc.Value should have comment or be unexported (golint)
    • Line 73: warning: exported method Erfc.Satisfy should have comment or be unexported (golint)
    • go-dnn/fu/ctrlc.go
    • Line 9: warning: exported function WaitForCtrlC should have comment or be unexported (golint)
    • Line 10: warning: don't use underscores in Go names; var signal_channel should be signalChannel (golint)
    • go-dnn/fu/round.go
    • Line 5: warning: exported function Round1 should have comment or be unexported (golint)
    • Line 10: warning: exported function Floor1 should have comment or be unexported (golint)
    • Line 15: warning: exported function Round should have comment or be unexported (golint)
    • Line 23: warning: exported function Floor should have comment or be unexported (golint)
    • go-dnn/nn/adam.go
    • Line 8: warning: exported type Adam should have comment or be unexported (golint)
    • Line 25: warning: exported method Adam.Init should have comment or be unexported (golint)
    • go-dnn/ng/gym.go
    • Line 11: warning: exported type Verbosity should have comment or be unexported (golint)
    • Line 14: warning: exported const Silent should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Gym should have comment or be unexported (golint)
    • Line 32: warning: exported const StopTraining should have comment or be unexported (golint)
    • Line 34: warning: exported type State should have comment or be unexported (golint)
    • go-dnn/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)
    • go-dnn/nn/activation.go
    • Line 8: warning: exported function Sigmoid should have comment or be unexported (golint)
    • Line 12: warning: exported function Tanh should have comment or be unexported (golint)
    • Line 16: warning: exported function Tanh25 should have comment or be unexported (golint)
    • Line 20: warning: exported function ReLU should have comment or be unexported (golint)
    • Line 24: warning: exported function SoftReLU should have comment or be unexported (golint)
    • Line 28: warning: exported function SoftSign should have comment or be unexported (golint)
    • Line 32: warning: exported function Softmax should have comment or be unexported (golint)
    • Line 36: warning: exported function ChannelSoftmax should have comment or be unexported (golint)
    • Line 40: warning: exported function Swish should have comment or be unexported (golint)
    • Line 44: warning: exported function Sin should have comment or be unexported (golint)
    • Line 48: warning: exported type Activation should have comment or be unexported (golint)
    • Line 54: warning: exported method Activation.Combine should have comment or be unexported (golint)
    • Line 75: warning: exported type BatchNorm should have comment or be unexported (golint)
    • Line 80: warning: exported method BatchNorm.Combine should have comment or be unexported (golint)
    • Line 90: warning: don't use underscores in Go names; var running_mean should be runningMean (golint)
    • Line 91: warning: don't use underscores in Go names; var running_var should be runningVar (golint)
    • go-dnn/nn/loss.go
    • Line 5: warning: exported type L0Loss should have comment or be unexported (golint)
    • Line 7: warning: exported method L0Loss.Loss should have comment or be unexported (golint)
    • Line 11: warning: exported type L1Loss should have comment or be unexported (golint)
    • Line 13: warning: exported method L1Loss.Loss should have comment or be unexported (golint)
    • Line 17: warning: exported type L2Loss should have comment or be unexported (golint)
    • Line 19: warning: exported method L2Loss.Loss should have comment or be unexported (golint)
    • Line 23: warning: exported type SoftmaxCrossEntropyLoss should have comment or be unexported (golint)
    • Line 25: warning: exported method SoftmaxCrossEntropyLoss.Loss should have comment or be unexported (golint)
    • Line 29: warning: exported type LabelCrossEntropyLoss should have comment or be unexported (golint)
    • Line 33: warning: exported method LabelCrossEntropyLoss.Loss should have comment or be unexported (golint)
    • go-dnn/nn/params.go
    • Line 10: warning: exported type Params should have comment or be unexported (golint)
    • Line 14: warning: exported function LoadParams should have comment or be unexported (golint)
    • Line 39: warning: exported method Params.Save should have comment or be unexported (golint)
    • go-dnn/nn/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)
    • go-dnn/ng/avgloss.go
    • Line 3: warning: exported type AvgLoss should have comment or be unexported (golint)
    • Line 10: warning: exported method AvgLoss.Reset should have comment or be unexported (golint)
    • Line 18: warning: exported method AvgLoss.Value should have comment or be unexported (golint)
    • Line 22: warning: exported method AvgLoss.Last should have comment or be unexported (golint)
    • Line 39: warning: exported method AvgLoss.Add should have comment or be unexported (golint)
    • go-dnn/nn/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 25: warning: exported method FullyConnected.Combine should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!