Created
April 15, 2018 12:34
-
-
Save oem/73bcddbf406ef6d8c67d49059e8a9773 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def normal_equation(features, labels) | |
(features.transpose * features).inverse * features.transpose * labels | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment