Skip to content

Commit

Permalink
flatter renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
saliherdemk committed Nov 8, 2024
1 parent 4b24645 commit c8afa12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ <h3>Grada</h3>
Create Dataset
</button>

<button class="btn btn-orange" onclick="createFlatter()">
Add Flatter
<button class="btn btn-orange" onclick="createFlattener()">
Add Flattener
</button>

<button class="btn btn-green" onclick="createLayer()">Add Layer</button>
Expand Down Expand Up @@ -455,7 +455,7 @@ <h3>Grada</h3>

<script src="js/HandWritten/DigitInputGrid.js"></script>
<script src="js/HandWritten/DigitInput.js"></script>
<script src="js/HandWritten/Flatter.js"></script>
<script src="js/HandWritten/Flattener.js"></script>
<script src="js/HandWritten/DigitOutput.js"></script>

<script src="js/Draw/NeuronView.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion js/Draw/MLP/Playable.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Playable extends Draggable {
this.updateStatus(
+(
(input instanceof InputLayer ||
(input instanceof Flatter && input.source)) &&
(input instanceof Flattener && input.source)) &&
(this.isEval() || this.getOutput() instanceof OutputLayer)
),
);
Expand Down
4 changes: 2 additions & 2 deletions js/HandWritten/Flatter.js → js/HandWritten/Flattener.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Flatter extends Component {
class Flattener extends Component {
constructor(x, y) {
super(x, y, 275);
this.shrank = true;
Expand Down Expand Up @@ -168,7 +168,7 @@ class Flatter extends Component {
{ func: "textAlign", args: [CENTER, CENTER] },
{
func: "text",
args: ["Flatter", middleX, this.y - 10],
args: ["Flattener", middleX, this.y - 10],
},
];

Expand Down
4 changes: 2 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function createHandWritten() {
mainOrganizer.addComponent(new DigitOutput(800, 100));
}

function createFlatter() {
mainOrganizer.addComponent(new Flatter(400, 100));
function createFlattener() {
mainOrganizer.addComponent(new Flattener(400, 100));
}

function createLayer() {
Expand Down

0 comments on commit c8afa12

Please sign in to comment.