Skip to content

Commit

Permalink
documentation, help page, 10 questions complete, all functionality co…
Browse files Browse the repository at this point in the history
…mplete
  • Loading branch information
saum7800 committed Jul 10, 2019
1 parent e42707c commit a257cc6
Show file tree
Hide file tree
Showing 12 changed files with 848 additions and 99 deletions.
33 changes: 33 additions & 0 deletions SRIP/Codes/help.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
*{
font-family:sans-serif;
}

html{
background:url(https://bbl.solutions/wp-content/uploads/2014/11/Blog-background-white-HNM-blue-gradient-blue-gear-2.png);
background-size: cover;
}

#heading{
background-color: lightblue;
color:white;
text-align: center;
border-style: solid;
padding-top:10px;
padding-bottom:10px;
}

#ol{
background: lightcyan;
padding: 30px;
border-style: solid;

}

h3{
background-color: lightblue;
color:white;
text-align: center;
border-style: solid;
padding-top:10px;
padding-bottom:10px;
}
71 changes: 71 additions & 0 deletions SRIP/Codes/help.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>HELP</title>
<link rel="stylesheet" type="text/css" href="help.css">
</head>

<body>
<h1 id="heading">HELP</h1>
<p>
The idea of constraint satisfaction can be captured in a PDP model consisting of several units and connections among the units. In this model the units represent hypotheses and the connections represent the knowledge in the form of constraints between any two hypotheses. It is obvious that the knowledge cannot be precise and hence the representation of the knowledge in the form of constraints may not also be precise. So the solution being sought is to satisfy simultaneously as many constraints as possible. Note that the constraints usually are weak constraints, and hence all of them need not be satisfied fully as in the normal constrained optimization problems. The degree of satisfaction is evaluated using a goodness-of-fit function, defined in terms of the output values of the units as well as the weights on the connections between units.
</p>
<p>
The model we have is already trained and has weights assigned to it. It is these weights that aid in making the original hinton diagram. We can further train the network by providing our input on which descriptor best fits whch room and update the weights accordingly. These new weights are what aid in the making of the new Hinton Diagram.<br><br> The clamping of descriptors is like an external input given to the netowrk. When we do so and test the network, after a few cycles, we see the descriptors belonging to the room type of the descriptor that was clamped to be lit up whereas others are not.<br>
</p>
<h3>PROCEDURE FOR USE</h3>
<ol id="ol">
<li> Click on the "click" button below "click here to see Hinton Diagrams". </li>
<br>
<li> Click on "Click here to see the original hinton diagram with preset weights" to load the hinton diagram for the already trained network with current weights.</li>
<br>
<li> Hover your mouse over any of the rectangles for units to see it's hinton diagram in zoomed up version towards the bottom of the canvas.</li>
<br>
<li> Click on the "back" button to go back to the menu for more choices.</li>
<br>
<li> Click on the "Click here to further train the model".</li>
<br>
<li> Click on any room choice to select descriptors for that room.</li>
<br>
<li> Click on any descriptors you wish to attribute to the room choice that you made.</li>
<br>
<li> After making atleast one selection of descriptor for each room type, click on "train model and show Hinton Diagram".</li>
<br>
<li> Hover your mouse over any of the rectangles for units to see it's new hinton diagram in zoomed up version towards the bottom of the canvas.</li>
<br>
<li> Click on the "back" button to go back to the page to select room and descriptors for that room.</li>
<br>
<li> Click on "reset" button to reset descriptors and room choices.</li>
<br>
<li> Click on the "back" button to go back to the menu for more choices.</li>
<br>
<li> Click on the "home" button to go back to the main menu.</li>
<br>
<li> Click on the "click here for clamping descriptors"</li>
<br>
<li> Click on atleast one descriptor to clamp it.</li>
<br>
<li> Click on descriptor again to unclamp it.</li>
<br>
<li> Click on "test network" to run 16 cycles of the network.</li>
<br>
<li> Click on a descriptor to clamp it and simultaneously see the change in the network.</li>
<br>
<li> Click on "reset" button to reset the clamping.</li>
<br>
<li> Click on "Home" button to go back to the main menu.</li>
</ol>
<h3>FORMULAE USED</h3>
<p>
if descriptor is clamped, it is given activation 1, otherwise 0.<br>
nextState[i] of a descriptor is the sum of the products of activation[j] with weights[i][j]<br>
if nextState[i] is greater than the threshold, it is given value 1, otherwise 0.<br>
if nextState[i] is 1, activation is set to 1 irrespective of it's initial value.<br>
activation of each descriptor is calculated for 16 cycles one after another and displayed.<br><br><br>
For further information, refer the references given in the references section for this experiment.
</p>
</body>

</html>
43 changes: 43 additions & 0 deletions SRIP/Codes/pdp2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
*{
font-family:sans-serif;
}

html{
background:url(https://bbl.solutions/wp-content/uploads/2014/11/Blog-background-white-HNM-blue-gradient-blue-gear-2.png);
background-size: cover;
}

#heading{
background-color: lightblue;
color:white;
text-align: center;
border-style: solid;
padding-top:10px;
padding-bottom:10px;
}


.btn {
border: none;
padding: 14px 28px;
font-size: 16px;
cursor: pointer;
background-color:lightblue;
text-align: center;
background-origin: padding-box;
border-radius:10px;
}
.btn:hover{
background:orange;
}

#centre_button{
text-align: center;
}

#flex-container{
display:flex;
flex-direction:row-reverse;
justify-content:space-around;
align-content:center;
}
8 changes: 8 additions & 0 deletions SRIP/Codes/pdp2.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.js"></script>
<script src="pdp2.js"></script>
<link rel="stylesheet" type="text/css" href="pdp2.css">
</head>

<body>
<h1 id="heading">Parallel and Distributed Processing-II: Constraint Satisfaction Neural Network Models</h1>
<div id="centre_button">
<button class="btn" onclick="window.open('help.html','_blank')">Help</button>
</div>
<br><br><br>
<div id="flex-container">

</div>
</body>

</html>
Loading

0 comments on commit a257cc6

Please sign in to comment.