Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
- Looks like after `model_params`, intercept is _never_ an array with > 1 dimensions.
  • Loading branch information
desilinguist committed Mar 4, 2019
1 parent 79880af commit acce084
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions skll/utilities/print_model_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ def main(argv=None):
intercept_is_array = False

# now print out the intercepts
if intercept_is_array:
intercept_list = ["%.12f" % i for i in model_intercepts]
print("intercept = {}".format(intercept_list))
else:
print("intercept = {:.12f}".format(model_intercepts))
print("intercept = {:.12f}".format(model_intercepts))
else:
print("== intercept values ==")
for (label, val) in intercept.items():
Expand Down

0 comments on commit acce084

Please sign in to comment.