Quick Machine Learning Workflow in Python, with KNN as Example of Ionosphere Data

Multiple approaches to build models of machine learning in Python are possible, and the article would serve as a simply summary of the essential steps to conduct machine learning from data loading to final visualization. You can find the data here: http://archive.ics.uci.edu/ml/datasets/Ionosphere More details can be found in Robert Layton's book here: https://www.goodreads.com/book/show/26019855-learning-data-mining-with-python?from_search=true

Advertisements

Quick KNN Examples in Python

Walked through two basic knn models in python to be more familiar with modeling and machine learning in python, using sublime text 3 as IDE. The first example of knn in python takes advantage of the iris data from sklearn lib. The second example takes data of breast cancer from sklearn lib. We evaluate the… Continue reading Quick KNN Examples in Python

KNN with CV Evaluation

knnEval {chemometrics} R Documentation kNN evaluation by CV Description Evaluation for k-Nearest-Neighbors (kNN) classification by cross-validation Usage knnEval(X, grp, train, kfold = 10, knnvec = seq(2, 20, by = 2), plotit = TRUE, legend = TRUE, legpos = "bottomright", ...) Arguments X standardized complete X data matrix (training and test data) grp factor with groups… Continue reading KNN with CV Evaluation