Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def minMaxNrom(training_data, testing_data):
- for i in training_data:
- for j in training_data:
- new_data = training_data[i][j] - min(j) / max(j) - min(j)
- for i in testing_data:
- for j in testing_data:
- new_testing_data = testing_data[i][j] - min(j) / max(j) - min(j)
- return (new_data, new_testing_data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement