Created
April 6, 2019 05:20
-
-
Save el0911/9d10339eb6e76de82b58b5352dadc4d9 to your computer and use it in GitHub Desktop.
template code for a machine learning library in nide.js
This file contains hidden or 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
class Savage{ | |
constructor(){ | |
console.log('savage model initailized!!'); | |
} | |
Linear_Regression ( data,label ){ | |
return { | |
a:'2', | |
b:'2' | |
} | |
} | |
K_Nearest_Neighbour (data,points){ | |
} | |
optimization (algorithm) { | |
return { | |
gradient_descent:()=>{ | |
} | |
} | |
} | |
}; | |
module.exports = Savage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment