Preparing report...

Report for github.com/chewxy/gorgonia

A+    Excellent!    Found 74 issues across 259 files

Tweet

gofmt98%

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!


golint92%

Golint is a linter for Go source code.

    • gorgonia/values_primitives.go
    • Line 42: warning: exported function NewF64 should have comment or be unexported (golint)
    • Line 43: warning: exported function NewF32 should have comment or be unexported (golint)
    • Line 44: warning: exported function NewI should have comment or be unexported (golint)
    • Line 45: warning: exported function NewI64 should have comment or be unexported (golint)
    • Line 46: warning: exported function NewI32 should have comment or be unexported (golint)
    • Line 47: warning: exported function NewU8 should have comment or be unexported (golint)
    • Line 48: warning: exported function NewB should have comment or be unexported (golint)
    • gorgonia/ops/nn/api_nocuda.go
    • Line 10: warning: exported function Conv2d should have comment or be unexported (golint)
    • Line 14: warning: exported function Conv1d should have comment or be unexported (golint)
    • Line 18: warning: exported function MaxPool2D should have comment or be unexported (golint)
    • Line 22: warning: exported function Dropout should have comment or be unexported (golint)
    • Line 26: warning: exported function Rectify should have comment or be unexported (golint)
    • Line 30: warning: exported function BatchNorm should have comment or be unexported (golint)
    • gorgonia/cuda/engine.go
    • Line 93: warning: exported method Engine.Memset should have comment or be unexported (golint)
    • Line 97: warning: exported method Engine.Memclr should have comment or be unexported (golint)
    • Line 130: warning: exported method Engine.Accessible should have comment or be unexported (golint)
    • Line 143: warning: comment on exported method Engine.HasNaN should be of the form "HasNaN ..." (golint)
    • Line 168: warning: comment on exported method Engine.HasInf should be of the form "HasInf ..." (golint)
    • gorgonia/examples/stacked_autoencoder/neuron.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 12: warning: exported type Neuron should have comment or be unexported (golint)
    • Line 21: warning: exported function MakeNeuron should have comment or be unexported (golint)
    • Line 39: warning: exported method Neuron.GobEncode should have comment or be unexported (golint)
    • Line 77: warning: exported method Neuron.GobDecode should have comment or be unexported (golint)
    • gorgonia/node.go
    • Line 311: warning: exported method Node.DataSize should have comment or be unexported (golint)
    • Line 313: warning: exported method Node.DerivOf should have comment or be unexported (golint)
    • Line 315: warning: exported method Node.Deriv should have comment or be unexported (golint)
    • gorgonia/op_yolo.go
    • Line 294: warning: don't use underscores in Go names; method evaluateYOLO_f32 should be evaluateYOLOF32 (golint)
    • Line 400: warning: don't use underscores in Go names; func iou_f32 should be iouF32 (golint)
    • Line 408: warning: don't use underscores in Go names; func getBestIOU_f32 should be getBestIOUF32 (golint)
    • Line 426: warning: don't use underscores in Go names; func getBestAnchors_f32 should be getBestAnchorsF32 (golint)
    • Line 450: warning: don't use underscores in Go names; func prepareOutputYOLO_f32 should be prepareOutputYOLOF32 (golint)
    • Line 496: warning: don't use underscores in Go names; func rectifyBox_f32 should be rectifyBoxF32 (golint)
    • Line 515: warning: don't use underscores in Go names; method evaluateYOLO_f64 should be evaluateYOLOF64 (golint)
    • Line 615: warning: don't use underscores in Go names; func iou_f64 should be iouF64 (golint)
    • Line 623: warning: don't use underscores in Go names; func getBestIOU_f64 should be getBestIOUF64 (golint)
    • Line 641: warning: don't use underscores in Go names; func getBestAnchors_f64 should be getBestAnchorsF64 (golint)
    • Line 665: warning: don't use underscores in Go names; func prepareOutputYOLO_f64 should be prepareOutputYOLOF64 (golint)
    • Line 702: warning: don't use underscores in Go names; func rectifyBox_f64 should be rectifyBoxF64 (golint)
    • gorgonia/examples/stacked_autoencoder/denoisingautoencoder.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type DenoisingAutoencoder should have comment or be unexported (golint)
    • Line 24: warning: exported function NewDATiedWeights should have comment or be unexported (golint)
    • Line 48: warning: exported method DenoisingAutoencoder.Activate should have comment or be unexported (golint)
    • Line 68: warning: exported method DenoisingAutoencoder.Reconstruct should have comment or be unexported (golint)
    • Line 88: warning: exported method DenoisingAutoencoder.Corrupt should have comment or be unexported (golint)
    • Line 99: warning: exported method DenoisingAutoencoder.Cost should have comment or be unexported (golint)
    • gorgonia/examples/stacked_autoencoder/layer.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type ActivationFunction should have comment or be unexported (golint)
    • Line 11: warning: exported type Layer should have comment or be unexported (golint)
    • Line 18: warning: exported function WithConf should have comment or be unexported (golint)
    • Line 34: warning: exported function WithActivationFunction should have comment or be unexported (golint)
    • Line 49: warning: exported function WithGraph should have comment or be unexported (golint)
    • Line 63: warning: exported type FC should have comment or be unexported (golint)
    • Line 75: warning: exported function NewFC should have comment or be unexported (golint)
    • Line 89: warning: exported method FC.Activate should have comment or be unexported (golint)
    • Line 107: warning: exported type SoftmaxLayer should have comment or be unexported (golint)
    • Line 117: warning: exported function NewSoftmaxLayer should have comment or be unexported (golint)
    • Line 131: warning: exported method SoftmaxLayer.Activate should have comment or be unexported (golint)
    • gorgonia/weights.go
    • Line 159: warning: exported function HeN should have comment or be unexported (golint)
    • Line 172: warning: exported function HeU should have comment or be unexported (golint)
    • gorgonia/blase/fn.go
    • Line 47: warning: don't use underscores in Go names; const fn_undefined should be fnUndefined (golint)
    • Line 49: warning: don't use underscores in Go names; const fn_cblas_cdotu_sub should be fnCblasCdotuSub (golint)
    • Line 50: warning: don't use underscores in Go names; const fn_cblas_cdotc_sub should be fnCblasCdotcSub (golint)
    • Line 51: warning: don't use underscores in Go names; const fn_cblas_zdotu_sub should be fnCblasZdotuSub (golint)
    • Line 52: warning: don't use underscores in Go names; const fn_cblas_zdotc_sub should be fnCblasZdotcSub (golint)
    • Line 53: warning: don't use underscores in Go names; const fn_cblas_sswap should be fnCblasSswap (golint)
    • Line 54: warning: don't use underscores in Go names; const fn_cblas_scopy should be fnCblasScopy (golint)
    • Line 55: warning: don't use underscores in Go names; const fn_cblas_saxpy should be fnCblasSaxpy (golint)
    • Line 56: warning: don't use underscores in Go names; const fn_catlas_saxpby should be fnCatlasSaxpby (golint)
    • Line 57: warning: don't use underscores in Go names; const fn_cblas_dswap should be fnCblasDswap (golint)
    • Line 58: warning: don't use underscores in Go names; const fn_cblas_dcopy should be fnCblasDcopy (golint)
    • Line 59: warning: don't use underscores in Go names; const fn_cblas_daxpy should be fnCblasDaxpy (golint)
    • Line 60: warning: don't use underscores in Go names; const fn_catlas_daxpby should be fnCatlasDaxpby (golint)
    • Line 61: warning: don't use underscores in Go names; const fn_cblas_cswap should be fnCblasCswap (golint)
    • Line 62: warning: don't use underscores in Go names; const fn_cblas_ccopy should be fnCblasCcopy (golint)
    • Line 63: warning: don't use underscores in Go names; const fn_cblas_caxpy should be fnCblasCaxpy (golint)
    • Line 64: warning: don't use underscores in Go names; const fn_catlas_caxpby should be fnCatlasCaxpby (golint)
    • Line 65: warning: don't use underscores in Go names; const fn_cblas_zswap should be fnCblasZswap (golint)
    • Line 66: warning: don't use underscores in Go names; const fn_cblas_zcopy should be fnCblasZcopy (golint)
    • Line 67: warning: don't use underscores in Go names; const fn_cblas_zaxpy should be fnCblasZaxpy (golint)
    • Line 68: warning: don't use underscores in Go names; const fn_catlas_zaxpby should be fnCatlasZaxpby (golint)
    • Line 69: warning: don't use underscores in Go names; const fn_cblas_srotg should be fnCblasSrotg (golint)
    • Line 70: warning: don't use underscores in Go names; const fn_cblas_srotmg should be fnCblasSrotmg (golint)
    • Line 71: warning: don't use underscores in Go names; const fn_cblas_srot should be fnCblasSrot (golint)
    • Line 72: warning: don't use underscores in Go names; const fn_cblas_srotm should be fnCblasSrotm (golint)
    • Line 73: warning: don't use underscores in Go names; const fn_cblas_drotg should be fnCblasDrotg (golint)
    • Line 74: warning: don't use underscores in Go names; const fn_cblas_drotmg should be fnCblasDrotmg (golint)
    • Line 75: warning: don't use underscores in Go names; const fn_cblas_drot should be fnCblasDrot (golint)
    • Line 76: warning: don't use underscores in Go names; const fn_cblas_drotm should be fnCblasDrotm (golint)
    • Line 77: warning: don't use underscores in Go names; const fn_cblas_sscal should be fnCblasSscal (golint)
    • Line 78: warning: don't use underscores in Go names; const fn_cblas_dscal should be fnCblasDscal (golint)
    • Line 79: warning: don't use underscores in Go names; const fn_cblas_cscal should be fnCblasCscal (golint)
    • Line 80: warning: don't use underscores in Go names; const fn_cblas_zscal should be fnCblasZscal (golint)
    • Line 81: warning: don't use underscores in Go names; const fn_cblas_csscal should be fnCblasCsscal (golint)
    • Line 82: warning: don't use underscores in Go names; const fn_cblas_zdscal should be fnCblasZdscal (golint)
    • Line 83: warning: don't use underscores in Go names; const fn_cblas_crotg should be fnCblasCrotg (golint)
    • Line 84: warning: don't use underscores in Go names; const fn_cblas_zrotg should be fnCblasZrotg (golint)
    • Line 85: warning: don't use underscores in Go names; const fn_cblas_csrot should be fnCblasCsrot (golint)
    • Line 86: warning: don't use underscores in Go names; const fn_cblas_zdrot should be fnCblasZdrot (golint)
    • Line 87: warning: don't use underscores in Go names; const fn_cblas_sgemv should be fnCblasSgemv (golint)
    • Line 88: warning: don't use underscores in Go names; const fn_cblas_sgbmv should be fnCblasSgbmv (golint)
    • Line 89: warning: don't use underscores in Go names; const fn_cblas_strmv should be fnCblasStrmv (golint)
    • Line 90: warning: don't use underscores in Go names; const fn_cblas_stbmv should be fnCblasStbmv (golint)
    • Line 91: warning: don't use underscores in Go names; const fn_cblas_stpmv should be fnCblasStpmv (golint)
    • Line 92: warning: don't use underscores in Go names; const fn_cblas_strsv should be fnCblasStrsv (golint)
    • Line 93: warning: don't use underscores in Go names; const fn_cblas_stbsv should be fnCblasStbsv (golint)
    • Line 94: warning: don't use underscores in Go names; const fn_cblas_stpsv should be fnCblasStpsv (golint)
    • Line 95: warning: don't use underscores in Go names; const fn_cblas_dgemv should be fnCblasDgemv (golint)
    • Line 96: warning: don't use underscores in Go names; const fn_cblas_dgbmv should be fnCblasDgbmv (golint)
    • Line 97: warning: don't use underscores in Go names; const fn_cblas_dtrmv should be fnCblasDtrmv (golint)
    • Line 98: warning: don't use underscores in Go names; const fn_cblas_dtbmv should be fnCblasDtbmv (golint)
    • Line 99: warning: don't use underscores in Go names; const fn_cblas_dtpmv should be fnCblasDtpmv (golint)
    • Line 100: warning: don't use underscores in Go names; const fn_cblas_dtrsv should be fnCblasDtrsv (golint)
    • Line 101: warning: don't use underscores in Go names; const fn_cblas_dtbsv should be fnCblasDtbsv (golint)
    • Line 102: warning: don't use underscores in Go names; const fn_cblas_dtpsv should be fnCblasDtpsv (golint)
    • Line 103: warning: don't use underscores in Go names; const fn_cblas_cgemv should be fnCblasCgemv (golint)
    • Line 104: warning: don't use underscores in Go names; const fn_cblas_cgbmv should be fnCblasCgbmv (golint)
    • Line 105: warning: don't use underscores in Go names; const fn_cblas_ctrmv should be fnCblasCtrmv (golint)
    • Line 106: warning: don't use underscores in Go names; const fn_cblas_ctbmv should be fnCblasCtbmv (golint)
    • Line 107: warning: don't use underscores in Go names; const fn_cblas_ctpmv should be fnCblasCtpmv (golint)
    • Line 108: warning: don't use underscores in Go names; const fn_cblas_ctrsv should be fnCblasCtrsv (golint)
    • Line 109: warning: don't use underscores in Go names; const fn_cblas_ctbsv should be fnCblasCtbsv (golint)
    • Line 110: warning: don't use underscores in Go names; const fn_cblas_ctpsv should be fnCblasCtpsv (golint)
    • Line 111: warning: don't use underscores in Go names; const fn_cblas_zgemv should be fnCblasZgemv (golint)
    • Line 112: warning: don't use underscores in Go names; const fn_cblas_zgbmv should be fnCblasZgbmv (golint)
    • Line 113: warning: don't use underscores in Go names; const fn_cblas_ztrmv should be fnCblasZtrmv (golint)
    • Line 114: warning: don't use underscores in Go names; const fn_cblas_ztbmv should be fnCblasZtbmv (golint)
    • Line 115: warning: don't use underscores in Go names; const fn_cblas_ztpmv should be fnCblasZtpmv (golint)
    • Line 116: warning: don't use underscores in Go names; const fn_cblas_ztrsv should be fnCblasZtrsv (golint)
    • Line 117: warning: don't use underscores in Go names; const fn_cblas_ztbsv should be fnCblasZtbsv (golint)
    • Line 118: warning: don't use underscores in Go names; const fn_cblas_ztpsv should be fnCblasZtpsv (golint)
    • Line 119: warning: don't use underscores in Go names; const fn_cblas_ssymv should be fnCblasSsymv (golint)
    • Line 120: warning: don't use underscores in Go names; const fn_cblas_ssbmv should be fnCblasSsbmv (golint)
    • Line 121: warning: don't use underscores in Go names; const fn_cblas_sspmv should be fnCblasSspmv (golint)
    • Line 122: warning: don't use underscores in Go names; const fn_cblas_sger should be fnCblasSger (golint)
    • Line 123: warning: don't use underscores in Go names; const fn_cblas_ssyr should be fnCblasSsyr (golint)
    • Line 124: warning: don't use underscores in Go names; const fn_cblas_sspr should be fnCblasSspr (golint)
    • Line 125: warning: don't use underscores in Go names; const fn_cblas_ssyr2 should be fnCblasSsyr2 (golint)
    • Line 126: warning: don't use underscores in Go names; const fn_cblas_sspr2 should be fnCblasSspr2 (golint)
    • Line 127: warning: don't use underscores in Go names; const fn_cblas_dsymv should be fnCblasDsymv (golint)
    • Line 128: warning: don't use underscores in Go names; const fn_cblas_dsbmv should be fnCblasDsbmv (golint)
    • Line 129: warning: don't use underscores in Go names; const fn_cblas_dspmv should be fnCblasDspmv (golint)
    • Line 130: warning: don't use underscores in Go names; const fn_cblas_dger should be fnCblasDger (golint)
    • Line 131: warning: don't use underscores in Go names; const fn_cblas_dsyr should be fnCblasDsyr (golint)
    • Line 132: warning: don't use underscores in Go names; const fn_cblas_dspr should be fnCblasDspr (golint)
    • Line 133: warning: don't use underscores in Go names; const fn_cblas_dsyr2 should be fnCblasDsyr2 (golint)
    • Line 134: warning: don't use underscores in Go names; const fn_cblas_dspr2 should be fnCblasDspr2 (golint)
    • Line 135: warning: don't use underscores in Go names; const fn_cblas_chemv should be fnCblasChemv (golint)
    • Line 136: warning: don't use underscores in Go names; const fn_cblas_chbmv should be fnCblasChbmv (golint)
    • Line 137: warning: don't use underscores in Go names; const fn_cblas_chpmv should be fnCblasChpmv (golint)
    • Line 138: warning: don't use underscores in Go names; const fn_cblas_cgeru should be fnCblasCgeru (golint)
    • Line 139: warning: don't use underscores in Go names; const fn_cblas_cgerc should be fnCblasCgerc (golint)
    • Line 140: warning: don't use underscores in Go names; const fn_cblas_cher should be fnCblasCher (golint)
    • Line 141: warning: don't use underscores in Go names; const fn_cblas_chpr should be fnCblasChpr (golint)
    • Line 142: warning: don't use underscores in Go names; const fn_cblas_cher2 should be fnCblasCher2 (golint)
    • Line 143: warning: don't use underscores in Go names; const fn_cblas_chpr2 should be fnCblasChpr2 (golint)
    • Line 144: warning: don't use underscores in Go names; const fn_cblas_zhemv should be fnCblasZhemv (golint)
    • Line 145: warning: don't use underscores in Go names; const fn_cblas_zhbmv should be fnCblasZhbmv (golint)
    • Line 146: warning: don't use underscores in Go names; const fn_cblas_zhpmv should be fnCblasZhpmv (golint)
    • Line 147: warning: don't use underscores in Go names; const fn_cblas_zgeru should be fnCblasZgeru (golint)
    • Line 148: warning: don't use underscores in Go names; const fn_cblas_zgerc should be fnCblasZgerc (golint)
    • Line 149: warning: don't use underscores in Go names; const fn_cblas_zher should be fnCblasZher (golint)
    • Line 150: warning: don't use underscores in Go names; const fn_cblas_zhpr should be fnCblasZhpr (golint)
    • Line 151: warning: don't use underscores in Go names; const fn_cblas_zher2 should be fnCblasZher2 (golint)
    • Line 152: warning: don't use underscores in Go names; const fn_cblas_zhpr2 should be fnCblasZhpr2 (golint)
    • Line 153: warning: don't use underscores in Go names; const fn_cblas_sgemm should be fnCblasSgemm (golint)
    • Line 154: warning: don't use underscores in Go names; const fn_cblas_ssymm should be fnCblasSsymm (golint)
    • Line 155: warning: don't use underscores in Go names; const fn_cblas_ssyrk should be fnCblasSsyrk (golint)
    • Line 156: warning: don't use underscores in Go names; const fn_cblas_ssyr2k should be fnCblasSsyr2k (golint)
    • Line 157: warning: don't use underscores in Go names; const fn_cblas_strmm should be fnCblasStrmm (golint)
    • Line 158: warning: don't use underscores in Go names; const fn_cblas_strsm should be fnCblasStrsm (golint)
    • Line 159: warning: don't use underscores in Go names; const fn_cblas_dgemm should be fnCblasDgemm (golint)
    • Line 160: warning: don't use underscores in Go names; const fn_cblas_dsymm should be fnCblasDsymm (golint)
    • Line 161: warning: don't use underscores in Go names; const fn_cblas_dsyrk should be fnCblasDsyrk (golint)
    • Line 162: warning: don't use underscores in Go names; const fn_cblas_dsyr2k should be fnCblasDsyr2k (golint)
    • Line 163: warning: don't use underscores in Go names; const fn_cblas_dtrmm should be fnCblasDtrmm (golint)
    • Line 164: warning: don't use underscores in Go names; const fn_cblas_dtrsm should be fnCblasDtrsm (golint)
    • Line 165: warning: don't use underscores in Go names; const fn_cblas_cgemm should be fnCblasCgemm (golint)
    • Line 166: warning: don't use underscores in Go names; const fn_cblas_csymm should be fnCblasCsymm (golint)
    • Line 167: warning: don't use underscores in Go names; const fn_cblas_csyrk should be fnCblasCsyrk (golint)
    • Line 168: warning: don't use underscores in Go names; const fn_cblas_csyr2k should be fnCblasCsyr2k (golint)
    • Line 169: warning: don't use underscores in Go names; const fn_cblas_ctrmm should be fnCblasCtrmm (golint)
    • Line 170: warning: don't use underscores in Go names; const fn_cblas_ctrsm should be fnCblasCtrsm (golint)
    • Line 171: warning: don't use underscores in Go names; const fn_cblas_zgemm should be fnCblasZgemm (golint)
    • Line 172: warning: don't use underscores in Go names; const fn_cblas_zsymm should be fnCblasZsymm (golint)
    • Line 173: warning: don't use underscores in Go names; const fn_cblas_zsyrk should be fnCblasZsyrk (golint)
    • Line 174: warning: don't use underscores in Go names; const fn_cblas_zsyr2k should be fnCblasZsyr2k (golint)
    • Line 175: warning: don't use underscores in Go names; const fn_cblas_ztrmm should be fnCblasZtrmm (golint)
    • Line 176: warning: don't use underscores in Go names; const fn_cblas_ztrsm should be fnCblasZtrsm (golint)
    • Line 177: warning: don't use underscores in Go names; const fn_cblas_chemm should be fnCblasChemm (golint)
    • Line 178: warning: don't use underscores in Go names; const fn_cblas_cherk should be fnCblasCherk (golint)
    • Line 179: warning: don't use underscores in Go names; const fn_cblas_cher2k should be fnCblasCher2k (golint)
    • Line 180: warning: don't use underscores in Go names; const fn_cblas_zhemm should be fnCblasZhemm (golint)
    • Line 181: warning: don't use underscores in Go names; const fn_cblas_zherk should be fnCblasZherk (golint)
    • Line 182: warning: don't use underscores in Go names; const fn_cblas_zher2k should be fnCblasZher2k (golint)
    • gorgonia/examples/mnist/mnist.go
    • Line 1: warning: package comment should be of the form "Package mnist ..." (golint)
    • Line 12: warning: comment on exported type RawImage should be of the form "RawImage ..." (with optional leading article) (golint)
    • gorgonia/examples/charRNN/model.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 21: warning: don't use underscores in Go names; struct field bias_i should be biasI (golint)
    • Line 25: warning: don't use underscores in Go names; struct field bias_f should be biasF (golint)
    • Line 29: warning: don't use underscores in Go names; struct field bias_o should be biasO (golint)
    • Line 33: warning: don't use underscores in Go names; struct field bias_c should be biasC (golint)
    • Line 39: warning: don't use underscores in Go names; struct field bias_i should be biasI (golint)
    • Line 43: warning: don't use underscores in Go names; struct field bias_f should be biasF (golint)
    • Line 47: warning: don't use underscores in Go names; struct field bias_o should be biasO (golint)
    • Line 51: warning: don't use underscores in Go names; struct field bias_c should be biasC (golint)
    • Line 110: warning: don't use underscores in Go names; struct field bias_d should be biasD (golint)
    • Line 129: warning: exported function NewLSTMModel should have comment or be unexported (golint)
    • Line 187: warning: don't use underscores in Go names; struct field bias_d should be biasD (golint)
    • gorgonia/examples/stacked_autoencoder/stackedDA.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 14: warning: exported type StackedDA should have comment or be unexported (golint)
    • Line 25: warning: exported function NewStackedDA should have comment or be unexported (golint)
    • Line 85: warning: exported method StackedDA.Pretrain should have comment or be unexported (golint)
    • Line 164: warning: exported method StackedDA.Finetune should have comment or be unexported (golint)
    • Line 249: warning: exported method StackedDA.Forwards should have comment or be unexported (golint)
    • Line 296: warning: exported method StackedDA.Load should have comment or be unexported (golint)

