Skip to content

Instantly share code, notes, and snippets.

@el0911
Created April 6, 2019 05:20
Show Gist options
  • Save el0911/aba5060eeed9a36c3668635e4aa3e41c to your computer and use it in GitHub Desktop.
Save el0911/aba5060eeed9a36c3668635e4aa3e41c to your computer and use it in GitHub Desktop.
template code for a machine learning library in nide.js
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