Showing 89 of 113 total issues
Avoid deeply nested control flow statements. Open
Open
if case in file:
os.chdir(os.path.join(path_to_train, folder))
source = file
destination = os.path.join(path_to_test, folder)
shutil.move(source, destination)
Function calculate_metrics
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def calculate_metrics(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function deconv_output_padding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def deconv_output_padding(
Function build_checkpoint_callback
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_checkpoint_callback(
Function tile_slices
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def tile_slices(img_paths, save_path="", fname=None, slice_inds=None, col_titles=None):
Function build_output_block
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_output_block(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function train_step
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def train_step(warper, weights, optimizer, mov, fix) -> tuple:
Function register
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def register(
Function build_output_block
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_output_block(
Function validate_images_and_labels
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def validate_images_and_labels(
Function build_config
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_config(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function build_dataset
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_dataset(
Function gif_tile_slices
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def gif_tile_slices(img_paths, save_path=None, size=(2, 2), fname=None, interval=50):
Function gen_rand_ddf
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def gen_rand_ddf(
Function train_step
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def train_step(grid, weights, optimizer, mov, fix) -> object:
Function move_files_into_correct_path
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def move_files_into_correct_path(
Function _deconv_output_padding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _deconv_output_padding(