MCPcopy Index your code
hub / github.com/TheAlgorithms/Rust / classify

Function classify

src/machine_learning/perceptron.rs:62–72  ·  view source on GitHub ↗

Classify a new data point using the learned weights and bias.

(weights: &[f64], bias: f64, features: &[f64])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 3

predictFunction · 0.85
is_emptyMethod · 0.45
lenMethod · 0.45