Challenge: Creating a Neuron
Tarefa
Swipe to start coding
Your task is to implement the basic structure of a neuron by completing the missing parts.
- Initialize the weights (an array) and bias (a single number) with random values from a uniform distribution in range
[-1, 1)
using NumPy. - Compute the weighted sum of the inputs using the dot product, add the bias, and store the result in
input_sum_with_bias
. - Apply the sigmoid activation function to
input_sum_with_bias
to obtain the neuron's output.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 2
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Resumir este capítulo
Explicar o código em file
Explicar por que file não resolve a tarefa
Awesome!
Completion rate improved to 4
Challenge: Creating a Neuron
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Your task is to implement the basic structure of a neuron by completing the missing parts.
- Initialize the weights (an array) and bias (a single number) with random values from a uniform distribution in range
[-1, 1)
using NumPy. - Compute the weighted sum of the inputs using the dot product, add the bias, and store the result in
input_sum_with_bias
. - Apply the sigmoid activation function to
input_sum_with_bias
to obtain the neuron's output.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Awesome!
Completion rate improved to 4Seção 2. Capítulo 2
single