Preparing report...

Report for github.com/etrace-io/sklearn

(v0.0.0-20220701085706-0c56139d553f)

A+    Excellent!    Found 20 issues across 138 files

Tweet

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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

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.

    • linear_model/cdfast.go
    • Line 160: warning: cyclomatic complexity 28 of function enetCoordinateDescentMultiTask() is high (> 15) (gocyclo)
    • Line 15: warning: cyclomatic complexity 22 of function enetCoordinateDescent() is high (> 15) (gocyclo)
    • svm/svr.go
    • Line 47: warning: cyclomatic complexity 27 of function svrTrain() is high (> 15) (gocyclo)
    • neural_network/basemlp32.go
    • Line 729: warning: cyclomatic complexity 24 of function (*BaseMultilayerPerceptron32).fitStochastic() is high (> 15) (gocyclo)
    • Line 625: warning: cyclomatic complexity 18 of function (*BaseMultilayerPerceptron32).validateHyperparameters() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 17 of function (*BaseMultilayerPerceptron32).fit() is high (> 15) (gocyclo)
    • metrics/base.go
    • Line 11: warning: cyclomatic complexity 18 of function averageBinaryScore() is high (> 15) (gocyclo)
    • neural_network/basemlp64.go
    • Line 729: warning: cyclomatic complexity 24 of function (*BaseMultilayerPerceptron64).fitStochastic() is high (> 15) (gocyclo)
    • Line 625: warning: cyclomatic complexity 18 of function (*BaseMultilayerPerceptron64).validateHyperparameters() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 17 of function (*BaseMultilayerPerceptron64).fit() is high (> 15) (gocyclo)
    • svm/svm_test.go
    • Line 24: warning: cyclomatic complexity 17 of function ExampleSVC() is high (> 15) (gocyclo)
    • svm/svm.go
    • Line 50: warning: cyclomatic complexity 24 of function svmTrain() is high (> 15) (gocyclo)
    • datasets/samples_generator.go
    • Line 28: warning: cyclomatic complexity 23 of function MakeRegression() is high (> 15) (gocyclo)
    • Line 119: warning: cyclomatic complexity 19 of function MakeBlobs() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words