asafschers/scoruby

View on GitHub
lib/scoruby/models/random_forest/model.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method has too many lines. [12/10]
Open

        def score(features)
          decisions_count = decisions_count(features)

          if regression?
            {

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for score is too high. [16.16/15]
Open

        def score(features)
          decisions_count = decisions_count(features)

          if regression?
            {

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Line is too long. [100/80]
Open

              response: sum(decisions_count.map { |k, v| k.to_f * v }) / sum(decisions_count.values)

There are no issues that match your filters.

Category
Status