Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Sep 26, 2024
1 parent cb8aa1f commit 6df6ad3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
11 changes: 4 additions & 7 deletions data.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,6 @@ async function get_xs_and_ys () {

//log("X-Shape: " + xy_data.x.shape);

// TODO:
//assert(xy_data.x.shape[0] == xy_data.x.shape[0], "FEHLER");

//data_debug(xy_data["x"], xy_data["y"])

var validation_split = parse_int($("#validationSplit").val());
Expand Down Expand Up @@ -1065,7 +1062,7 @@ function parse_csv_file (csv_file) {
if(!item.match(/^\s*$/)) {
parse_errors.push(`Line ${i} is a duplicate of an earlier line. It will be ignored.`);
}
return ""; // Ersetze doppelte Zeilen durch Leerzeilen
return "";
}
return item;
})
Expand Down Expand Up @@ -1579,7 +1576,7 @@ function chi_squared_test(arr) {
return probability;
}

function array_likelyhood_of_being_random (_array) {
function array_likelihood_of_being_random (_array) {
typeassert(_array, array, "_array");

var chi = chi_squared_test(_array);
Expand All @@ -1591,7 +1588,7 @@ function array_likelyhood_of_being_random (_array) {

function image_element_looks_random (imgelem) {
var t = reshape(fromPixels(imgelem), [-1]);
var res = array_likelyhood_of_being_random(array_sync(t));
var res = array_likelihood_of_being_random(array_sync(t));

return res;
}
Expand Down Expand Up @@ -1654,7 +1651,7 @@ async function get_new_number_of_neurons_according_to_visualization_randomness (
var neurons_that_learnt_something = 0;

for (var i = 0; i < activated_neurons[current_model_config_hash][layer].length; i++) {
// 0: etwas gelernt, 1: nix gelernt
// 0: something was learned, 1: nothing was learned
// threshold: 0.01
if(activated_neurons[current_model_config_hash][layer][i] > 0.02) {
neurons_that_learnt_something++;
Expand Down
2 changes: 1 addition & 1 deletion debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ async function debug_unusual_function_inputs () {
"insert_activation_option_trs",
"get_tr_str_for_layer_table",
"set_item_value",
"array_likelyhood_of_being_random",
"array_likelihood_of_being_random",
"get_item_value",
"get_dimensionality_from_layer_name",
"get_shape_from_file",
Expand Down
3 changes: 0 additions & 3 deletions presentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,10 @@ function start_presentation(start_nr=0) {
$("#mainsite").hide();
$("#status_bar").hide();
$("#presentation").show();
// Funktion zur Behandlung von Mausklicks

if(!added_event_listeners_for_presentation) {
// Event-Listener für Tastendrücke
document.addEventListener("keydown", handleKeyPress);

// Event-Listener für Mausklicks
document.addEventListener("click", handleMouseClick);

document.addEventListener("wheel", handleMouseWheel);
Expand Down
2 changes: 1 addition & 1 deletion tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"use strict";
likelyhood"use strict";

var tests_ended = false;

Expand Down

0 comments on commit 6df6ad3

Please sign in to comment.