Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@@ -55,6 +55,7 @@ def output(example_no, data_set):
|
||||
return train_data[example_no][1]
|
||||
elif data_set == "test":
|
||||
return test_data[example_no][1]
|
||||
return None
|
||||
|
||||
|
||||
def calculate_hypothesis_value(example_no, data_set):
|
||||
@@ -68,6 +69,7 @@ def calculate_hypothesis_value(example_no, data_set):
|
||||
return _hypothesis_value(train_data[example_no][0])
|
||||
elif data_set == "test":
|
||||
return _hypothesis_value(test_data[example_no][0])
|
||||
return None
|
||||
|
||||
|
||||
def summation_of_cost_derivative(index, end=m):
|
||||
|
||||
Reference in New Issue
Block a user