cs231n作业:Assignment1-Image features exercise
# Use the validation set to tune the learning rate and regularization strength from cs231n . classifiers . linear_classifier import LinearSVM learning_rates = [ 1e - 9 , 1e - 8 , 1e - 7 ] regularization_strengths = [ 5e4 , 4e5 , 5e5 , 6e5 , 5e6 ] results = { } best_val = - 1 best_svm = None ################################################################################ # TODO: # # Use the validation set to set the learning rate and regularization strength. # # This should be identical to the validation that you did for the SVM; save # # the best trained classifer in best_svm. You might also