Previous question · 1478
Days Between Events
easyDatabase
Next question · 1480
Trapping Rain Water
hardAlgorithms
Random coding question

1479. Perceptron forward pass

easy
GeneralGeneral
senior
Function contract
Inputs
b
float
w
np.ndarray
x
np.ndarray
Returns
value
int

Examples

Input
{
  "b": 0.1,
  "w": [
    1,
    0.5,
    -0.5
  ],
  "x": [
    0.5,
    -1,
    2
  ]
}
Output
0

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
perceptron
dot-product
threshold-activation
binary-classification

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
33 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands