Showing 11,634 of 11,634 total issues
Function check_extract_features_raises_error_with_invalid_image_size
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def check_extract_features_raises_error_with_invalid_image_size(
Function _create_feature_extractor
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _create_feature_extractor(self,
Function _inverted_bottleneck_no_expansion
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _inverted_bottleneck_no_expansion(
Function _apply_size_dependent_ordering
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def _apply_size_dependent_ordering(input_feature, feature_level, block_level,
expansion_size, use_explicit_padding,
use_native_resize_op):
"""Applies Size-Dependent-Ordering when resizing feature maps.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function block_basic
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def block_basic(x,
Function _create_feature_extractor
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _create_feature_extractor(self,
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self,
Avoid deeply nested control flow statements. Open
with tf.name_scope('nearest_neighbor_upsampling'):
top_down_shape = shape_utils.combined_static_and_dynamic_shape(
top_down)
top_down = tf.image.resize_nearest_neighbor(
top_down, [top_down_shape[1] * 2, top_down_shape[2] * 2])
Function _apply_size_dependent_ordering
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _apply_size_dependent_ordering(input_feature, feature_level, block_level,
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self,
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self,
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self,
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self,
Avoid deeply nested control flow statements. Open
if use_explicit_padding:
pre_layer = ops.fixed_padding(pre_layer, conv_kernel_size)
feature_map += slim.avg_pool2d(
Function __init__
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def __init__(self,
bifpn_num_iterations,
bifpn_num_filters,
fpn_min_level,
fpn_max_level,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _conv
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _conv(h, filters, kernel_size, strides=1,
Function _inverted_res_block
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _inverted_res_block(inputs, expansion, stride, alpha, filters, block_id):
Function single_stage_hourglass
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def single_stage_hourglass(input_channel_dims, channel_dims_per_stage,
Function _create_features
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _create_features(self,
Function pooling_pyramid_feature_maps
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def pooling_pyramid_feature_maps(base_feature_map_depth, num_layers,
image_features, replace_pool_with_conv=False):
"""Generates pooling pyramid feature maps.
The pooling pyramid feature maps is motivated by
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"