all AI news
Creating k-NN with C++ (from Scratch)
Jan. 11, 2024, 3:27 p.m. | Wanderer
DEV Community dev.to
Table of Contents
- Introduction
- Disclaimer
Getting started- Requirements
- Enviroment
- Tools
Coding- Project Overview
- Setting up CMake
Create Knn model- Utils functions
- Linear Algebra (Distance between two vector)
Knn (K-nearest neighbors algorithm)- LabelPoint Class:
- majority_vote Function:
- knn_classify Function:
- Testing our code
Putting everything together- parse_iris_row
Knn pipeline- Extracting Data
- Plotting and Visualizing Data
- Splitting and Predicting
- Plotting our Confusion Matrix
- Conclusion
- References
Introduction
Hey there! So, I've been wanting to get into machine learning, and what better way to learn than …
algebra algorithm class code coding contents cpp data datascience enviroment everything function functions introduction knn linear linear algebra neighbors overview pipeline plotting project requirements table testing together tools tutorial vector
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US