gocyclo80%

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.

    • gorgonia/operatorPointwise_binary.go
    • Line 40: warning: cyclomatic complexity 101 of function (scalarBinOp).Do() is high (> 15) (gocyclo)
    • Line 662: warning: cyclomatic complexity 31 of function hadamardProdDiff() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 25 of function subDiff() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 19 of function addDiff() is high (> 15) (gocyclo)
    • Line 359: warning: cyclomatic complexity 17 of function (tBinOp).do() is high (> 15) (gocyclo)
    • Line 931: warning: cyclomatic complexity 16 of function hadamardPowDiff() is high (> 15) (gocyclo)
    • gorgonia/stabilization.go
    • Line 29: warning: cyclomatic complexity 17 of function logStabilization() is high (> 15) (gocyclo)
    • Line 204: warning: cyclomatic complexity 16 of function logSoftmaxStabilization() is high (> 15) (gocyclo)
    • gorgonia/x/vm/node_test.go
    • Line 314: warning: cyclomatic complexity 21 of function Test_newOp() is high (> 15) (gocyclo)
    • Line 443: warning: cyclomatic complexity 18 of function compareNodes() is high (> 15) (gocyclo)
    • gorgonia/operations_test.go
    • Line 753: warning: cyclomatic complexity 23 of function TestTensordot() is high (> 15) (gocyclo)
    • Line 624: warning: cyclomatic complexity 21 of function TestSum() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 19 of function TestMul() is high (> 15) (gocyclo)
    • Line 235: warning: cyclomatic complexity 18 of function TestGt() is high (> 15) (gocyclo)
    • Line 483: warning: cyclomatic complexity 17 of function TestSlice() is high (> 15) (gocyclo)
    • gorgonia/op_nn.go
    • Line 77: warning: cyclomatic complexity 20 of function (randomOp).Do() is high (> 15) (gocyclo)
    • Line 1685: warning: cyclomatic complexity 19 of function (*globalAveragePoolOp).Do() is high (> 15) (gocyclo)
    • gorgonia/operatorPointwise_unary_gen.go
    • Line 53: warning: cyclomatic complexity 21 of function (*sf64UnaryOperator).unaryOpType() is high (> 15) (gocyclo)
    • Line 5: warning: cyclomatic complexity 21 of function (*sf32UnaryOperator).unaryOpType() is high (> 15) (gocyclo)
    • gorgonia/vm_genera.go
    • Line 291: warning: cyclomatic complexity 48 of function (*lispMachine).forward() is high (> 15) (gocyclo)
    • Line 560: warning: cyclomatic complexity 16 of function (*lispMachine).watchedLogf() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 16 of function (*lispMachine).RunAll() is high (> 15) (gocyclo)
    • gorgonia/graph.go
    • Line 323: warning: cyclomatic complexity 31 of function (*ExprGraph).ToDot() is high (> 15) (gocyclo)
    • Line 627: warning: cyclomatic complexity 16 of function (*ExprGraph).subgraph() is high (> 15) (gocyclo)
    • gorgonia/operatorLinAlg.go
    • Line 51: warning: cyclomatic complexity 17 of function matMulDiffExpr() is high (> 15) (gocyclo)
    • Line 293: warning: cyclomatic complexity 17 of function batchedMatMulDiffExpr() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 17 of function batchedMatMulDiff() is high (> 15) (gocyclo)
    • Line 104: warning: cyclomatic complexity 17 of function matMulDiff() is high (> 15) (gocyclo)
    • gorgonia/nn_test.go
    • Line 563: warning: cyclomatic complexity 19 of function TestBatchNorm_F32() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 19 of function TestBatchNorm_F64() is high (> 15) (gocyclo)
    • gorgonia/compile.go
    • Line 347: warning: cyclomatic complexity 32 of function (*codegenerator).addNode() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 21 of function (*codegenerator).addInstr() is high (> 15) (gocyclo)
    • Line 503: warning: cyclomatic complexity 16 of function (*codegenerator).insertFree() is high (> 15) (gocyclo)
    • gorgonia/op_yolo.go
    • Line 151: warning: cyclomatic complexity 30 of function (*yoloOp).Do() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 22 of function (*yoloOp).evaluateYOLO_f64() is high (> 15) (gocyclo)
    • Line 294: warning: cyclomatic complexity 22 of function (*yoloOp).evaluateYOLO_f32() is high (> 15) (gocyclo)
    • gorgonia/op_tensor.go
    • Line 262: warning: cyclomatic complexity 19 of function (repeatOp).DoDiff() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 17 of function (repeatOp).UsePreallocDo() is high (> 15) (gocyclo)
    • gorgonia/utils.go
    • Line 154: warning: cyclomatic complexity 16 of function hasInf() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 16 of function hasNaN() is high (> 15) (gocyclo)
    • gorgonia/solvers.go
    • Line 440: warning: cyclomatic complexity 50 of function (*AdamSolver).Step() is high (> 15) (gocyclo)
    • Line 954: warning: cyclomatic complexity 42 of function (*Momentum).Step() is high (> 15) (gocyclo)
    • Line 759: warning: cyclomatic complexity 37 of function (*VanillaSolver).Step() is high (> 15) (gocyclo)
    • Line 1182: warning: cyclomatic complexity 31 of function (*AdaGradSolver).Step() is high (> 15) (gocyclo)
    • Line 1387: warning: cyclomatic complexity 29 of function (*BarzilaiBorweinSolver).Step() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 23 of function (*RMSPropSolver).Step() is high (> 15) (gocyclo)
    • gorgonia/op_math.go
    • Line 897: warning: cyclomatic complexity 29 of function (tensordotOp).DoDiff() is high (> 15) (gocyclo)
    • Line 1078: warning: cyclomatic complexity 29 of function (tensordotOp).SymDiff() is high (> 15) (gocyclo)
    • Line 137: warning: cyclomatic complexity 26 of function (elemBinOp).InferShape() is high (> 15) (gocyclo)
    • Line 525: warning: cyclomatic complexity 21 of function (linAlgBinOp).InferShape() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words