sinf Neyron { konstruktor { { this.weights = []; } randomWeight() { return Math.random} * 2 - 1; } activate(input) { let sum = 0; for (let i = 0; i < input.length; i++) { sum += input[i] * this.weights[i]; } return 1 / (1 + Math.exp(-sum) } } sinf Neyron tarmoq { konstruktor { { {inputSize, hiddenSize, outputSize) { this.inputSize = inputSize; this.hiddenSize = hiddenSize; this.outputSize = outputSize; this.hiddenLayer = []; for (let i = 0; i hiddenSize; i++) { let Math.random}; for (let i = 0; i activate(in
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence