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
Cheat sheet for development in Python
31 minutes ago |
dev.to
Impact of Generative AI on Smart Manufacturing
11 hours ago |
dev.to
Jobs in AI, ML, Big Data
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Research Scientist
@ Meta | Menlo Park, CA
Principal Data Scientist
@ Mastercard | O'Fallon, Missouri (Main Campus)