diff --git a/hebbLearning.cpp b/hebbLearning.cpp new file mode 100644 index 0000000..012a31d --- /dev/null +++ b/hebbLearning.cpp @@ -0,0 +1,76 @@ +#include +using namespace std; + +int main() +{ + int m,n; + cout<<"enter no.of features and no.of training datasets: \n"; + cin>> m>>n; + + int wt1[m], wt2[m]; + + int input[n][m]; + cout<<"enter the input matrix row wise "<>input[i][j]; + } + } + + int target1[n], target2[n]; + + cout<<" Enter the target in binary : "<>target1[i]; + } + + cout<<"Enter the target in bipolar: "<>target2[i]; + } + + for(int i=0;i +using namespace std; + +int main() +{ + int m,n; + float lr, t; + cout<<"enter no.of features , no.of training datasets , threshold and learning rate : \n"; + cin>> m>>n>>t>>lr; + + int wt2[m]; + + int input[n][m]; + cout<<"enter the input matrix row wise "<>input[i][j]; + } + } + + int target2[n]; + + + + cout<<"Enter the target in bipolar: "<>target2[i]; + } + + for(int i=0;i