Question: K-means algorithm for Machine Learning This is R programming exercises. The question asked to write down functions in R. Libraries are limited to tidyverse, imager,
K-means algorithm for Machine Learning
This is R programming exercises. The question asked to write down functions in R. Libraries are limited to tidyverse, imager, tidymodels. The task to write 4 functions, but I need only the following:
cluster_information <- processing_image(image_file_name, k_list)
Need to write processing_image function, which has the following inputs :
Inputs have an image_file_name - a PNG or JPEG image and k_list - the number of centres in the clustering
Output is a cluster_information which is a list or tibble of information derived from the k_means that will be sufficient to be the input . This should be the only function that computes a clustering.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
